From f5d538febe0f6ee1a791ab8254d54641ea40a920 Mon Sep 17 00:00:00 2001 From: Moss Date: Tue, 13 Sep 2022 20:03:02 -0400 Subject: [PATCH] User Input: Remove function changing console to non-canonical mode --- main.cpp | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/main.cpp b/main.cpp index aeec473..22c3811 100644 --- a/main.cpp +++ b/main.cpp @@ -38,28 +38,6 @@ long time_ms() #endif -int clear_icanon() -{ - struct termios settings{}; - int result; - result = tcgetattr (STDIN_FILENO, &settings); - if (result < 0) - { - perror ("error in tcgetattr"); - return 0; - } - - settings.c_lflag &= ~ICANON; - - result = tcsetattr (STDIN_FILENO, TCSANOW, &settings); - if (result < 0) - { - perror ("error in tcsetattr"); - return 0; - } - return 1; -} - bool substr_is(const std::string& string, int start, const std::string& test_str) { if (test_str.size() != test_str.size()) return false; @@ -473,7 +451,8 @@ static int sqlite_session_callback(void*, int argc, char** argv, char**) { int main(int argc, char** argv) { - clear_icanon(); // Changes terminal from canonical mode to non canonical mode. + bool verbose = true; + std::string quality = "1080p"; std::string series_name; std::string name;