I cannot find the right way to ask the almighty Google ...
In programs such as the command line progress bar, the output buffer seems to be directly manipulating. He cannot print a character to the terminal anywhere he wants. How is this control over program output controlled by standard C? Is there a special library I can find?
watch curses this is lib for unix / linux
If you just need a progress bar, you can simply print one "X" for every 2% completion. This should fill 50 characters per line.
- , Linux "curses", , , Debian, .
\r check this
ncurses
C. , , , ..
- ncurses, . \r , , .. tput(1) . , , , tput smso tput rmso. , C popen(3); .
\r
tput(1)
tput smso
tput rmso
popen(3)
ANSI escape- termincal. MUD .
Source: https://habr.com/ru/post/1712429/More articles:Development of accounting system and databases - sqlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1712425/adding-specific-files-or-folders-to-a-windows-explorer-view&usg=ALkJrhjEz1HfnWt8wGdBbG7UfpWOmIGq1QWhy does * Perl's regex seems not to be greedy? - regexhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1712427/reducing-roundtrips-to-the-serverdatabase&usg=ALkJrhgIP8qpdNZOnIcR_Pngr47JBaff3Qhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1712428/how-to-find-the-number-of-parameters-to-a-python-function-from-c&usg=ALkJrhhPScw_DH95csU7k-gNJKorm4i45AHow to update twisted structure - pythonEfficient import of modules in Django views - performancejQuery: отображение div, если выбрана специальная опция? - javascriptIn Python, is there a way to detect the use of invalid variable names; something like VB "Option Explicit"? - pythonHow to set up ATG development environment for use with JBoss - atgAll Articles