Apply terminal configuration changes to the status bar terminal.

This commit is contained in:
Martín Lucas Golini
2025-12-26 01:04:58 -03:00
parent c4e2ae49f8
commit cb70f5b205
2 changed files with 10 additions and 0 deletions

View File

@@ -1016,6 +1016,12 @@ UIMenu* SettingsMenu::createTerminalMenu() {
widget->asType<UITerminal>()->getTerm()->setCursorMode(
mApp->getConfig().term.cursorStyle );
} );
if ( mApp->getStatusTerminalController() &&
mApp->getStatusTerminalController()->getUITerminal() ) {
mApp->getStatusTerminalController()->getUITerminal()->getTerm()->setCursorMode(
mApp->getConfig().term.cursorStyle );
}
} );
UIPopUpMenu* scrollBarTypeMenu = UIPopUpMenu::New();

View File

@@ -48,6 +48,10 @@ UITerminal* StatusTerminalController::createTerminal(
mContext->getTerminalManager()->getTerminalCurrentColorScheme();
auto csIt = terminalColorSchemes.find( currentTerminalColorScheme );
term->getTerm()->getTerminal()->setAllowMemoryTrimnming( true );
term->getTerm()->setCursorMode( mContext->termConfig().cursorStyle );
term->setScrollViewType( mContext->termConfig().scrollBarType );
term->setVerticalScrollMode( mContext->termConfig().scrollBarMode );
term->setColorScheme( csIt != terminalColorSchemes.end()
? terminalColorSchemes.at( currentTerminalColorScheme )
: TerminalColorScheme::getDefault() );