From 574b46657cd5b752597384b31f37dd6a07f063d8 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 25 Jul 2025 17:55:24 +0300 Subject: 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 for consistency. --- src/core-commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core-commands.c') 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 -- cgit v1.2.3