diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-09-04 22:52:12 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-09-04 22:52:12 +0100 |
| commit | 7c796758d1b65d4d7585c90ba71b1fb339a4d283 (patch) | |
| tree | 232547ccf785f9413d039522d15b0cbfa5bf1618 /MultiConsole.c | |
| parent | fa3201d982100b5168f155f7c544f4fc902079d7 (diff) | |
New upstream version 6.0.25.1+repackupstream/6.0.25.1+repack
Diffstat (limited to 'MultiConsole.c')
| -rw-r--r-- | MultiConsole.c | 24 |
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;
+ }
}
|
