diff options
author | 2006-02-16 23:40:25 +1000 | |
---|---|---|
committer | 2006-02-16 23:40:25 +1000 | |
commit | 94cae410f366f67ca3a45de563d8a032a0e452fa (patch) | |
tree | 61ce8fe26875d7140f2094f64a5976e2d9c8132d /reader.c | |
parent | cc69afc4fec7d5d2918a6ee086cef8e3f03324aa (diff) |
Move the move_cursor and writeb functions to output.c, and make the output function used by output.c configurable
darcs-hash:20060216134025-ac50b-360d4816ee2c3f2ffdc8e5660502cb97b31d699e.gz
Diffstat (limited to 'reader.c')
-rw-r--r-- | reader.c | 25 |
1 files changed, 3 insertions, 22 deletions
@@ -834,25 +834,6 @@ static void write_cmdline() } } -/** - perm_left_cursor and parm_right_cursor don't seem to be defined as - often as cursor_left and cursor_right, so we use this workalike. -*/ -static void move_cursor( int steps ) -{ - int i; - - if( steps < 0 ){ - for( i=0; i>steps; i--) - { - writembs(cursor_left); - } - } - else - for( i=0; i<steps; i++) - writembs(cursor_right); -} - void reader_init() { @@ -1462,7 +1443,7 @@ static void run_pager( wchar_t *prefix, int is_quoted, array_list_t *comp ) /** Handle the list of completions. This means the following: - + - If the list is empty, flash the terminal. - If the list contains one element, write the whole element, and if the element does not end on a '/', '@', ':', or a '=', also write a trailing @@ -2792,8 +2773,8 @@ wchar_t *reader_readline() case R_CLEAR_SCREEN: { - writembs( clear_screen ); - + if( clear_screen ) + writembs( clear_screen ); repaint(); break; } |