I want to make a program that will display dynamic data in the way the "top" command does but, I haven't been able to find out how to make the command line interface work. Does anyone know of some resources for building that type of interface?
Asked
Active
Viewed 132 times
top
is what is called a character cell or full-screen application. Character cell application are sort-of halfway between command-line applications (which consume and produce text) and graphical applications (which use a bitmapped display). In UNIX-like operating systems, such full screen / character cell applications (for example, the editorvim
, the web browserlynx
, the file managermc
or the package management toolaptitude
) are built using libraries namedcurses
(the old original) orncurses
(the less old reimplementation). – AlexP Oct 24 '17 at 02:42select(2)
to wait for keyboard input or timeout https://linux.die.net/man/2/select – hschou Oct 24 '17 at 05:11