///////////////////////////////////////////////////////
| 724 | |
| 725 | //////////////////////////////////////////////////////////// |
| 726 | void restoreTerminalConfig() |
| 727 | { |
| 728 | const std::lock_guard lock(inputMutex); |
| 729 | initFileDescriptors(); |
| 730 | |
| 731 | tcsetattr(STDIN_FILENO, TCSANOW, &oldTerminalConfig); // restore terminal config |
| 732 | tcflush(STDIN_FILENO, TCIFLUSH); // flush the buffer |
| 733 | } |
| 734 | |
| 735 | } // namespace sf::priv::InputImpl |
no test coverage detected