mirror of https://github.com/adamdruppe/arsd.git
oops left in a debugging printf
This commit is contained in:
parent
1a518da8ec
commit
107abad8d5
|
@ -2852,7 +2852,7 @@ struct RealTimeConsoleInput {
|
||||||
INPUT_RECORD[32] buffer;
|
INPUT_RECORD[32] buffer;
|
||||||
DWORD actuallyRead;
|
DWORD actuallyRead;
|
||||||
auto success = ReadConsoleInputW(inputHandle, buffer.ptr, buffer.length, &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)
|
if(success == 0)
|
||||||
throw new Exception("ReadConsoleInput");
|
throw new Exception("ReadConsoleInput");
|
||||||
|
|
||||||
|
@ -5656,6 +5656,7 @@ class LineGetter {
|
||||||
justKilled = true;
|
justKilled = true;
|
||||||
redraw();
|
redraw();
|
||||||
break;
|
break;
|
||||||
|
// btw alt+enter could be alias for F9?
|
||||||
case KeyboardEvent.Key.F9:
|
case KeyboardEvent.Key.F9:
|
||||||
justHitTab = justKilled = false;
|
justHitTab = justKilled = false;
|
||||||
// compile and run analog; return the current string
|
// compile and run analog; return the current string
|
||||||
|
@ -7039,6 +7040,9 @@ version(TerminalDirectToEmulator) {
|
||||||
import arsd.terminalemulator;
|
import arsd.terminalemulator;
|
||||||
import arsd.minigui;
|
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.
|
Represents the window that the library pops up for you.
|
||||||
+/
|
+/
|
||||||
|
@ -7092,6 +7096,8 @@ version(TerminalDirectToEmulator) {
|
||||||
|
|
||||||
auto fp = stdout;
|
auto fp = stdout;
|
||||||
|
|
||||||
|
// FIXME: openpty
|
||||||
|
|
||||||
int[2] fds;
|
int[2] fds;
|
||||||
auto ret = pipe(fds);
|
auto ret = pipe(fds);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue