diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-25 17:55:24 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-26 00:42:15 +0300 |
commit | 574b46657cd5b752597384b31f37dd6a07f063d8 (patch) | |
tree | 78423ce3b0426c7541de0ed393c1f9cf7f6a9577 /src/core-commands.c | |
parent | 24c3bfc4f18f06a465b70afa45783d568402abdf (diff) | |
download | sciteco-574b46657cd5b752597384b31f37dd6a07f063d8.tar.gz |
support <:^A> to force raw ANSI output
* ^A uses the default code page without colon, just like ^U/EU.
This is usually UTF8, unless you run with --8bit.
It would make just as little sense to inherit the codepage from the
current document.
* Ensures that code like `:^A^E<0xFF>^A` really outputs byte 0xFF.
* DEC TECO doesn't have the colon modifier, but it has a colon modifier
for ^T to enforce raw output.
In SciTECO, the ^T vs. :^T distinction will also be between default codepage
and ANSI. It makes sense because ^T should treat its numeric arguments like <I>
for consistency.
Diffstat (limited to 'src/core-commands.c')
-rw-r--r-- | src/core-commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core-commands.c b/src/core-commands.c index e67aa2f..2669748 100644 --- a/src/core-commands.c +++ b/src/core-commands.c @@ -1549,7 +1549,7 @@ teco_state_control_input(teco_machine_main_t *ctx, gunichar chr, GError **error) ['['] = {&teco_state_escape}, ['C'] = {&teco_state_ctlc}, ['A'] = {&teco_state_print_string, - .modifier_at = TRUE}, + .modifier_at = TRUE, .modifier_colon = 1}, /* * Additional numeric operations |