mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 07:34:32 +00:00
add1fa9208
darcs-hash:20061001205423-ac50b-2819a086fecb1bcd0ab1bc63bae76956f0181f54.gz
34 lines
519 B
C
34 lines
519 B
C
#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 );
|
|
void s_reset( screen_t *s );
|
|
|
|
#endif
|