aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/stdio-commands.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-30 23:58:32 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-31 00:33:43 +0300
commit2ec568579823c991b919fa3a2c8583a8db21cb81 (patch)
tree5ee30e3cde1df8b284aec73380c34b79afdbc8ab /src/stdio-commands.h
parent86fbf212de71a83e7bb4d83a4b33e54bed52dff9 (diff)
downloadsciteco-2ec568579823c991b919fa3a2c8583a8db21cb81.tar.gz
implemented ^T command: allows typing by code and getting characters from stdin or the user
* n:^T always prints bytes (cf. :^A) * ^T without arguments returns a codepoint or byte from stdin. In interactive mode, this currentply places a cursor in the message line and waits for a keypress.
Diffstat (limited to 'src/stdio-commands.h')
-rw-r--r--src/stdio-commands.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/stdio-commands.h b/src/stdio-commands.h
index b6870e7..985d1ac 100644
--- a/src/stdio-commands.h
+++ b/src/stdio-commands.h
@@ -20,7 +20,11 @@
#include "parser.h"
+void teco_state_start_typeout(teco_machine_main_t *ctx, GError **error);
+void teco_state_control_typeout(teco_machine_main_t *ctx, GError **error);
+
+/*
+ * Command states
+ */
TECO_DECLARE_STATE(teco_state_print_decimal);
TECO_DECLARE_STATE(teco_state_print_string);
-
-void teco_state_start_typeout(teco_machine_main_t *ctx, GError **error);