summaryrefslogtreecommitdiff
path: root/ChatMultiConsole.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-08-12 20:09:07 +0100
committerDave Hibberd <hibby@debian.org>2025-08-12 20:09:07 +0100
commita6b3c4bdc99301817092b8025cb217656afcf2bd (patch)
treea6cdad97aec389bbb2d5f34307e24d376ac4db48 /ChatMultiConsole.c
parent7a5122a60f5e28d0e59ae810ace607941e3ba068 (diff)
parent3e1cbdfa4d40ec5e6fba35446501ba933ae1451e (diff)
Update upstream source from tag 'upstream/6.0.24.80+repack'
Update to upstream version '6.0.24.80+repack' with Debian dir 9e943f8d36c6a64ae47eb54a3aa3ee85972ac107
Diffstat (limited to 'ChatMultiConsole.c')
-rw-r--r--ChatMultiConsole.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/ChatMultiConsole.c b/ChatMultiConsole.c
index bd38475..78308c6 100644
--- a/ChatMultiConsole.c
+++ b/ChatMultiConsole.c
@@ -983,7 +983,27 @@ 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
+
+ SendMessage(Cinfo->hwndInput, WM_KEYDOWN, VK_RIGHT, 0);
+ SendMessage(Cinfo->hwndInput, WM_KEYUP, VK_RIGHT, 0);
+
+ return 0;
+ }
}
return CallWindowProc(Cinfo->wpOrigInputProc, hwnd, uMsg, wParam, lParam);