Searched defs:ttyfd (Results 1 - 1 of 1) sorted by relevance
/systemd/src/shared/ |
H A D | ask-password-api.c | 194 static void backspace_chars(int ttyfd, size_t p) { argument 196 if (ttyfd < 0) 202 loop_write(ttyfd, "\b \b", 3, false); 218 _cleanup_close_ int ttyfd = -1, notify = -1; local 248 ttyfd = open("/dev/tty", O_RDWR|O_NOCTTY|O_CLOEXEC); 249 if (ttyfd >= 0) { 251 if (tcgetattr(ttyfd, &old_termios) < 0) { 256 loop_write(ttyfd, ANSI_HIGHLIGHT, strlen(ANSI_HIGHLIGHT), false); 257 loop_write(ttyfd, message, strlen(message), false); 258 loop_write(ttyfd, " ", [all...] |
Completed in 16 milliseconds