tree-wide: avoid direct use of color macros

This commit is contained in:
rnhmjoj
2020-12-15 19:29:42 +01:00
parent c4fea19abb
commit 25e4608b8b
7 changed files with 21 additions and 22 deletions
+1 -1
View File
@@ -481,7 +481,7 @@ int ask_password_tty(
if (!(flags & ASK_PASSWORD_SILENT) && !(flags & ASK_PASSWORD_ECHO)) {
if (use_color)
(void) loop_write(ttyfd, ANSI_GREY, STRLEN(ANSI_GREY), false);
(void) loop_write(ttyfd, ansi_grey(), strlen(ansi_grey()), false);
(void) loop_write(ttyfd, PRESS_TAB, strlen(PRESS_TAB), false);
press_tab_visible = true;
}