summaryrefslogtreecommitdiff
path: root/compat/terminal.h
blob: e1770c575b2c5c501d3fbf3bcbe3873d288a1c92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef COMPAT_TERMINAL_H
#define COMPAT_TERMINAL_H

int save_term(int full_duplex);
void restore_term(void);

char *git_terminal_prompt(const char *prompt, int echo);

/* Read a single keystroke, without echoing it to the terminal */
int read_key_without_echo(struct strbuf *buf);

#endif /* COMPAT_TERMINAL_H */