diff options
author | FreeArtMan <dos21h@gmail.com> | 2015-05-16 19:22:46 +0900 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2015-05-16 19:22:46 +0900 |
commit | 5e5e5b1cbcb98eda7e0c52a367c66b944b480eda (patch) | |
tree | a1f474aae55cfcfe50388e06c13687279b11a4be /libterm/term.c | |
parent | f1fb9827faec228246062f2cd8e38f0dd3338e3a (diff) | |
download | microbbs-5e5e5b1cbcb98eda7e0c52a367c66b944b480eda.tar.gz microbbs-5e5e5b1cbcb98eda7e0c52a367c66b944b480eda.zip |
Added default config file loading. Add functionality for bbs todo file.
Diffstat (limited to 'libterm/term.c')
-rw-r--r-- | libterm/term.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libterm/term.c b/libterm/term.c index 241b650..532dc92 100644 --- a/libterm/term.c +++ b/libterm/term.c @@ -250,26 +250,17 @@ exit_error: } -#include <assert.h> //clean terminal with escape command int term_clr_scr( term_screen *ts ) { int ret = 0; - char s[] = T_ESC "[H" T_ESC "[2J"; - - - ASSERT( strlen(s)>0 ); - ASSERT( ts != NULL ); - ASSERT( ts->ofd > 0 ); - - if ( write( ts->ofd, s, strlen(s) ) <= 0 ){}; + if ( write( ts->ofd, T_ESC "[H" T_ESC "[2J", 7 ) <= 0 ){}; return ret; } - //set terminal default input/output behavior int term_set_raw_mode( term_screen *ts ) { |