C++ screen partition
I want to partition the output screen into two parts (just like frames do it in HTML). So that one开发者_如何转开发 part may remain fixed and display some content which is updated based on input received from the other part.
I do not wish to venture into GUI stuff therefore OpenGL, SDL etc are ruled out (I wish to do it in command line mode). I have Borland C++ with graphics.h
support, but it is just too old to carry on.
What alternatives do I have at my disposal (If not C++
, a solution in C
will also be Ok.)
You may want to take a look at curses-like libraries like PDCurses.
Other than that, you may use ANSI terminal escape sequences to control the cursor on a text window, this may be quicker if what you are doing is simple, otherwise use PDCurses and it will handle the escape sequences for you.
Check out Curses / NCurses.
精彩评论