aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core-commands.c
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/core-commands.c
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/core-commands.c')
-rw-r--r--src/core-commands.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core-commands.c b/src/core-commands.c
index 015865d..213d9ed 100644
--- a/src/core-commands.c
+++ b/src/core-commands.c
@@ -1628,7 +1628,9 @@ teco_state_control_input(teco_machine_main_t *ctx, gunichar chr, GError **error)
.modifier_colon = 1},
['X'] = {&teco_state_start, teco_state_control_search_mode},
['Y'] = {&teco_state_start, teco_state_control_last_range},
- ['S'] = {&teco_state_start, teco_state_control_last_length}
+ ['S'] = {&teco_state_start, teco_state_control_last_length},
+ ['T'] = {&teco_state_start, teco_state_control_typeout,
+ .modifier_colon = 1}
};
/*