mirror of
https://github.com/javalsai/lidm.git
synced 2025-07-03 14:25:03 +02:00
remove: hardcoded ansi sequence
This commit is contained in:
parent
77af294af1
commit
18a00ca264
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, 32, 32);
|
||||||
memset(passwd_prompt, '*', length);
|
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);
|
fflush(stdout);
|
||||||
write(STDOUT_FILENO, passwd_prompt, 32);
|
write(STDOUT_FILENO, passwd_prompt, 32);
|
||||||
printf("\x1b[%sm", theme.colors.fg);
|
printf("\x1b[%sm", theme.colors.fg);
|
||||||
|
33
themes/pure-tastelessness.ini
Normal file
33
themes/pure-tastelessness.ini
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
colors.bg = -
|
||||||
|
colors.fg = 24;39m[?25l[-
|
||||||
|
colors.err = -
|
||||||
|
colors.s_wl = -
|
||||||
|
colors.s_xorg = -
|
||||||
|
colors.s_shell = -
|
||||||
|
colors.f_other = -
|
||||||
|
colors.e_hostname = 30
|
||||||
|
colors.e_date = 30
|
||||||
|
colors.e_box = -
|
||||||
|
colors.e_header = 30
|
||||||
|
colors.e_user = -
|
||||||
|
colors.e_passwd = 24;30
|
||||||
|
colors.e_badpasswd = -
|
||||||
|
colors.e_key = 30
|
||||||
|
chars.hb = -
|
||||||
|
chars.vb = -
|
||||||
|
chars.ctl = -
|
||||||
|
chars.ctr = -
|
||||||
|
chars.cbl = -
|
||||||
|
chars.cbr = -
|
||||||
|
functions.poweroff = F1
|
||||||
|
functions.reboot = F2
|
||||||
|
functions.refresh = F5
|
||||||
|
strings.f_poweroff = -
|
||||||
|
strings.f_reboot = -
|
||||||
|
strings.f_refresh = -
|
||||||
|
strings.e_user = -
|
||||||
|
strings.e_passwd = -
|
||||||
|
strings.s_xorg = -
|
||||||
|
strings.s_wayland = -
|
||||||
|
strings.s_shell = -
|
||||||
|
behavior.include_defshell = false
|
33
themes/tasteless.ini
Normal file
33
themes/tasteless.ini
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
colors.bg = -
|
||||||
|
colors.fg = 24
|
||||||
|
colors.err = -
|
||||||
|
colors.s_wl = -
|
||||||
|
colors.s_xorg = -
|
||||||
|
colors.s_shell = -
|
||||||
|
colors.f_other = -
|
||||||
|
colors.e_hostname = -
|
||||||
|
colors.e_date = -
|
||||||
|
colors.e_box = -
|
||||||
|
colors.e_header = -
|
||||||
|
colors.e_user = -
|
||||||
|
colors.e_passwd = -
|
||||||
|
colors.e_badpasswd = -
|
||||||
|
colors.e_key = -
|
||||||
|
chars.hb = ─
|
||||||
|
chars.vb = │
|
||||||
|
chars.ctl = ┌
|
||||||
|
chars.ctr = ┐
|
||||||
|
chars.cbl = └
|
||||||
|
chars.cbr = ┘
|
||||||
|
functions.poweroff = F1
|
||||||
|
functions.reboot = F2
|
||||||
|
functions.refresh = F5
|
||||||
|
strings.f_poweroff = poweroff
|
||||||
|
strings.f_reboot = reboot
|
||||||
|
strings.f_refresh = refresh
|
||||||
|
strings.e_user = user
|
||||||
|
strings.e_passwd = password
|
||||||
|
strings.s_xorg = xorg
|
||||||
|
strings.s_wayland = wayland
|
||||||
|
strings.s_shell = shell
|
||||||
|
behavior.include_defshell = true
|
33
themes/tastelessness.ini
Normal file
33
themes/tastelessness.ini
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
colors.bg = -
|
||||||
|
colors.fg = 24;39m[?25l[-
|
||||||
|
colors.err = -
|
||||||
|
colors.s_wl = -
|
||||||
|
colors.s_xorg = -
|
||||||
|
colors.s_shell = -
|
||||||
|
colors.f_other = -
|
||||||
|
colors.e_hostname = -
|
||||||
|
colors.e_date = 30
|
||||||
|
colors.e_box = -
|
||||||
|
colors.e_header = 30
|
||||||
|
colors.e_user = -
|
||||||
|
colors.e_passwd = 24;30
|
||||||
|
colors.e_badpasswd = -
|
||||||
|
colors.e_key = -
|
||||||
|
chars.hb = -
|
||||||
|
chars.vb = -
|
||||||
|
chars.ctl = -
|
||||||
|
chars.ctr = -
|
||||||
|
chars.cbl = -
|
||||||
|
chars.cbr = -
|
||||||
|
functions.poweroff = F1
|
||||||
|
functions.reboot = F2
|
||||||
|
functions.refresh = F5
|
||||||
|
strings.f_poweroff = poweroff
|
||||||
|
strings.f_reboot = reboot
|
||||||
|
strings.f_refresh = refresh
|
||||||
|
strings.e_user = user
|
||||||
|
strings.e_passwd = password
|
||||||
|
strings.s_xorg = xorg
|
||||||
|
strings.s_wayland = wayland
|
||||||
|
strings.s_shell = shell
|
||||||
|
behavior.include_defshell = true
|
Loading…
x
Reference in New Issue
Block a user