Merge pull request #24 from jwilk/tainted

Fixed setting "tainted"
This commit is contained in:
Martin Lund 2016-05-09 00:51:26 +02:00
commit dbe4b8f6ac

View file

@ -228,8 +228,7 @@ int connect_tty(void)
if (option.log)
log_write(c_tty);
if (c_tty != KEY_CTRL_T) // Small trick to avoid ctrl-t echo
tainted = true;
tainted = true;
} else
{
/* Error reading - device is likely unplugged */
@ -244,9 +243,6 @@ int connect_tty(void)
if (status < 0)
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 */
c_stdin[2] = c_stdin[1];
c_stdin[1] = c_stdin[0];