mirror of
https://github.com/KDE/konsole.git
synced 2026-05-05 13:14:22 -04:00
Initial version of a command-line tool (konsoleprofile) to change profile options. Usage: konsoleprofile option=value . Applies to the profile used by the session in which konsoleprofile was executed. All of the logic is in Konsole itself. 'konsoleprofile' is just a very simple shell script which can be placed anywhere. Example usage: 'konsoleprofile colorscheme=WhiteOnBlack' will change the colors used by the active tab.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=670582
This commit is contained in:
@@ -102,7 +102,8 @@ Session::Session() :
|
||||
SLOT( fireZModemDetected() ) );
|
||||
connect( _emulation, SIGNAL( changeTabTextColorRequest( int ) ),
|
||||
this, SIGNAL( changeTabTextColorRequest( int ) ) );
|
||||
|
||||
connect( _emulation, SIGNAL(profileChangeCommandReceived(const QString&)),
|
||||
this, SIGNAL( profileChangeCommandReceived(const QString&)) );
|
||||
// TODO
|
||||
// connect( _emulation,SIGNAL(imageSizeChanged(int,int)) , this ,
|
||||
// SLOT(onEmulationSizeChange(int,int)) );
|
||||
@@ -358,6 +359,14 @@ void Session::setUserTitle( int what, const QString &caption )
|
||||
}
|
||||
}
|
||||
|
||||
if (what == 50) {
|
||||
|
||||
qDebug() << "Profile change command received";
|
||||
emit profileChangeCommandReceived(caption);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ( modified )
|
||||
emit titleChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user