aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-02-16 23:40:25 +1000
committerGravatar axel <axel@liljencrantz.se>2006-02-16 23:40:25 +1000
commit94cae410f366f67ca3a45de563d8a032a0e452fa (patch)
tree61ce8fe26875d7140f2094f64a5976e2d9c8132d /reader.c
parentcc69afc4fec7d5d2918a6ee086cef8e3f03324aa (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.c25
1 files changed, 3 insertions, 22 deletions
diff --git a/reader.c b/reader.c
index 47f23d04..8e7b413d 100644
--- a/reader.c
+++ b/reader.c
@@ -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;
}