Add terminal cursor styles selection at Settings -> Terminal -> Cursor Styles.

Fix how selection in terminal is enabled or disabled based on the reported application capabilities.
Added sharedir option in premake files.
This commit is contained in:
Martín Lucas Golini
2025-12-19 12:56:16 -03:00
parent 7f340bad76
commit abda8775ac
11 changed files with 232 additions and 72 deletions
+4
View File
@@ -230,6 +230,8 @@ void AppConfig::load( const std::string& confPath, std::string& keybindingsPath,
ini.getValueB( "terminal", "unsupported_os_warn_disabled", false );
term.closeTerminalTabOnExit = ini.getValueB( "terminal", "close_terminal_tab_on_exit", false );
term.warnBeforeClosingTab = ini.getValueB( "terminal", "warn_before_closing_tab", true );
term.cursorStyle = TerminalCursorHelper::modeFromString(
ini.getValue( "terminal", "cursor_style", "steady_underline" ) );
workspace.restoreLastSession = ini.getValueB( "workspace", "restore_last_session", false );
workspace.checkForUpdatesAtStartup =
@@ -392,6 +394,8 @@ void AppConfig::save( const std::vector<std::string>& recentFiles,
ini.setValueB( "terminal", "unsupported_os_warn_disabled", term.unsupportedOSWarnDisabled );
ini.setValueB( "terminal", "close_terminal_tab_on_exit", term.closeTerminalTabOnExit );
ini.setValueB( "terminal", "warn_before_closing_tab", term.warnBeforeClosingTab );
ini.setValue( "terminal", "cursor_style",
TerminalCursorHelper::modeToString( term.cursorStyle ) );
ini.setValueB( "window", "vsync", context.VSync );
ini.setValue( "window", "glversion",