summaryrefslogtreecommitdiff
path: root/src/fe-common/core/command-history.h
blob: 8ed26757fa45a68d74ed3a71306b958b0190c6a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __COMMAND_HISTORY_H
#define __COMMAND_HISTORY_H

#include "windows.h"

void command_history_init(void);
void command_history_deinit(void);

void command_history_add(WINDOW_REC *window, const char *text, int prepend);

const char *command_history_prev(WINDOW_REC *window, const char *text);
const char *command_history_next(WINDOW_REC *window, const char *text);

void command_history_clear_pos(WINDOW_REC *window);

#endif