]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-top: print new line after flush terminal 727/head
authorfanyeren <fanyeren@gmail.com>
Tue, 15 Dec 2015 08:11:38 +0000 (16:11 +0800)
committerfanyeren <fanyeren@gmail.com>
Tue, 15 Dec 2015 08:11:38 +0000 (16:11 +0800)
I think this is a common feature for top-like programs.

Signed-off-by: feng xiahou xiahoufeng@yahoo.com
src/lxc/lxc_top.c

index 22093bb372b9f58ab15489284b8ed85be302cfdd..c4cb87168c95c63d0416d21293e289885ce80a80 100644 (file)
@@ -114,6 +114,7 @@ Options :\n\
 static void stdin_tios_restore(void)
 {
        tcsetattr(0, TCSAFLUSH, &oldtios);
+       fprintf(stderr, "\n");
 }
 
 static int stdin_tios_setup(void)