diff options
author | Christian Hesse <mail@eworm.de> | 2013-12-23 14:21:19 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-12-23 14:21:19 +0100 |
commit | 5b73c2ebfed7b3e0742db5ab96dcaa71447faf8c (patch) | |
tree | 6379e7c76400a80bf7bd1b943ee443585c91da32 | |
parent | 57ab891fcc6d08670c504e142a1089943b612930 (diff) | |
download | nullshell-5b73c2ebfed7b3e0742db5ab96dcaa71447faf8c.tar.gz nullshell-5b73c2ebfed7b3e0742db5ab96dcaa71447faf8c.tar.zst |
add comment about console codes man page
-rw-r--r-- | nullshell.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nullshell.c b/nullshell.c index 1c14d7c..113edf7 100644 --- a/nullshell.c +++ b/nullshell.c @@ -22,7 +22,8 @@ int main(int argc, char **argv) { ssh_client = getenv("SSH_CLIENT"); ssh_tty = getenv("SSH_TTY"); - /* clear the screen */ + /* clear the screen and set cursor to the top left + * see 'man 4 console_codes' for details */ fputs("\033[2J\033[1;1H", stdout); fflush(NULL); |