From 7c910ee9ca9e0bf73e8b27aa39bd433c5365ec19 Mon Sep 17 00:00:00 2001 From: nickysn Date: Mon, 11 Mar 2019 18:08:21 +0000 Subject: [PATCH] * use stdin instead of stdout to switch the console to raw mode; this fixes keyboard input in OpenBSD git-svn-id: trunk@41678 - --- packages/rtl-console/src/unix/keyboard.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/rtl-console/src/unix/keyboard.pp b/packages/rtl-console/src/unix/keyboard.pp index 625b35b6cf..af39f4c2d2 100644 --- a/packages/rtl-console/src/unix/keyboard.pp +++ b/packages/rtl-console/src/unix/keyboard.pp @@ -124,7 +124,7 @@ procedure SetRawMode(b:boolean); var Tio:Termios; begin - TCGetAttr(1,Tio); + TCGetAttr(0,Tio); if b then begin {Standard output now needs #13#10.} @@ -138,7 +138,7 @@ begin {Standard output normally needs just a linefeed.} settextlineending(output,#10); end; - TCsetattr(1,TCSANOW,Tio); + TCsetattr(0,TCSANOW,Tio); end; {$ifdef linux}