diff options
Diffstat (limited to 'source/os_specific/service_layers/osunixxf.c')
-rw-r--r-- | source/os_specific/service_layers/osunixxf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/os_specific/service_layers/osunixxf.c b/source/os_specific/service_layers/osunixxf.c index b656de96fe6f..ca062067a98f 100644 --- a/source/os_specific/service_layers/osunixxf.c +++ b/source/os_specific/service_layers/osunixxf.c @@ -137,6 +137,15 @@ OsEnterLineEditMode ( struct termios LocalTermAttributes; + TermAttributesWereSet = 0; + + /* STDIN must be a terminal */ + + if (!isatty (STDIN_FILENO)) + { + return; + } + /* Get and keep the original attributes */ if (tcgetattr (STDIN_FILENO, &OriginalTermAttributes)) |