aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-12-23 14:21:19 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-12-23 14:21:19 +0100
commit5b73c2ebfed7b3e0742db5ab96dcaa71447faf8c (patch)
tree6379e7c76400a80bf7bd1b943ee443585c91da32
parent57ab891fcc6d08670c504e142a1089943b612930 (diff)
downloadnullshell-5b73c2ebfed7b3e0742db5ab96dcaa71447faf8c.tar.gz
nullshell-5b73c2ebfed7b3e0742db5ab96dcaa71447faf8c.tar.zst
add comment about console codes man page
-rw-r--r--nullshell.c3
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);