summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-01-29 21:55:51 +0100
committerMichal Schmidt <mschmidt@redhat.com>2012-01-29 21:55:51 +0100
commit512947d46f9fd7daf74c059ac8548cc98b294807 (patch)
treeea73a2d9d0c7bf14000a9e3b892e9e5276870324 /src/util.h
parent9c07474c6fa296195dcdc734d77792dff95f5c35 (diff)
main: don't force text mode in console_setup()
When systemd starts, plymouth may be already displaying progress graphically. Do not switch the console to text mode at that time. All other users of reset_terminal_fd() do the switch as before. This avoids a graphical glitch with plymouth, especially visible with vesafb, but could be also seen as a sub-second blink with radeon. https://bugzilla.redhat.com/show_bug.cgi?id=785548
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index dcfc16d460..890a3b5d46 100644
--- a/src/util.h
+++ b/src/util.h
@@ -330,7 +330,7 @@ int chvt(int vt);
int read_one_char(FILE *f, char *ret, usec_t timeout, bool *need_nl);
int ask(char *ret, const char *replies, const char *text, ...);
-int reset_terminal_fd(int fd);
+int reset_terminal_fd(int fd, bool switch_to_text);
int reset_terminal(const char *name);
int open_terminal(const char *name, int mode);