Commit Graph

122 Commits

Author SHA1 Message Date
Jekyll Wu
790e835c6f Do not resolve the symlink for initial working directory.
The patch is from Danny Daemonic <DannyDaemonic@gmail.com>

FEATURE: 242114
FIXED-IN: 4.8
2011-09-30 23:56:19 +08:00
Jekyll Wu
c7e300a513 Delete another uncessary "#include <assert.h>". 2011-09-27 23:17:03 +08:00
Jekyll Wu
195abc0324 Rename erase char related methods in class Pty.
erase()    ==> eraseChar()
setErase() ==> setEraseChar()
2011-09-27 13:27:38 +08:00
Jekyll Wu
272ac9850e Include KDE headers consistently in the from of "#include <KSomething>" .
However, some KDE headers are still only available in the form of
"#include <ksomething.h>"

krun.h              ==>     KRun
kicon.h             ==>     KIcon
kdebug.h            ==>     KDebug
kshell.h            ==>     KShell
kdialog.h           ==>     KDialog
kconfig.h           ==>     KConfig
klocale.h           ==>     KLocale
kglobal.h           ==>     KGlobal
kcolorutils.h       ==>     KColorUtils
kconfiggroup.h      ==>     KConfigGroup
kdesktopfile.h      ==>     KDesktopFile
kcolorscheme.h      ==>     KColorScheme
kstandarddirs.h     ==>     KStandardDirs
ktemporaryfile.h    ==>     KTemporaryFile
klocalizedstring.h  ==>     KLocalizedString
2011-09-23 05:04:46 +08:00
Jekyll Wu
2818d96536 Calling Session::run() on a already running sesssion makes no sense. 2011-09-05 15:26:22 +08:00
Jekyll Wu
c246e94fb5 Check whether the pointer _shellProcess is null before using it. 2011-09-05 15:26:07 +08:00
Jekyll Wu
0e184eeda9 KStandardDirs::findExe() is actually a static method. 2011-09-03 17:09:34 +08:00
Jekyll Wu
f5772ab06b Enable copy action only when some text are selected.
FEATURE: 203768
FIXED-IN: 4.8
2011-08-27 01:59:18 +08:00
Jekyll Wu
0ddf722e08 Disable clear & reset actions when the secondary screen is in use.
BUG:204741
FIXED-IN: 4.8
2011-08-27 00:14:09 +08:00
Jekyll Wu
17588b326f Revert "use qobject_cast in place of old-style c++ type cast."
That change causes crash when detaching session. Weird.

This reverts commit 458095e8a4.
2011-08-25 23:59:03 +08:00
Jekyll Wu
458095e8a4 use qobject_cast in place of old-style c++ type cast. 2011-08-25 20:03:02 +08:00
Jekyll Wu
d2ea045040 Make some code slightly more readable. 2011-08-25 19:51:19 +08:00
Jekyll Wu
769f933256 align arguments in the same column. 2011-08-25 15:46:56 +08:00
Jekyll Wu
1514ea7612 Use '{ }' in a consistent way in the "if ... else ..." statement. 2011-08-25 15:38:22 +08:00
Jekyll Wu
024ffb1972 adjust indentation to 4 spaces. 2011-08-25 15:10:32 +08:00
Kurt Hindenburg
df9ac5a70d s/"/' for single character. 2011-08-23 09:12:02 -04:00
Jekyll Wu
6aad97eb01 make bookmark save non-default ssh port if it is used.
BUG: 238973
FIXED-IN: 4.8
2011-08-21 09:22:40 +08:00
Jekyll Wu
8801b4ffb5 Member variable _fullScripting is not used any more. 2011-08-11 18:51:24 +08:00
Jekyll Wu
016061eb60 remove code which is duplicated and effectively of no-use .
The fallback sequence for terminal command is not defined within
Session::checkProgram() anymore.
2011-08-11 11:32:31 +08:00
Kurt Hindenburg
7e00edd516 Make sure pty device has right size before terminal process queries it.
Whenever TeminalDisplay is resized, konsole tells the underlying
pty device its new size by calling Pty::setWindowSize(). However,
current code can't guarantee when the terminal process starts and
queries the pty device about its size, the pty device already has the
right info. This has caused some long known bugs, such as #176902.

This patch tries to guarantee that important assumption. It currently
uses a hard-coded small delay, which works pretty well in practice
although not that elegant.

Patch by Jekyll Wu <adaptee@gmail.com>

I think this is better than leaving the situation as it is.  This may
be backported if no issues are found.
BUG: 173999
BUG: 176902
BUG: 203185
BUG: 229058
REVIEW: 102061
FIXED-IN: 4.8
2011-08-05 10:40:14 -04:00
Montel Laurent
b91f50015d Normalize signals/slots 2011-07-30 14:10:56 +02:00
Kurt Hindenburg
b8b3f23723 Correct non-zero status notification such that it works.
The non-zero notification was being displayed for zero exit codes.

Thanks again to Jekyll Wu (adaptee@gmail.com) for patch and research.
BUG: 221726
FIXED-IN: 2.8
2011-07-20 09:53:32 -04:00
Montel Laurent
a955ae6e36 Don't check pointer before to delete it 2011-04-21 13:37:01 +02:00
Kurt Hindenburg
acd507e1a5 Set correct focus in the "rename tab" dialog.
Currently, the OK button has the focus upon startup. After patch, the
user doesn't need to remember if they need to adjust the remote or
local title.

Patch by Sebastian Kühn

http://git.reviewboard.kde.org/r/100642/
2011-02-13 21:29:15 -05:00
Kurt Hindenburg
b216cb9daf In the tab title, for %D change the user's home path with a ~ if it starts at the
beginning.

FEATURE: 206316
FIXED-IN: 4.6

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1185589
2010-10-13 19:58:43 +00:00
Kurt Hindenburg
f212b944c7 Use kWarnings for error messages
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1148434
2010-07-10 16:44:45 +00:00
Kurt Hindenburg
3d052f909c Add 2 new dbus methods for setting tab title formats so that they are persistent.
Thanks to Andrea Solis for original patch.

FIXED_IN: 4.5
BUG: 183963

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1136726
2010-06-10 15:09:49 +00:00
Kurt Hindenburg
abacbc3ada Save character encoding to session management.
BUG: 221450

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1134480
2010-06-04 12:33:33 +00:00
Eli MacKenzie
2f6ec63377 Adds support for SHELL_SESSION_ID.
CCBUG:156563

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1125733
2010-05-12 06:15:41 +00:00
Kurt Hindenburg
bc3e902d65 Correct where new Hotspots are calculated upon resize.
CCBUG: 228443

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1097379
2010-03-01 04:10:55 +00:00
Kurt Hindenburg
926f4f085a Add some context for translators
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1086337
2010-02-06 23:08:09 +00:00
Friedrich W. H. Kossebau
1cf6ef9365 changed: made static const data symbols really static const
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1080302
2010-01-26 02:57:09 +00:00
Kurt Hindenburg
c227b186c4 Fix issue where 'Copy Input To' doesn't work for multiple windows.
Patch by Thomas Dreibholz

BUG: 218616

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1067166
2009-12-29 03:59:07 +00:00
Kurt Hindenburg
df31057755 On the command line expand ./ for -e only.
CCBUG: 202302

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1028021
2009-09-25 14:26:03 +00:00
Kurt Hindenburg
c45359a075 Allow relative program parameters on command line and profiles.
BUG: 202302

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1027909
2009-09-25 05:33:02 +00:00
Kurt Hindenburg
9f3e26e76f Update 'Copy Input To->' menu items.
Thanks to Thomas Dreibholz for patch.  I made a few minor alterations.

BUG: 168292
GUI

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1027898
2009-09-25 03:05:08 +00:00
Kurt Hindenburg
02713c707d Correct to US Spelling
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1017651
2009-08-31 03:32:14 +00:00
Kurt Hindenburg
2af04206c9 Allow Konsole's zmodem file transfers to work.
Thanks to Thomas Dreibholz <dreibh@iem.uni-due.de> for the patch.  I removed
some whitespace changes from his patch on reviewboard.

BUG: 200744

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1016847
2009-08-29 04:24:37 +00:00
Kurt Hindenburg
a17a48247f Expand ~ for working/initial directory; includes the command line and in profiles.
BUG: 183283

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=965328
2009-05-08 15:34:38 +00:00
Kurt Hindenburg
ac17e1eaaa remove old debugging output
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=957196
2009-04-21 15:10:38 +00:00
Kurt Hindenburg
b05607ee5f Implements the session portion of the dbus interface.
CCBUG: 169024

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=957189
2009-04-21 15:02:09 +00:00
Rahman Duran
9ec6d94a7b Implemented new TerminalInterfaceV2 functions.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=946379
2009-03-29 11:51:01 +00:00
Robert Knight
dd9df43b44 Remove emacs mode information from the bottom of some source files.
If this information is put anywhere it should be in a single file instead
of duplicated for each file.  In fact, it shouldn't be needed at all since
we have the same rules on tabs and tab sizes as most other parts of kdebase


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=946369
2009-03-29 11:12:57 +00:00
Robert Knight
ef3e43e11d Initial implementation of session management in Konsole.
Patch from Stefan Becker <stefan.becker@nokia.com>

Thank-you very much Stefan!

CCBUG: 152761


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=867323
2008-10-03 10:38:50 +00:00
Robert Knight
4bfb7abf81 Follow rename of Emulation::getErase()
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=864901
2008-09-25 21:35:08 +00:00
Robert Knight
c05cbc4792 Remove unused variable
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=864329
2008-09-24 14:12:15 +00:00
Robert Knight
956277c014 Convert tabs to 4 spaces to match kdelibs conventions. Previously
there was a mix of tabs and spaces for indentation.

CCMAIL:Stefan.Becker@nokia.com


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=863326
2008-09-21 20:06:58 +00:00
Kurt Hindenburg
877abc9ec6 Change getenv to qgetenv for portable (ebn krazy)
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=846759
2008-08-14 03:55:59 +00:00
Robert Knight
a6f62f87d7 If a terminal process does not respond to SIGHUP (because it is running as root
for example), close the pty instead and wait for the process to exit.

CCBUG:165994

BACKPORT-4.0

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=832426
2008-07-14 16:31:37 +00:00
Robert Knight
3330cfe0ff Fix crash when closing a program which exited unexpectedly. _shellProcess->program()
may not be valid at this point, use Session::_program instead.

BACKPORT

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=832425
2008-07-14 16:31:32 +00:00