Hi Everybody,
I am looking for ways to implements simple Qbasic features into C Sharp Console namely:
1. The use of blinking color in Console.
2. Delimit Clear Screen as from Row 5 Downward so as to leave the first five row of the Console Window for the Main Menu title and so on.
3. creating a key-driven main menu (up and down arrow) to move from menu no. 1 to menu no. 2 and to menu no 3 and vice versa. Like a background of white over a red/back text to show that this menu is highlighted and if I press ENTER, it is going to execute that option.
For the first solution through it was one of the simplest thing in Qbasic not to say even earlier basic, I am still looking.
For the second, I have created a method/function which I called clear_lower() in which I used for keyword to create 80 columns of " " multiply by 5 row. However, I will be delight to see an easiest method of doing so.
Thank you very much.
I really need answers to this as I am working on a very extensive marking system and this is but a pragmatic test to how it is going to work out.
Nicolas MARIE.

2 answers
Taking those questions in the same order:
1. Although the DOS console supports blinking colors, the Windows console does not. However, you can simulate them by using a timer to switch the color of a particular character 'on or off' at appropriate intervals.
2. The easiest way to do this is to create a method which writes blank lines to the console from the sixth row downwards. However, it sounds like your clear_lower() method is doing something like this already.
3. Here's a program I wrote a while back which shows how you can implement a simple listbox or menu for a console application :
answered one year ago by:
17279
30
Hi vulpes, I believe you sent me some powerful stuff. I will copy and run it on my computer back home. Of course, there are a number of items that I simply does not understand and I will need to get back over to you for some clarification and suggestion as to how to implement this to my program. I see you have a drawbox command that sound much like the @ ... to ... statement in dbase III and dbase IV. I have been looking for this for weeks in vain. Thank you and hope I can implement all this in my program. As to blinking color as being a continuous switch between two colors. How to implement this into the program when all my program seemed to be in a sequential mode. It would seemed that as soon as I move from the blinking method to another method or to the forthcoming program flow, it will just cease to blick ???? Still thousand thanks. Nicolas.
17279
Basically, you need to call the timer on a background thread rather than your main thread. This is done automatically if you use the System.Threading.Timer which is suitable for console applications. I've added another answer to show how you can blink some text anywhere on the console using this approach.
Further to my above comment, here's the code. I've assumed a console with gray text on a black background:
answered one year ago by:
17279