Answer the question
In order to leave comments, you need to log in
How does the Linux console program completely clear the screen (completely including the prompt)?
How does the Linux console program completely clear the screen (completely including the prompt), as in nano, for example? That is [email protected] ~ $ nano
, nano also opens on a blank screen, but in the same terminal window.
How to do it in C or, even better, in Go?
Answer the question
In order to leave comments, you need to log in
There are clear and reset commands, they do a little different, it's very easy to figure out what by trying.
There is a special escape sequence: "\033[H\033[J"
. With it, they make a classic clear.
ss64.com/bash/screen.html
screen top
Ctrl+A
d
screen - ls
screen -r <id>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question