From 5b73c2ebfed7b3e0742db5ab96dcaa71447faf8c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 23 Dec 2013 14:21:19 +0100 Subject: add comment about console codes man page --- nullshell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2