From 0ce3b52f696d9fb07dded56400d4d3338074ea6c Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 28 Oct 2024 17:38:02 +0300 Subject: added hidden --fake-cmdline parameter for testing command-line editing * Supports all immediate editing commands. Naturally it cannot emulate arbitrary key presses since there is no canonic ASCII-encoding of function keys. Key macros are not consequently also not testable. The --fake-cmdline parameter is instead treated very similar to a key macro expansion. * Most importantly this allows adding test cases for rubout behavior and bugs that are quite common. * Added regression test cases for the last two rubout bugs. * It's not easy to pass control codes in command line arguments in a portable manner, so the test cases will often use { and }. Control codes could be used e.g. by defining variables like RUBOUT=`printf '\b'` and referencing them with ${RUBOUT}. --- TODO | 3 --- 1 file changed, 3 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index f967b1d..f3142e5 100644 --- a/TODO +++ b/TODO @@ -418,9 +418,6 @@ Features: macros. The same construct would also be useful with non-interactive commands as a way to store the supplied parameter using EU for instance. - * Adding a secret command line option to process immediate editing - commands in batch mode with undo would allow us to add some - test cases that otherwise only occur in interactive mode. * Emscripten nodejs port. This may be a viable way to run SciTECO "cross"-platform, at least for evaluation... on UNIX-like systems in absence of prebuilt binaries. -- cgit v1.2.3