Revert "TerminalTheme: fix hanging on screen 5.0"

It breaks kitty terminal font detection

This reverts commit 1ab86a8ab9.
This commit is contained in:
李通洲
2024-09-06 16:40:24 +08:00
parent c24d378cf1
commit de59ffb31f
+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 | O_NONBLOCK);
ftty = open("/dev/tty", O_RDWR | O_NOCTTY | O_CLOEXEC);
if (ftty < 0)
return "open(\"/dev/tty\", O_RDWR | O_NOCTTY | O_CLOEXEC) failed";