From 7ae9f382298c6a9f58df2eebd951d828f0ddc954 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Mon, 15 Mar 2021 18:03:48 +0100 Subject: [PATCH] Cygwin build fix --- src/ftermdetection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftermdetection.cpp b/src/ftermdetection.cpp index 1a7c8539..83e9c43d 100644 --- a/src/ftermdetection.cpp +++ b/src/ftermdetection.cpp @@ -407,7 +407,7 @@ void FTermDetection::detectTerminal() const auto& termfilename = fterm_data->getTermFileName(); // Fixes problem with mouse input - if ( std::strncmp(termfilename, "/dev/cons", 9) == 0 ) + if ( termfilename.substr(0, 9) == "/dev/cons" ) FKeyboard::setNonBlockingInputSupport(false); #endif }