mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
commit
dbe4b8f6ac
1 changed files with 1 additions and 5 deletions
|
|
@ -228,7 +228,6 @@ int connect_tty(void)
|
||||||
if (option.log)
|
if (option.log)
|
||||||
log_write(c_tty);
|
log_write(c_tty);
|
||||||
|
|
||||||
if (c_tty != KEY_CTRL_T) // Small trick to avoid ctrl-t echo
|
|
||||||
tainted = true;
|
tainted = true;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
|
|
@ -244,9 +243,6 @@ int connect_tty(void)
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
printf("Warning: Could not read from stdin\r\n");
|
printf("Warning: Could not read from stdin\r\n");
|
||||||
|
|
||||||
if ((c_stdin[0] != KEY_Q) && (c_stdin[0] != KEY_CTRL_T))
|
|
||||||
tainted = true;
|
|
||||||
|
|
||||||
/* Exit upon ctrl-t + q sequence */
|
/* Exit upon ctrl-t + q sequence */
|
||||||
c_stdin[2] = c_stdin[1];
|
c_stdin[2] = c_stdin[1];
|
||||||
c_stdin[1] = c_stdin[0];
|
c_stdin[1] = c_stdin[0];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue