aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cmdline.h
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.h
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.h')
-rw-r--r--src/cmdline.h5
1 files changed, 4 insertions, 1 deletions
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);
}