summaryrefslogtreecommitdiff
path: root/compat/terminal.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/terminal.h')
-rw-r--r--compat/terminal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/compat/terminal.h b/compat/terminal.h
new file mode 100644
index 0000000000..a9d52b8464
--- /dev/null
+++ b/compat/terminal.h
@@ -0,0 +1,9 @@
+#ifndef COMPAT_TERMINAL_H
+#define COMPAT_TERMINAL_H
+
+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 */