mirror of
https://github.com/troglobit/finit.git
synced 2026-10-23 11:44:37 +00:00
Fix #210: simplify escape code to clear line
Since we just want to clear the complete line, and are already a the beginning of the line, we can use the simpler \e[K which also seems to fix the display resize bug in #210. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
1cf204e23d
commit
cb2969002c
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -196,7 +196,7 @@ static int do_login(char *name)
|
||||
|
||||
static int getty(char *tty, speed_t speed, char *term, char *user)
|
||||
{
|
||||
const char cln[] = "\r\e[2K\n";
|
||||
const char cln[] = "\r\e[K\n";
|
||||
char name[33]; /* useradd(1) limit at 32 chars */
|
||||
pid_t sid;
|
||||
|
||||
|
||||
Reference in new issue
Block a user