6

I want to write a program that can "draw" in the terminal the same way as htop or emacs. By that I mean "get rid of the prompt and make the output dependent on the current size of the terminal".

To make this a bit more clear:

I want to use the terminal this way:

enter image description here

in stead of this way:

enter image description here

1 Answers1

6

There are plenty of ways to do that, from lowlevel ones to more high level apis.

Check out ncurses for C and dialog for bash.

This is a very complete tutorial for ncurses: http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/

Bruno9779
  • 1,384