diff options
author | axel <axel@liljencrantz.se> | 2006-10-02 06:54:23 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-10-02 06:54:23 +1000 |
commit | add1fa92087b07bbb9a394cb06c40983f38d48e9 (patch) | |
tree | 0928fb85c343dd832241e5a4e365116405e73ab1 /output.c | |
parent | 8b2059c628000023e5ba745a7fa9d9b6729314b6 (diff) |
First cleanup of multiline patch - add support for commands longer than one line and do minor cleanups, including removal of a few unused functions
darcs-hash:20061001205423-ac50b-2819a086fecb1bcd0ab1bc63bae76956f0181f54.gz
Diffstat (limited to 'output.c')
-rw-r--r-- | output.c | 47 |
1 files changed, 0 insertions, 47 deletions
@@ -341,34 +341,6 @@ void set_color( int c, int c2 ) } - -/** - perm_left_cursor and parm_right_cursor don't seem to be properly - emulated by many terminal emulators, so we only use plain - curor_left, curor_right... -*/ -void move_cursor( int steps ) -{ - int i; - - if( !steps ) - return; - - if( steps < 0 ){ - for( i=0; i>steps; i--) - { - writembs(cursor_left); - } - } - else - { - for( i=0; i<steps; i++) - { - writembs(cursor_right); - } - } -} - /** Default output method, simply calls write() on stdout */ @@ -558,25 +530,6 @@ int write_escaped_str( const wchar_t *str, int max_len ) } -int writespace( int c ) -{ - if( repeat_char && strlen(repeat_char) ) - { - writembs( tparm( repeat_char, ' ', c ) ); - } - else - { - int i; - - for( i=0; i<c; i++ ) - { - out( ' ' ); - } - } - return 0; -} - - int output_color_code( const wchar_t *val ) { int j, i, color=FISH_COLOR_NORMAL; |