Split view in console

Aug 25, 2017 at 10:36pm
Dear friends:
I want to show different interface in the split view of console window, how to set it.
Regards

Aug 26, 2017 at 1:56am
@ztdep

The only way I know of, would be use a function like 'gotoXY()', which I show how to use here..

http://www.cplusplus.com/forum/beginner/68989/

Though some users on this site won't like mainly because it uses the conio.h library.
I like it though, and use it in pretty much all my programs.
Last edited on Aug 26, 2017 at 1:57am
Aug 26, 2017 at 7:39am
@whitenite1,
your gotoXY() doesn't use conio.h, only windows.h.
Only your WaitKey uses _kbhit()) and _getch() from conio.h
Aug 26, 2017 at 9:41am
It is worth your time to invest in learning NCurses. If you are on Windows, use the PDCurses port.

They are both small, easy-to-install and easy-to-use libraries.

Take a look through the documentation (http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/) for information on getting started.

For each view you'll want to create a separate WINDOW.

Hope this helps.
Aug 26, 2017 at 11:00am
Thank you . you misunderstand me. I am working in Linux system. The consol windows is the bash shell.
Aug 26, 2017 at 11:39am
NCurses was created for *nixen. Type 'man ncurses' at the shell prompt.
Topic archived. No new replies allowed.