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.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cmdline.h') diff --git a/src/cmdline.h b/src/cmdline.h index 1ec891b..bd3158d 100644 --- a/src/cmdline.h +++ b/src/cmdline.h @@ -46,6 +46,9 @@ typedef struct { */ teco_view_t *view; + /** Height of the command line view in lines */ + guint height; + /** Program counter within the command-line macro */ gsize pc; @@ -80,7 +83,7 @@ teco_cmdline_ssm(unsigned int iMessage, uptr_t wParam, sptr_t lParam) * On the other hand this limits how you can customize the scroll behavior. */ static inline void -teco_cmdline_resize(guint width) +teco_cmdline_resized(guint width) { teco_cmdline_ssm(SCI_SETXCARETPOLICY, CARET_SLOP | CARET_EVEN, width/2); } -- cgit v1.2.3