Revert "TerminalTheme: fix hanging on screen 5.0"

It breaks kitty terminal font detection

This reverts commit 1ab86a8ab9dc0739e5f540618ad7d762747e4bdd.
This commit is contained in:
李通洲 2024-09-06 16:40:24 +08:00
parent c24d378cf1
commit de59ffb31f
No known key found for this signature in database
GPG Key ID: 269AD4F5325A22A3

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";