Computer Science Canada Really Important .. and EASY :) |
Author: | rulerruler [ Sun Jun 13, 2010 3:46 pm ] | ||
Post subject: | Really Important .. and EASY :) | ||
What is it you are trying to achieve? I want to know how to change the color/ font size of the get command ; the input typed in. What is the problem you are having? I am using the "noecho" to make it invisible. but i am stuck at the "Input.KeyDown" command. So pleasee help. Any other option will do too. Describe what you have tried to solve this problem Like, i said, i am trying out the "Input.KeyDown" to solve this problem but i am stuck.. ! Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) It's a menu i am trying to make :d
Please specify what version of Turing you are using 4.1.1 |
Author: | TheGuardian001 [ Sun Jun 13, 2010 3:58 pm ] | ||
Post subject: | Re: Really Important .. and EASY :) | ||
Well, for one thing, your Input.KeyDown is useless, firstly since Input.KeyDown uses array char of boolean, not string, and secondly since you overwrite it immediately afterward with the get statement. Second, Input.KeyDown is probably not the best way to do this. What tends to work better is using getchar (which reads 1 character of input) in combination with hasch (which checks to see whether a key has been pressed without reading it.) Essentially what you need to do is have a loop which checks for input using hasch, then, if the program has received input, reads that input with getchar and adds it to the end of a string. Basically:
|
Author: | rulerruler [ Sun Jun 13, 2010 4:00 pm ] | ||
Post subject: | Re: Really Important .. and EASY :) | ||
well actually i got it working!!!
|