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:
Robert Knight
2007-06-02 05:02:55 +00:00
parent 317c5cb153
commit c345da0ccf
9 changed files with 115 additions and 5 deletions

View File

@@ -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();
}