Unverified Commit 94b308f7 by Stéphane Graber Committed by GitHub

Merge pull request #1917 from brauner/2017-11-10/report_console_detach_only_when_needed

console: report detach message on demand
parents c83280b7 686df166
......@@ -832,11 +832,14 @@ int lxc_console(struct lxc_container *c, int ttynum,
goto close_mainloop;
}
fprintf(stderr, "\n"
if (ts->escape >= 1) {
fprintf(stderr,
"\n"
"Connected to tty %1$d\n"
"Type <Ctrl+%2$c q> to exit the console, "
"<Ctrl+%2$c Ctrl+%2$c> to enter Ctrl+%2$c itself\n",
ttynum, 'a' + escape - 1);
}
if (istty) {
ret = lxc_setup_tios(stdinfd, &oldtios);
......
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