diff options
Diffstat (limited to 'twit.c')
-rw-r--r-- | twit.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -42,7 +42,7 @@ int bbs_twit( term_screen *ts, char *fn ) { term_clr_scr( ts ); term_cur_set_c( ts, 0 ); - printf("(A)dd,(Q)uit"); fflush( stdout ); + term_printf( ts, "(A)dd,(Q)uit"); //dispaly todo list row = term_get_maxrow( ts ); @@ -54,7 +54,7 @@ int bbs_twit( term_screen *ts, char *fn ) { term_cur_set_c( ts, 0 ); term_cur_set_r( ts, 1+cnt ); - printf( "[%02d] -> %s\n", cnt, (char *)iter->val); + term_printf( ts, "[%02d] -> %s\n", cnt, (char *)iter->val); cnt += 1; iter = iter->next; } @@ -63,7 +63,7 @@ int bbs_twit( term_screen *ts, char *fn ) term_cur_set_c( ts, 0 ); term_cur_set_r( ts, term_get_maxrow( ts ) ); - printf(":"); fflush( stdout ); + term_printf( ts, ":"); menu_input = term_getc( ts ); //if something whent wrong dont know why, need to get some test case @@ -84,7 +84,7 @@ int bbs_twit( term_screen *ts, char *fn ) break; default: - printf("Try more\n"); + term_printf( ts, "Try more\n"); } } @@ -109,11 +109,11 @@ int bbs_twit_add( term_screen *ts, List *twit, const char *fname) term_clr_scr( ts ); term_cur_set_c( ts, 0 ); term_cur_set_r( ts, 0 ); - printf("Put new twit:\n"); fflush( stdout ); + term_printf( ts, "Put new twit:\n"); memset( buf, 0, buf_size ); term_cur_set_c( ts, 0 ); - fret = term_readline( ts, buf, buf_size, READLINE_ALPHA ); + fret = term_readline( ts, buf, buf_size, READLINE_TEXT ); if ( fret > 0 ) { char *l = malloc( fret+1 ); |