~arivigo/sline

ref: 22b5cfa710ec05734e8a0cf898c38c74e00a723c sline/history.h -rw-r--r-- 310 bytes
22b5cfa7Ariadna Vigo Solved history ordering issues when deleting entries 3 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;