flac: Saner EOF handling
[cmus.git] / cmdline.h
blobc9cac6b0a9cee4f6d233031f68721c79a428b926
1 /*
2 * Copyright 2005 Timo Hirvonen
3 */
5 #ifndef CMDLINE_H
6 #define CMDLINE_H
8 #include "uchar.h"
10 struct cmdline {
11 /* length in bytes */
12 int blen;
14 /* length in characters */
15 int clen;
17 /* pos in bytes */
18 int bpos;
20 /* pos in characters */
21 int cpos;
23 /* allocated size */
24 int size;
26 char *line;
29 extern struct cmdline cmdline;
31 void cmdline_init(void);
32 void cmdline_insert_ch(uchar ch);
33 void cmdline_backspace(void);
34 void cmdline_backspace_to_bol(void);
35 void cmdline_delete_ch(void);
36 void cmdline_set_text(const char *text);
37 void cmdline_clear(void);
38 void cmdline_clear_end(void);
39 void cmdline_move_left(void);
40 void cmdline_move_right(void);
41 void cmdline_move_home(void);
42 void cmdline_move_end(void);
44 #endif