Commit Graph

42 Commits

Author SHA1 Message Date
Kurt Hindenburg
c252666b98 Fix $COLUMNS/$LINES after resizing.
The 2 were inverted previously.
CCBUG: 245746
2011-07-18 22:39:03 -04:00
Kurt Hindenburg
27182ebbad Restore codec to profile setting or previous codec upon reset.
Previously, after typing in 'reset' or using 'Clear Scrollback & Reset',
the current codec is lost.

With this patch, typing in 'reset' will cause the codec to stay what
it was before the reset.  Using the 'Clear Scrollback & Reset' will
cause the codec to be set to the Profile setting.

This may get backported to 4.6.x
BUG: 123866
BUG: 273959
FIXED-IN: 4.7
REVIEW: 101565
2011-06-25 00:26:09 -04:00
Kurt Hindenburg
3d20c090bf The last patch had some formatting issues and unused variable. 2011-04-23 21:07:26 -04:00
Kurt Hindenburg
b88dfb402a Delegate PgUp/Down and Up/Down +Shift+AppScreen to terminal application.
After this patch, the following in the .keytab will work:

key Up+Shift+AppScreen : "appup"
key Down+Shift+AppScreen : "appdown"
key PgUp+Shift+AppScreen : "apppgup"
key PgDown+Shift+AppScreen : "apppgdown"

Patch by Tomáš Čech tcech@suse.cz

FEATURE: 267100
FIXED-IN: 4.7
2011-04-14 11:25:11 -04:00
Kurt Hindenburg
f829b81690 Ignore Konsole's message "Undecodable sequence: \\001b(hex)[?1034h" that new ncurses/xterm has in their terminfo.
I believe 1034h deals with activating 8bitinput.

CCBUG: 183244

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1134569
2010-06-04 16:03:27 +00:00
Kurt Hindenburg
6903d9ca23 Move cpp conditional check for AVOID_XKB to CMake.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1107581
2010-03-26 03:35:34 +00:00
Kurt Hindenburg
d4bb1e1a68 Correct spelling using US English.
SVN_SILENT

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=989146
2009-06-29 15:16:28 +00:00
Rick Xing
773993a4e3 Just EBN fixes
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=894687
2008-12-09 06:59:31 +00:00
Robert Knight
4023b86754 Fix window title in tab titles (with '%w') and konsoleprofile tool. Typo during refactoring.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=867154
2008-10-02 22:52:30 +00:00
Robert Knight
69603cb4b4 * Cleanup of Screen class. Improve member variable names, remove
outdated comments and dead code.
* Further minor cleanups of Emulation and Vt102Emulation classes.


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=864898
2008-09-25 21:33:26 +00:00
Robert Knight
e512edacd5 Tidy up. Rename DECPar to Vt102Emulation::TerminalState. Rename _currParm to _currentModes, _saveParm to _savedModes.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=864626
2008-09-25 09:32:55 +00:00
Robert Knight
99c877bf63 Tidy up terminal emulation internals. Improve formatting
and naming, remove dead code and dead comments.


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=864325
2008-09-24 14:00:58 +00:00
Robert Knight
e97de774be Add support for producing different output when keypad buttons are
pressed in Application or Normal mode (set using 'ESC =' and 'ESC >' escape sequences.)

Added support for 'AppKeypad' modifier in keyboard translator files to specify that the 
sequence only applies when the terminal is in application keypad mode (+AppKeyPad) or is 
not in application keypad mode (-AppKeyPad) 

Added support for producing different output from number keys along top of keyboard versus
keypad keys via new 'keypad' modifier in keyboard translator files (+KeyPad to require keypad 
key, -KeyPad to require a non-keypad key or left out to accept either)

CCBUG: 170220
CCBUG: 37652
CCBUG: 165169


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=863985
2008-09-23 17:12:37 +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
Robert Knight
9b2748f978 Screen: Formatting (method name - parenthesies spacing) and method name tidy-up (consistent use of mixedCase)
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=819760
2008-06-12 02:40:26 +00:00
Robert Knight
ba071351aa * Add support for 'Allow 132 columns' mode (set with \E?40h , reset with \E?40l)
which controls whether selecting 80/132 column mode with DECCOLM (\E?3h,\E?3l)
has any effect.  Defaults to disabled as in xterm.

* Avoid triggering a terminal size update if the new and current terminal
image sizes are the same.

BUG: 163782

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=819755
2008-06-11 23:44:02 +00:00
Robert Knight
73f5324561 Do not show flow control warning widget if terminal application (eg. Emacs) disables
flow control.  Check current terminal flow control settings when Ctrl+S is pressed and only 
show the warning if the warning is enabled in profile settings and Xon/Xoff is 
enabled in the terminal.

BUG: 162173
CCMAIL: jriddell@ubuntu.com


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=808588
2008-05-16 23:59:16 +00:00
Dirk Mueller
7ecf3169e6 different way to protect against integer overflows, as suggested
by Robert Night

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=808165
2008-05-15 20:31:48 +00:00
Rafał Miłecki
5aa053f08d Fix compilation warning: "suggest parentheses around && within ||"
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=802759
2008-04-30 14:06:06 +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
971a5315f9 Remove debugging messages.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=800628
2008-04-24 14:52:39 +00:00
Robert Knight
23f6a59957 Add support for xterm's CSI 3 J control sequence to clear the history.
BUG: 158235

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=787067
2008-03-18 15:44:56 +00:00
Robert Knight
cee0ce539b Remove dead code, including the non-functional scroll lock code. Scroll lock support will be re-implemented in the terminal display widget post KDE 4.0 if there is a demand for it.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=750314
2007-12-19 06:44:43 +00:00
Robert Knight
132f9752d7 When a key combination corresponding to the 'Erase' command is pressed, append the emulation's erase character to the text sent to the terminal.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=750293
2007-12-19 02:57:32 +00:00
Robert Knight
db9df4aedb Fix Alt+Backspace, it now deletes the previous word as expected. Fix test for converting Alt+[Char] into Esc+[Char] when sending text to terminal. The conversion is only avoided when the key translator entry which matched requires the alt modifier or any modifier. Previously the Alt+Char -> Esc+Char was avoided if any entry matched, as in the Backspace case.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=748991
2007-12-16 05:42:04 +00:00
Robert Knight
645d82ec1e Fix character sequences produced by <Ctrl/Alt/Ctrl+Alt> + <Left Arrow/Right Arrow> key inputs. Implement support for wild card '*' characters in the result string for keyboard translator entries.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=743477
2007-12-01 03:25:14 +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
Laurent Montel
53fc966203 Adapt to new KWarning/kFatal/kDebug api
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=695870
2007-08-03 06:40:12 +00:00
Robert Knight
6c8ef8512d Use a more correct method to set the working directory of new sessions. Session::running() -> Session::isRunning(). Remove some commented-out code.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=687611
2007-07-14 02:40:59 +00:00
Robert Knight
8ac498d34c i18n fixes from Stefan Asserhall.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=685630
2007-07-09 10:54:44 +00:00
Robert Knight
4a35037a25 Use type-safe QFlags for State and Command enums and Qt::KeyboardModifiers instead of Qt::KeyboardModifier where appropriate.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=680117
2007-06-25 13:10:49 +00:00
Robert Knight
267a30dc37 Translate Alt+[Character] to Esc+[Character] when processing key presses to send to the terminal. Currently implemented as a special case rather than as part of the keyboard translator.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=678246
2007-06-20 23:30:32 +00:00
Robert Knight
6a36400ffc Reimplement Vt102Emulation::getErase() with new keyboard translator. Fixes backspace in Vim et. al. Correct API documentation for KeyboardTranslator::findEntry(). Use an explicit KSharedConfigPtr to get the global config when writing default profile setting. Appears to fix strange crash on exit.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=678227
2007-06-20 22:26:32 +00:00
Robert Knight
726c106f58 Move Character class to its own header.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=677276
2007-06-18 20:15:26 +00:00
Robert Knight
a37ed321b0 In the event that the keyboard translator is not available, print a warning to the terminal.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=677170
2007-06-18 15:54:23 +00:00
Robert Knight
5872b79ef1 Replace old key translator with new key translator. Lightly tested. Fix some bugs in the new translator's decoding.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=676512
2007-06-17 01:01:53 +00:00
Robert Knight
52db452aa4 Don't switch tabs when a non-active session finishes ( Bug #146639 ). Begin implementation of Send Input to All in new front-end.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=674139
2007-06-11 20:44:04 +00:00
Robert Knight
5331bf720d Various EBN fixes.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=667655
2007-05-23 13:09:23 +00:00
Robert Knight
04069377d9 Tidy up and reorganise the header files and API for the Emulation classes, add more API documentation for the base Emulation class. Rename methods for consistancy and clarity.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=665816
2007-05-18 02:47:03 +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
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