oops left in a debugging printf

This commit is contained in:
Adam D. Ruppe 2020-12-04 20:52:41 -05:00
parent 1a518da8ec
commit 107abad8d5
1 changed files with 7 additions and 1 deletions

View File

@ -2852,7 +2852,7 @@ struct RealTimeConsoleInput {
INPUT_RECORD[32] buffer;
DWORD actuallyRead;
auto success = ReadConsoleInputW(inputHandle, buffer.ptr, buffer.length, &actuallyRead);
import std.stdio; writeln(buffer[0 .. actuallyRead][0].KeyEvent, cast(int) buffer[0].KeyEvent.UnicodeChar);
//import std.stdio; writeln(buffer[0 .. actuallyRead][0].KeyEvent, cast(int) buffer[0].KeyEvent.UnicodeChar);
if(success == 0)
throw new Exception("ReadConsoleInput");
@ -5656,6 +5656,7 @@ class LineGetter {
justKilled = true;
redraw();
break;
// btw alt+enter could be alias for F9?
case KeyboardEvent.Key.F9:
justHitTab = justKilled = false;
// compile and run analog; return the current string
@ -7039,6 +7040,9 @@ version(TerminalDirectToEmulator) {
import arsd.terminalemulator;
import arsd.minigui;
version(Posix)
private extern(C) int openpty(int* master, int* slave, char*, const void*, const void*);
/++
Represents the window that the library pops up for you.
+/
@ -7092,6 +7096,8 @@ version(TerminalDirectToEmulator) {
auto fp = stdout;
// FIXME: openpty
int[2] fds;
auto ret = pipe(fds);