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

Username:   Password: 
 RegisterRegister   
 Getch and Setscreen statements
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Killa Hilla




PostPosted: Mon Mar 03, 2003 6:15 am   Post subject: Getch and Setscreen statements

Ok, i have been trying to get the Setscreen and Getch statements working for awhile now but they wont work and it comes up with an error. ie when i put
setscreen ("nocursor") it comes up with an error

So can you please post how to use the Getch statement and if u can everything you can do with the setscreen statement

Thanks

Killa
Sponsor
Sponsor
Sponsor
sponsor
azndragon




PostPosted: Mon Mar 03, 2003 6:25 am   Post subject: (No subject)

You have to also set the mode of display, either graphics or text:

setscreen ("text")
setscreen ("graphics")

You then use colons and semicolons to add additional modes

setscreen ("graphics;nocursor")

You can also set the screen size with this:

setscreen ("graphics:800;600;nocursor")

Note: Not 100% sure about syntax, but the idea is the same.
Hurukan




PostPosted: Mon Mar 03, 2003 7:54 am   Post subject: setscreen syntax

yeah theyre separated by commas Wink

setscreen("nobuttonbar,nocursor,noecho,graphics:600;800")
goodbye annoying things Wink
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  [ 3 Posts ]
Jump to:   


Style:  
Search: