Computer Science Canada help with erasing cursor after it's been drawn |
Author: | arun95 [ Sun Jan 23, 2011 6:37 pm ] | ||
Post subject: | help with erasing cursor after it's been drawn | ||
What is it you are trying to achieve? i am currently drawing an "i" as my cursor. i want to be able to erase it and move it to the right of the next character What is the problem you are having? i am not sure on how to erase it Describe what you have tried to solve this problem Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using |
Author: | Tony [ Sun Jan 23, 2011 6:53 pm ] |
Post subject: | RE:help with erasing cursor after it\'s been drawn |
The naive solution would be to use cls. A more clever approach would require you to think about what it means to "erase" something. |
Author: | arun95 [ Sun Jan 23, 2011 6:54 pm ] |
Post subject: | Re: help with erasing cursor after it's been drawn |
i know it would have to use the locate command but im not sure how |
Author: | Tony [ Sun Jan 23, 2011 7:00 pm ] |
Post subject: | RE:help with erasing cursor after it\'s been drawn |
You can read the documentation, link: locate |
Author: | arun95 [ Sun Jan 23, 2011 7:20 pm ] |
Post subject: | RE:help with erasing cursor after it\'s been drawn |
what would i do with the locate though? |
Author: | Tony [ Sun Jan 23, 2011 7:59 pm ] |
Post subject: | Re: help with erasing cursor after it's been drawn |
arun95 @ Sun Jan 23, 2011 6:54 pm wrote: i know it would have to use the locate command |