aboutsummaryrefslogtreecommitdiff
path: root/readline.h
blob: c5c10d6e3fb1dd89824be3cb297a2254597e7f94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef READLINE_H
#define READLINE_H

#include "qemu-common.h"

typedef void ReadLineFunc(Monitor *mon, const char *str, void *opaque);

void readline_add_completion(const char *str);
void readline_set_completion_index(int index);
void readline_find_completion(const char *cmdline);

const char *readline_get_history(unsigned int index);

void readline_handle_byte(int ch);

void readline_start(const char *prompt, int is_password,
                    ReadLineFunc *readline_func, void *opaque);
void readline_show_prompt(void);

#endif /* !READLINE_H */