mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-31 18:38:00 +02:00
remove: hardcoded ansi sequence
This commit is contained in:
2
src/ui.c
2
src/ui.c
@@ -486,7 +486,7 @@ static void print_passwd(struct uint_point origin, uint length, bool err) {
|
||||
memset(passwd_prompt, 32, 32);
|
||||
memset(passwd_prompt, '*', length);
|
||||
|
||||
printf("\r\x1b[%dC\x1b[%sm\x1b[4m", origin.x + 14, pass_color);
|
||||
printf("\r\x1b[%dC\x1b[%sm", origin.x + 14, pass_color);
|
||||
fflush(stdout);
|
||||
write(STDOUT_FILENO, passwd_prompt, 32);
|
||||
printf("\x1b[%sm", theme.colors.fg);
|
||||
|
Reference in New Issue
Block a user