blob: 0ae93db23362702b24ad6ad7ac284a28a83ff1bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#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
|