00001 00009 #ifndef FISH_READER_H 00010 #define FISH_READER_H 00011 00012 #include <wchar.h> 00013 00014 #include "util.h" 00015 #include "io.h" 00016 00020 int reader_read( int fd, io_data_t *io); 00021 00025 void reader_exit( int do_exit, int force ); 00026 00030 void reader_sanity_check(); 00031 00035 void reader_init(); 00036 00040 void reader_destroy(); 00041 00045 wchar_t *reader_current_filename(); 00046 00052 void reader_push_current_filename( const wchar_t *fn ); 00056 wchar_t *reader_pop_current_filename(); 00057 00063 void reader_write_title(); 00064 00069 void reader_repaint_needed(); 00070 00075 void reader_run_command( const wchar_t *buff ); 00076 00081 wchar_t *reader_get_buffer(); 00082 00089 void reader_set_buffer( wchar_t *b, int p ); 00090 00095 int reader_get_cursor_pos(); 00096 00101 int reader_interrupted(); 00102 00108 wchar_t *reader_readline(); 00109 00113 void reader_push( wchar_t *name ); 00114 00118 void reader_pop(); 00119 00126 void reader_set_complete_function( void (*f)( const wchar_t *, array_list_t * ) ); 00127 00136 void reader_set_highlight_function( void (*f)( wchar_t *, int *, int, array_list_t * ) ); 00137 00142 void reader_set_test_function( int (*f)( wchar_t * ) ); 00143 00148 void reader_set_prompt( wchar_t *prompt ); 00149 00153 int exit_status(); 00154 00158 void reader_replace_current_token( wchar_t *new_token ); 00159 00163 void reader_handle_int( int signal ); 00164 00168 int reader_exit_forced(); 00169 00174 int reader_shell_test( wchar_t *b ); 00175 00181 int reader_search_mode(); 00182 00183 00184 #endif
1.4.4