Skip to content

Commit 1ab86a8

Browse files
committed
TerminalTheme: fix hanging on screen 5.0
1 parent 99e0dc9 commit 1ab86a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/io/io_unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const char* ffGetTerminalResponse(const char* request, const char* format, ...)
144144
{
145145
if (ftty < 0)
146146
{
147-
ftty = open("/dev/tty", O_RDWR | O_NOCTTY | O_CLOEXEC);
147+
ftty = open("/dev/tty", O_RDWR | O_NOCTTY | O_CLOEXEC | O_NONBLOCK);
148148
if (ftty < 0)
149149
return "open(\"/dev/tty\", O_RDWR | O_NOCTTY | O_CLOEXEC) failed";
150150

0 commit comments

Comments
 (0)