From 2dc9daf118483d7fb8972870db702998f47c8574 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 2 Oct 2016 23:10:49 +0200 Subject: [PATCH] Clear screen in silent mode Signed-off-by: Joachim Nilsson --- getty.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/getty.c b/getty.c index fee43d51..21d778df 100644 --- a/getty.c +++ b/getty.c @@ -76,8 +76,9 @@ static void stty(int fd, speed_t speed) tcflush(fd, TCIOFLUSH); - /* Clear screen -- disabled until we decide on config to disable/enable */ - //print("\033[r\033[H\033[J"); + /* Clear screen in silent mode */ + if (silent) + print("\033[r\033[H\033[J"); }