aboutsummaryrefslogtreecommitdiff
path: root/stmhal/readline.h
diff options
context:
space:
mode:
authorDamien George2014-11-27 16:58:31 +0000
committerDamien George2014-11-27 16:58:31 +0000
commit5cbc9e0db0f01e1e643e8c091a536b54372df5bd (patch)
tree76d4375c28234440496278bdb937805f230715f0 /stmhal/readline.h
parent6f5eb84c1959b7929824a881a0438d0eee23d31a (diff)
stmhal: Reduce coupling between USB driver and readline.
This makes it easier to re-use readline.c and pyexec.c from stmhal in other ports.
Diffstat (limited to 'stmhal/readline.h')
-rw-r--r--stmhal/readline.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/stmhal/readline.h b/stmhal/readline.h
index 8bbc43b43..d5ce4704e 100644
--- a/stmhal/readline.h
+++ b/stmhal/readline.h
@@ -24,5 +24,11 @@
* THE SOFTWARE.
*/
+#define CHAR_CTRL_A (1)
+#define CHAR_CTRL_B (2)
+#define CHAR_CTRL_C (3)
+#define CHAR_CTRL_D (4)
+#define CHAR_CTRL_E (5)
+
void readline_init0(void);
int readline(vstr_t *line, const char *prompt);