00001 00012 #ifndef FISH_SCREEN_H 00013 #define FISH_SCREEN_H 00014 00018 typedef struct 00019 { 00023 array_list_t desired; 00027 array_list_t actual; 00031 int desired_cursor[2]; 00035 int actual_cursor[2]; 00040 string_buffer_t actual_prompt; 00041 00046 int actual_width; 00047 00054 int need_clear; 00055 00060 struct stat prev_buff_1, prev_buff_2, post_buff_1, post_buff_2; 00061 } 00062 screen_t; 00063 00068 typedef struct 00069 { 00076 array_list_t text; 00080 array_list_t color; 00081 } 00082 line_t; 00083 00087 void s_init( screen_t *s ); 00088 00092 void s_destroy( screen_t *s ); 00093 00101 void s_write( screen_t *s, 00102 wchar_t *prompt, 00103 wchar_t *commandline, 00104 int *colors, 00105 int *indent, 00106 int cursor_pos ); 00107 00123 void s_reset( screen_t *s, int reset_cursor ); 00124 00125 #endif
1.5.6