diff options
author | axel <axel@liljencrantz.se> | 2006-10-02 02:02:58 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-10-02 02:02:58 +1000 |
commit | 15724d079801df9183d0d86cadfbb7dec5b2821b (patch) | |
tree | f971d85d58390e28fd4e0429badcca584381709b /screen.h | |
parent | 2839f5e567e21a15850c3adfa2cc3cd1d7372ea9 (diff) |
First stab at multiline editing
darcs-hash:20061001160258-ac50b-1a760913e64b96e30ff321d7fbe4069ca161cdfe.gz
Diffstat (limited to 'screen.h')
-rw-r--r-- | screen.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/screen.h b/screen.h new file mode 100644 index 00000000..4a85edc0 --- /dev/null +++ b/screen.h @@ -0,0 +1,30 @@ +#ifndef FISH_SCREEN_H +#define FISH_SCREEN_H + +#define SCREEN_REPAINT 1 +#define SCREEN_SKIP_RETURN 2 + +typedef struct +{ + array_list_t output; + array_list_t screen; + int output_cursor[2]; + int screen_cursor[2]; + string_buffer_t prompt_buff; +} + screen_t; + +typedef struct +{ + array_list_t text; + array_list_t color; +} + line_t; + +void s_init( screen_t *s ); +void s_destroy( screen_t *s ); + +void s_write( screen_t *s, wchar_t *prompt, wchar_t *b, int *c, int cursor, int flags ); +void s_reset( screen_t *s ); + +#endif |