~arivigo/sline

ref: e70ce36f53845b8a78a1b43a7a28393b43066068 sline/history.h -rw-r--r-- 310 bytes
e70ce36fAriadna Vigo Ignoring tabs in input 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
/* See LICENSE for copyright and license details. */

#define HISTORY_SIZE 50

const char *history_get(int pos);
void history_next(void);
void history_rotate(void);
void history_set(int pos, const char *input);

extern char *history[HISTORY_SIZE];
extern int hist_top, hist_pos;
extern size_t hist_entry_size;