TerminalTheme: fix hanging on screen 5.0

This commit is contained in:
李通洲
2024-09-02 09:26:54 +08:00
parent 99e0dc9aaa
commit 1ab86a8ab9
+1 -1
View File
@@ -144,7 +144,7 @@ const char* ffGetTerminalResponse(const char* request, const char* format, ...)
{
if (ftty < 0)
{
ftty = open("/dev/tty", O_RDWR | O_NOCTTY | O_CLOEXEC);
ftty = open("/dev/tty", O_RDWR | O_NOCTTY | O_CLOEXEC | O_NONBLOCK);
if (ftty < 0)
return "open(\"/dev/tty\", O_RDWR | O_NOCTTY | O_CLOEXEC) failed";