Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 help with erasing cursor after it's been drawn
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
arun95




PostPosted: 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)

Turing:


Mouse.Where (x, y, button)
put "i"..



Please specify what version of Turing you are using



word processornew -edi33ts(1)6d2djjj.t
 Description:

Download
 Filename:  word processornew -edi33ts(1)6d2djjj.t
 Filesize:  3.73 KB
 Downloaded:  148 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
arun95




PostPosted: 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
Tony




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
arun95




PostPosted: 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?
Tony




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: