summaryrefslogtreecommitdiffstats
path: root/libterm/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'libterm/term.c')
-rw-r--r--libterm/term.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libterm/term.c b/libterm/term.c
index 532dc92..2a726b4 100644
--- a/libterm/term.c
+++ b/libterm/term.c
@@ -27,6 +27,8 @@ int term_init( term_screen *term )
//if you whant raw mode then you should set it man
if ( tcgetattr( term->ifd, &term->orig_i ) == -1 ) goto exit_error;
term->raw_i = term->orig_i;
+ if ( tcgetattr( term->ofd, &term->orig_o ) == -1 ) goto exit_error;
+ term->raw_o = term->orig_o;
term->mode = SCREEN_MODE_80x25;