summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);