Unverified Commit ec9d6a3c by Christian Brauner Committed by Stéphane Graber

console: use correct escape sequence check

parent 9493cb92
...@@ -590,7 +590,7 @@ int lxc_console_cb_tty_stdin(int fd, uint32_t events, void *cbdata, ...@@ -590,7 +590,7 @@ int lxc_console_cb_tty_stdin(int fd, uint32_t events, void *cbdata,
if (lxc_read_nointr(ts->stdinfd, &c, 1) <= 0) if (lxc_read_nointr(ts->stdinfd, &c, 1) <= 0)
return 1; return 1;
if (ts->escape != -1) { if (ts->escape >= 1) {
/* we want to exit the console with Ctrl+a q */ /* we want to exit the console with Ctrl+a q */
if (c == ts->escape && !ts->saw_escape) { if (c == ts->escape && !ts->saw_escape) {
ts->saw_escape = 1; ts->saw_escape = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment