~arivigo/sline

ref: 0.4.0 sline/history.h -rw-r--r-- 311 bytes
c2a72b29Ariadna Vigo sline 0.4.0 10 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_curr, hist_pos;
extern size_t hist_entry_size;