MCPcopy Create free account
hub / github.com/SFML/SFML / restoreTerminalConfig

Function restoreTerminalConfig

src/SFML/Window/DRM/InputImpl.cpp:726–733  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

724
725////////////////////////////////////////////////////////////
726void 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

Callers 1

~WindowImplDRMMethod · 0.85

Calls 1

initFileDescriptorsFunction · 0.85

Tested by

no test coverage detected