From f297fbf8133ee37a4347ede98c74208b455f4d85 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Thu, 10 Jun 2021 10:00:47 -0400 Subject: [PATCH] omg im the worst --- terminal.d | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/terminal.d b/terminal.d index e496d0b..3e2e403 100644 --- a/terminal.d +++ b/terminal.d @@ -2879,14 +2879,15 @@ struct RealTimeConsoleInput { return int.min; // input closed if(ret == -1) { import core.stdc.errno; - if(errno == EINTR) + if(errno == EINTR) { // interrupted by signal call, quite possibly resize or ctrl+c which we want to check for in the event loop if(interruptable) return -1; else goto try_again; - else + } else { throw new Exception("read failed"); + } } //terminal.writef("RAW READ: %d\n", buf[0]); @@ -8448,8 +8449,6 @@ version(TerminalDirectToEmulator) { int termX = (ev.clientX - paddingLeft) / fontWidth; int termY = (ev.clientY - paddingTop) / fontHeight; - import std.stdio; writeln(ev.button); - if(sendMouseInputToApplication(termX, termY, arsd.terminalemulator.MouseEventType.buttonReleased, cast(arsd.terminalemulator.MouseButton) ev.button,