show more info on windows

This commit is contained in:
Adam D. Ruppe 2020-01-18 11:53:14 -05:00
parent bf20624b11
commit a929982e46
1 changed files with 2 additions and 1 deletions

View File

@ -1949,6 +1949,7 @@ struct RealTimeConsoleInput {
ke.pressed = ev.bKeyDown ? true : false;
// only send released events when specifically requested
// terminal.writefln("got %s %s", ev.UnicodeChar, ev.bKeyDown);
if(ev.UnicodeChar && ev.wVirtualKeyCode == VK_MENU && ev.bKeyDown == 0) {
// this indicates Windows is actually sending us
// an alt+xxx key sequence, may also be a unicode paste.
@ -2791,7 +2792,7 @@ void main() {
//
terminal.setTitle("Basic I/O");
auto input = RealTimeConsoleInput(&terminal, ConsoleInputFlags.raw | ConsoleInputFlags.allInputEvents);
auto input = RealTimeConsoleInput(&terminal, ConsoleInputFlags.raw | ConsoleInputFlags.allInputEventsWithRelease);
terminal.color(Color.green | Bright, Color.black);
terminal.write("test some long string to see if it wraps or what because i dont really know what it is going to do so i just want to test i think it will wrap but gotta be sure lolololololololol");