remove: hardcoded ansi sequence

This commit is contained in:
2024-07-15 00:02:35 +02:00
parent 77af294af1
commit 18a00ca264
5 changed files with 100 additions and 1 deletions

View File

@@ -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);