From 5d7e8df952b2e51c28fad3443d7c9973659fc2ed Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 9 Nov 2025 19:26:37 +0100 Subject: allow configuring the command line height using h,5EJ * This allows for several customizations. * You can simply increase the visible command line history. For that you must also set SCI_SETWRAPMODE(SC_WRAP_CHAR). An example was added to fallback.teco_ini. * You could also set SCI_SETLINEENDTYPESALLOWED(SC_LINE_END_TYPE_DEFAULT) to see the structure of inserted text. * Alternatively we could have introduced a new command like EP or FW and also overload it to replace the current ED&2048 (e.g. -EP and EP). In DEC TECO `W` comes closest to what 5EJ now does. --- src/cmdline.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cmdline.c') diff --git a/src/cmdline.c b/src/cmdline.c index 53436fe..54f5cd1 100644 --- a/src/cmdline.c +++ b/src/cmdline.c @@ -65,7 +65,9 @@ int malloc_trim(size_t pad); /** Style used for the asterisk at the beginning of the command line */ #define STYLE_ASTERISK 64 -teco_cmdline_t teco_cmdline = {}; +teco_cmdline_t teco_cmdline = { + .height = 1 +}; /* * FIXME: Should perhaps be in doc.h. -- cgit v1.2.3