| 19 | Rectf noBtn; |
| 20 | |
| 21 | void loadColorSchemes( const std::string& resPath ) { |
| 22 | auto configPath = Sys::getConfigPath( "eterm" ); |
| 23 | auto colorSchemes = |
| 24 | TerminalColorScheme::loadFromFile( resPath + "colorschemes/terminalcolorschemes.conf" ); |
| 25 | auto colorSchemesPath = configPath + FileSystem::getOSSlash() + "colorschemes"; |
| 26 | if ( FileSystem::isDirectory( colorSchemesPath ) ) { |
| 27 | auto colorSchemesFiles = FileSystem::filesGetInPath( colorSchemesPath ); |
| 28 | for ( auto& file : colorSchemesFiles ) { |
| 29 | auto colorSchemesInFile = TerminalColorScheme::loadFromFile( file ); |
| 30 | std::copy( colorSchemesInFile.begin(), colorSchemesInFile.end(), |
| 31 | std::back_inserter( colorSchemes ) ); |
| 32 | } |
| 33 | } |
| 34 | for ( auto colorScheme : colorSchemes ) |
| 35 | terminalColorSchemes.insert( { colorScheme.getName(), colorScheme } ); |
| 36 | } |
| 37 | |
| 38 | void inputCallback( InputEvent* event ) { |
| 39 | if ( !terminal || event->Type == InputEvent::EventsSent ) |