Commit Graph

80 Commits

Author SHA1 Message Date
Robert Knight
3b552b6174 Add support for setting background and foreground colors of a session's displays
using the Xterm Operating System Controls escape sequences.

See the "Operating System Controls" section on this page:
http://rtfm.etla.org/xterm/ctlseq.html

Other colors and multiple color sequences are not supported.

xtermcontrol --fg=<color> --bg=<color> now work as expected.

In addition to standard color names ("green","blue","red") etc, Qt
also accepts SVG color names:

http://www.w3.org/TR/SVG/types.html#ColorKeywords

BUG: 155801

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=787355
2008-03-19 03:04:32 +00:00
Robert Knight
435ee69564 Set both local and remote tab titles to the text given by the user when manually renaming tabs via Edit -> Rename Tab. This loses the ability to have different tab title formats for local and remote activities after manually renaming a tab.
BUG: 152781

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=787022
2008-03-18 14:05:40 +00:00
Robert Knight
67c3559316 Remove Qt 4.4 version check and pre-4.4 code as qt-copy has now been updated to 4.4
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=781948
2008-03-03 23:41:38 +00:00
Robert Knight
07042f6a39 Fix crash when selecting 'Close Tab' from session context menu.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=767923
2008-01-29 02:05:46 +00:00
Robert Knight
7ca7f02792 Avoid jumping to end of output when a modifier key (Control, Shift or Alt) is pressed on its own, as these keys are used to specify the selection mode. This makes it easier to do block selection.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=762060
2008-01-16 00:54:56 +00:00
Robert Knight
cb1504de10 Minor style cleanup. if..elseif to switch. #include <kio/job.h> -> #include <KIO/Job>
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=760591
2008-01-13 01:13:52 +00:00
Robert Knight
a73ac95836 Update the title for a tab by taking a snapshot of the terminal process as soon as it starts. Add a signal to Session which is emitted when the process is successfully started.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=757282
2008-01-04 16:30:06 +00:00
Stephan Binner
534aa58660 i18n style guide fixes
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=757261
2008-01-04 15:26:42 +00:00
Stephan Binner
dfac4ca329 i18n style guide fixes, the capitalization rules are explained at
http://developer.kde.org/documentation/standards/kde/style/basics/labels.html

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=757238
2008-01-04 14:51:24 +00:00
Robert Knight
d1373c6df8 Fix bug where '%w' expansion in tab title format was not updated when the shell changed the window title until user input occurred.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756966
2008-01-03 23:05:58 +00:00
Robert Knight
eb3bf43968 Optimize updates when changing the search text or scrolling with the search bar active. Compute the area covered by hotspots before and after the filter processing and then update the union of those two regions.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756109
2008-01-02 19:27:44 +00:00
Robert Knight
2a090c41f4 Fix bug where search result highlights in the terminal display did not move when the display was scrolled. When the search bar is active, update the filters and the view whenever it is scrolled or the output otherwise changes. This has a perceptible (but in future fixable) performance impact when scrolling with the search bar active.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=756104
2008-01-02 19:01:55 +00:00
Robert Knight
7d9e26be3f Temporary fix for missing icons when an activity or silence notification occurs. Use 'dialog-information' icon for both for the time being. Remove out-of-date TODO and add TODO to update icons later on and FIXME to change the notification text once the freeze is over.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754697
2007-12-30 15:42:42 +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
9cb9a23616 Make 'Manage Profiles' dialog and Scrollback menu available in the Konsole part. Use a separate xmlgui file for the KPart's menus.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754294
2007-12-29 14:00:42 +00:00
Robert Knight
e7a91beccb The 'Send Input to All' feature is not in good enough shape at this point to include in the release. This commit disables the code which creates the menu item for it.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=754011
2007-12-28 22:29:33 +00:00
Jakob Petsovits
f41f10913a Icon naming spec compliance (code changes - KDE/):
* edit-find-next -> go-down-search
* edit-find-previous -> go-up-search

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=753922
2007-12-28 19:10:48 +00:00
Robert Knight
684b40c6dd Change default shortcut for decreasing text size to Ctrl+-. This is in line with other applications and fixed the problem of a clash with the Undo action in emacs. Discussed with dfaure back in October but not implemented until now. Remove the code which prevents Ctrl+[Printable character] shortcuts from working.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=748984
2007-12-16 04:41:48 +00:00
Robert Knight
62e01d8487 Add a shortcut to paste the selection (Ctrl+Shift+Insert) as opposed to the clipboard (Ctrl+Shift+V or Shift+Insert).
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=748944
2007-12-15 23:50:24 +00:00
Robert Knight
e37fe69431 * Fix problem where selection background and other text with non-standard background
colors was not readable with terminal display transparency enabled.

* Transparency works again, but requires --enable-transparency argument passed to command-line
  due to artifacts that appear otherwise.
  Re-enable the code which searches for a suitable display, visual and colormap when
  starting the application in an environment which supports compositing.  Still
  need to resolve with other developers exactly how this will be done in KDE 4.0

* Fix problem where flow control warning banner was always displayed when 
  Ctrl+S, Ctrl+Q were pressed, regardless of whether flow control was 
  actually enabled.

* Fix artifacts when scrolling whilst the flow control warning banner was 
  visible.  Scrolling optimisations in the terminal display are disabled whilst
  the warning banner is being shown.

* Fix links which wrapped over more than one line being cut-off at the end of the line
  (eg. when parsing "http://www.kd <END OF LINE> e.org" the link address would be reported
   as "http://www.kd" instead of "http://www.kde.org").  The link underlining is not yet 
   corrected, only the part of the link on the first line is highlighted.  

* Implement code to load and use a built-in keyboard translator for fallback purposes
  in case no .keytab files exist.  The actual translator text (in DefaultTranslatorText.h)
  is currently incomplete. 

* Replace hard-coded colors for flow control warning label with colors from
  KColorScheme

* Replace hard-coded colors in incremental search line edit when a match is not found
  with colors from KColorScheme

* Remove un-used variables in TerminalDisplay class, rename enums to match
  CamelCase naming style used elsewhere.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=748936
2007-12-15 23:07:20 +00:00
Thomas Friedrichsmeier
ac511d63f0 Create a KXMLGUIFactory for the context menu on the fly, if needed, instead of forcibly merging with the hosts GUI.
BUG: 153646

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=747059
2007-12-10 22:54:30 +00:00
Robert Knight
08db4867f2 Show normal context menu actions in addition to content-specific ones (eg. 'Open Link', 'Copy Email Address') when right clicking on links.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=744499
2007-12-03 20:22:46 +00:00
Hamish Rodda
8aff5c0cf9 KActionCollection::associateWidget -> addAssociatedWidget
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=744420
2007-12-03 15:22:57 +00:00
Thomas Zander
c6dbccc7cb Use kdebug, not qdebug
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=738432
2007-11-18 22:03:21 +00:00
Craig Drummond
d844806527 Fix parentless dialogs
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=734552
2007-11-09 08:02:24 +00:00
Pino Toscano
8fb491f60a icon renamings:
- history-clear -> edit-clear-history

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=732391
2007-11-03 18:04:00 +00:00
Hamish Rodda
5183376f1e Remove associateWidget that was too effective (obviously not working before, the patched version prevented the actions from being invoked)
Commit results of setShortcut() audit

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=730686
2007-10-29 10:46:55 +00:00
Hamish Rodda
ad6e197df1 Port to KActionCollection::associateWidget and other api changes
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=730654
2007-10-29 09:01:28 +00:00
Pino Toscano
0a72d894d7 icon renamings:
- find-next -> edit-find-next
- find-previous -> edit-find-previous

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=727831
2007-10-21 21:40:12 +00:00
Dirk Mueller
5204c7877e this assert hits here. I wasn't able to figure out why that
happens, given that if one konsole crashes, all konsole's disappear
(great concept!) hacking around seems to help.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=727397
2007-10-20 11:20:53 +00:00
David Faure
ca6522861c Merged KIO::JobFlags branch
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=721447
2007-10-05 09:14:03 +00:00
Constantin Berzan
5b50d8c481 Add 'Open Browser Here' menu item.
BUG: 61136


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=712078
2007-09-13 14:33:39 +00:00
Constantin Berzan
865486938b * Get rid of an unused/duplicate property in Profile.
* Make it possible to rename a session by double-clicking on (one of) its tab(s).
* Make double-clicking on the empty tabbar area launch a new session.


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=711160
2007-09-11 15:47:38 +00:00
Robert Knight
546bf76e48 Return the current line as the 'surrounding text' for input method queries and return the column index of the cursor as the cursor position. Fix link underlines not being erased when moving mouse around links which are adjacent to each other.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=709087
2007-09-06 14:40:16 +00:00
Robert Knight
d346a2ccad Trick to try and get shell program to redraw the prompt after 'Clear Scrollback and Reset' is selected from the menu. Resize the tty window slightly larger and then back to the original size again. If anyone knows of a more correct solution, please speak up.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=708825
2007-09-05 19:17:20 +00:00
Thiago Macieira
718b131f00 Remove use of k_funcinfo
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=702583
2007-08-20 21:33:48 +00:00
Robert Knight
f39a272a66 Attempt to fix sporadic crash on exit when process snapshot timer fires after the session has been deleted.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=700765
2007-08-16 11:54:50 +00:00
Robert Knight
76943a4b26 Use correct 'terminal is using the mouse' status in newly added views.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=700303
2007-08-15 06:49:17 +00:00
Robert Knight
503fdd023e Fix several memory leaks and uninitialized variables found with valgrind.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=696508
2007-08-05 05:53:05 +00:00
Robert Knight
b73c3c5cd9 Correct method of making shortcuts work with hidden menu bar, now possible with kdelibs changes.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=693130
2007-07-27 07:26:28 +00:00
Robert Knight
d30833dac7 Fix keyboard shortcuts when menu bar is hidden. Patch by Robin Stocker. Affects other KDE applications as well. See discussion on konsole-devel - http://lists.kde.org/?l=konsole-devel&m=118529209602516&w=2
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=691938
2007-07-24 17:10:36 +00:00
Robert Knight
15fc19e0a8 Disable find/next previous actions before deleting the objects which they rely on. ++ Preconditions.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=691508
2007-07-23 20:27:01 +00:00
Robert Knight
760d863508 Remove a few unused methods and member variables, more Qt-ish API and naming. Prepend 'virtual' to declarations of re-implementations of virtual methods.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=691162
2007-07-23 03:02:58 +00:00
Robert Knight
59960af6be Fix crash in search filter which can occur if the search bar is removed whilst the search is in progress.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=689757
2007-07-19 02:56:45 +00:00
Fredrik Höglund
765d801f72 - "Search Output..." -> "Search Output", since it toggles a search bar on/off.
- Make the action checkable.
- Connect to the toggled() signal instead of triggered().
- Uncheck the action when the search bar is closed.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=687983
2007-07-14 23:20:11 +00:00
Fredrik Höglund
d2e3c740f9 "Scrollback Options" -> "Scrollback Options..."
(It opens a dialog box.)

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=687977
2007-07-14 22:56:03 +00:00
David Faure
213353e903 more portable; less noisy
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=684166
2007-07-06 10:15:14 +00:00
Robert Knight
72241ef4a6 * Comment out many debugging messages
* Experimental optimization, disable kerning since this is not required
  with the mono-spaced fonts which are used in the terminal.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=682702
2007-07-03 09:14:21 +00:00
Robert Knight
573f763624 * konsoleprofile now only affects an individual session rather than modifying
all sessions using the same profile as the current tab.

* Re-implement support for underlined text

* Use a sensible size for the Manage Profiles dialog by default

* Tidy up SearchHistoryTask 
    - Remove unnecessary setMatchCase(), matchCase(), setRegExp(), regExp() methods.
    - Implement highlighting the search box to indicate search success correctly.
      (Previously did not work with 'highlight matches' turned off)

* start.cpp -> main.cpp for consistancy

* Remove old startup-notes

* #ifdef out the transparency setup code on startup, relevant code is now in 
  qt-copy instead.

* API documentation improvements in SessionController

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=682279
2007-07-02 10:17:14 +00:00
Robert Knight
1fdeb16702 Add KDE 3's Shift+Insert paste shortcut as an alternative to the current Ctrl+Shift+V.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=681418
2007-06-28 21:06:10 +00:00