summaryrefslogtreecommitdiff
path: root/MultiConsole.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-08-17 22:31:33 +0100
committerDave Hibberd <hibby@debian.org>2025-08-17 22:31:33 +0100
commit27d95452b1e341f55154c967320d1d8920b089c0 (patch)
tree5c9ce843e16802ef6dcdfc04ac8ea435b382564c /MultiConsole.c
parentd97d9d821bce50846d1f31290fffc3a447862bce (diff)
parente925e16114a18c7a0db4c016c176a149f5f67ab3 (diff)
Update upstream source from tag 'upstream/6.0.24.82+repack'
Update to upstream version '6.0.24.82+repack' with Debian dir a145ad04db4f8d413df5d1fe2c051f9842774c35
Diffstat (limited to 'MultiConsole.c')
-rw-r--r--MultiConsole.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/MultiConsole.c b/MultiConsole.c
index f574b53..8b3ef35 100644
--- a/MultiConsole.c
+++ b/MultiConsole.c
@@ -944,6 +944,30 @@ LRESULT APIENTRY InputProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return 0;
}
+
+ if (wParam == 0x7) // BEL (Ctrl/G)
+ {
+ // Get buffer, append 07 and write back
+
+ Cinfo->kbptr = SendMessage(Cinfo->hwndInput, WM_GETTEXT, INPUTLEN-1,
+ (LPARAM) (LPCSTR)Cinfo->kbbuf);
+
+
+ Cinfo->kbbuf[Cinfo->kbptr++] = 7;
+ Cinfo->kbbuf[Cinfo->kbptr] = 0;
+
+ SendMessage(Cinfo->hwndInput,WM_SETTEXT,0,(LPARAM)(LPCSTR) Cinfo->kbbuf);
+
+ // Send cursor right
+
+ for (i = 0; i < strlen(Cinfo->kbbuf); i++)
+ {
+ SendMessage(Cinfo->hwndInput, WM_KEYDOWN, VK_RIGHT, 0);
+ SendMessage(Cinfo->hwndInput, WM_KEYUP, VK_RIGHT, 0);
+ }
+
+ return 0;
+ }
}