How to set a fixed line in a console application liek UNIX console

  • Thread starter Thread starter AA
  • Start date Start date
A

AA

Somebody know how to get a fixed line in a console application, so if you want to write a command or something in the console, you have always one fixed line where you can do that. Like a prompt, but that don't change when a new text is sent to the console
Like the UNIX console, where you have one single line in the botton that is not affected when new text in sent to the console

For example

---------------------------------------------
| This is a log 1 of my console |
| This is a log 2 of my console |
| This is a log 2 of my console |
| This is a log 2 of my console |
| This is a log 2 of my console |
|Prompt> This is a fixed line, always visible|
----------------------------------------------


Thanks

AA
 
Its pretty simple, actually, you just have to re-write the line at the
bottom. Instead of using Console.WriteLine() use your own class that handles
that for you.
In unix consoles(all consoles IIRC) the line is affected but re-written
afterwards. Its a much simpler approach than wrapping all console
functionality so no text blows over your line.

Somebody know how to get a fixed line in a console application, so if you
want to write a command or something in the console, you have always one
fixed line where you can do that. Like a prompt, but that don't change when
a new text is sent to the console
Like the UNIX console, where you have one single line in the botton that is
not affected when new text in sent to the console

For example

---------------------------------------------
| This is a log 1 of my console |
| This is a log 2 of my console |
| This is a log 2 of my console |
| This is a log 2 of my console |
| This is a log 2 of my console |
|Prompt> This is a fixed line, always visible|
----------------------------------------------


Thanks

AA
 
Back
Top