diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-30 23:58:32 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-31 00:33:43 +0300 |
commit | 2ec568579823c991b919fa3a2c8583a8db21cb81 (patch) | |
tree | 5ee30e3cde1df8b284aec73380c34b79afdbc8ab /src/interface.h | |
parent | 86fbf212de71a83e7bb4d83a4b33e54bed52dff9 (diff) | |
download | sciteco-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/interface.h')
-rw-r--r-- | src/interface.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/interface.h b/src/interface.h index 0e03a98..f22c023 100644 --- a/src/interface.h +++ b/src/interface.h @@ -66,6 +66,9 @@ void teco_interface_msg_literal(teco_msg_t type, const gchar *str, gsize len); void teco_interface_msg(teco_msg_t type, const gchar *fmt, ...) G_GNUC_PRINTF(2, 3); /** @pure */ +teco_int_t teco_interface_getch(gboolean widechar); + +/** @pure */ void teco_interface_msg_clear(void); /** @pure */ @@ -173,6 +176,9 @@ gboolean teco_interface_event_loop(GError **error); /** @protected */ void teco_interface_stdio_msg(teco_msg_t type, const gchar *str, gsize len); +/** @protected */ +teco_int_t teco_interface_stdio_getch(gboolean widechar); + /** @pure */ void teco_interface_cleanup(void); |