Commit Graph

27 Commits

Author SHA1 Message Date
Jekyll Wu
97ce14afef Remove code for tab title formatter %c and %C.
Those two formatters have never been actually implemented or revealed to
users. It is quite hard to infer what they are supposed to do based upon
exising code and commit history
2012-02-13 06:21:28 +08:00
Kurt Hindenburg
6d31f70160 Apply astyle-kdelibs
Over the years, the coding style is all over the place.

Use 'git diff -w --ignore-all-space' to see non-whitespace changes.
2011-12-24 11:03:54 -05:00
Jekyll Wu
330de6c6f4 Fix some spelling problems 2011-11-06 03:41:20 +08:00
Jekyll Wu
8f1bbd4353 Remove trailing white spaces 2011-11-05 19:49:23 +08:00
Jekyll Wu
cf92cece2b Remove leading white spaces in blank lines to make them really empty 2011-11-05 07:29:21 +08:00
Jekyll Wu
050454280b Remove emacs mode information from the bottom of some source files.
This is a follow-up of commit dd9df43b44
2011-09-05 17:33:31 +08:00
Jekyll Wu
869cdb1090 support -p port in ssh command for specifying non-default port. 2011-08-21 09:17:42 +08:00
Jekyll Wu
20e9274943 Fix a hidden bug which makes argument list grow longer for ever.
The old code updates the argument list when it is asked to refresh
process info, but it calls ProcessInfo::addArgument() without ever
clearing existing arguements first. This means the argument list will
grow longer and longer for ever. For a long-running shell session in
which user has executed thousands of commands, that will waste quite
amount of memory, not to metion the logic error itself.

The reaseon why this bug keeps hidden is that the %c and %C formatter
have never been revealed to users, which are not implemented yet.
2011-08-20 19:23:17 +08:00
Jekyll Wu
e9c94b87e1 fix minor problem of example code within api doc string. 2011-08-20 16:41:58 +08: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
Till Adam
530ae48f53 Fix the build on OSX and Windows by implementing all virtuals in
NullProcessInfo.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=952828
2009-04-12 16:36:35 +00:00
Kurt Hindenburg
89fdb61362 Allow %u (user) in tab/window title
BUG: 154295

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=952487
2009-04-12 00:52:42 +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
e7c489818b * Working dynamic tab titles under Solaris. Patch by Adriaan de Groot.
* Re-organise CMakeLists.txt

Squashed commit of the following:

commit 7de6492753607603675729844520c89d914294eb
Author: Robert Knight <robertknight@gmail.com>
Date:   Wed Jun 25 22:46:06 2008 +0100

    Formatting.  Clarify comments.

commit 5e419ee80316fc523d6809f0b5f7112aca565d19
Author: Robert Knight <robertknight@gmail.com>
Date:   Wed Jun 25 22:35:23 2008 +0100

    Fix compilation of ProcessInfo.cpp under Linux.  Add missing members to dummy psinfo struct.  Create instance of correct ProcessInfo sub-class depending on whether OS is Linux or Solaris.

commit 08d0ce320761bf2beedeb463a01bcb0a3e426439
Author: Robert Knight <robertknight@gmail.com>
Date:   Wed Jun 25 22:34:11 2008 +0100

    Re-organise the CMakeLists.txt to avoid duplicating the list of sources for the part and the application.

commit 7b84b5ebb7422f8e87dbc2e224ebc2405355e262
Author: Robert Knight <robertknight@gmail.com>
Date:   Wed Jun 25 17:28:47 2008 +0100

    Support for reading process information under Solaris.  Patch from Adriaan de Groot.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=824517
2008-06-26 00:07:01 +00:00
Robert Knight
5d9997446e Update copyright year to 2008. Remove '(C)' from copyright lines.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=800631
2008-04-24 14:53:43 +00:00
Robert Knight
46cfc108d3 * Replace all usage of qDebug() with kDebug(), since kDebug() provides information about
which part of the code the message came from and allows filtering of output
  using kdebugdialog
* Remove explicit creation of singleton classes SessionManager,ColorSchemeManager and
  KeyboardTranslatorManager and automate it with K_GLOBAL_STATIC.
  This ensures that the singleton destructors are called appropriately by KPart clients
  when they unload the libkonsolepart library.


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754334
2007-12-29 16:07:31 +00:00
Robert Knight
757101c615 If reading the current working directory of a process fails (eg. when running a 'sudo' command) when preparing a tab title then fall back to the parent process's current working directory. Add basic error reporting to ProcessInfo.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=699000
2007-08-11 19:21:45 +00:00
Robert Knight
c88bf4bc48 Make the directory names to abbreviate in tab titles a KConfig-based setting.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=691621
2007-07-24 04:02:50 +00:00
Robert Knight
37088799cf * Update the regular expression for the Url filter. Anything in the form
letters://any-non-whitespace-characters is treated as a Url

* Correct the test which compares the old and new values and ranges when
  updating the terminal display's scroll bar.  
  This fixes the scroll bar being repainted unnecessarily often.  Found
  with the nifty QT_FLUSH_PAINT debugging tool.

* Select the profile name (set to "New Profile" by default) and focus the 
  profile name edit area when showing the Edit Profile dialog for a new
  profile to allow the user to easily set the name.

* Always use color scheme list animation, not just when the Edit Profile 
  dialog is first displayed as per richmoore's suggestion. 

* Update Edit Profile dialog caption when profile name is changed.

* Update favorite status icon in Manage Profiles dialog when the favorite
  status is changed by another object.

* Add disabled menu item which is shown in the 'Change Profile' list
  when there are no other profiles there

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=683787
2007-07-05 09:51:06 +00:00
Robert Knight
65ee1b6c24 Add more common prefixes to abbreviate taken from a quick scan over my home dir.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=681400
2007-06-28 20:18:42 +00:00
Robert Knight
c607f510b1 Better short directory names in tab titles. Where common dir names are encountered at the end of the path, they are abbreviated to their first letter, and the search continues until a name not found in the set of common dir names is found. eg. '/path/to/konsole/src' and '/path/to/kate/src' are now abbreviated as 'konsole/s' and 'kate/s' respectively, instead of just 'src' in both cases.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=681390
2007-06-28 19:43:47 +00:00
Robert Knight
a0976835b6 Tidy up Pty class header file and API. Better method names, remove un-used methods, add API documentation etc. Fix some other API documentation mistakes.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=667129
2007-05-21 22:30:07 +00:00
Dirk Mueller
9ea3227384 include cleanup
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=663054
2007-05-09 22:23:52 +00:00
Robert Knight
33c913383d EBN fixes. Mostly copyright and implementations including their own headers first.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=662726
2007-05-09 00:01:01 +00:00
Robert Knight
0ab65a6fe4 Use a more correct method to determine the foreground process in the terminal. Works properly with nested shells.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=661946
2007-05-07 04:14:32 +00:00
Stephan Binner
f9ef188694 fix pedantic compilation
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=661619
2007-05-06 05:30:26 +00:00
Robert Knight
19a29d182a Rename directories for clarity. konsole -> src , other -> data.
svn path=/branches/work/konsole-split-view/; revision=661562
2007-05-05 23:33:05 +00:00