aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cmdline.c
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2025-11-09 19:26:37 +0100
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2025-11-09 19:26:37 +0100
commit5d7e8df952b2e51c28fad3443d7c9973659fc2ed (patch)
tree65db863c7cc409159532ea22cceb4fec34df1db8 /src/cmdline.c
parent6e9e09b7d23fcc300dc469c1f410e53d0a111bfa (diff)
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.
Diffstat (limited to 'src/cmdline.c')
-rw-r--r--src/cmdline.c4
1 files changed, 3 insertions, 1 deletions
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.