Commit Graph

88 Commits

Author SHA1 Message Date
Kurt Hindenburg
68a98ed770 Add support for ANSI SGR escape code 3 (italics)
Adds support for escape sequences \e[3m and \e[23m (to turn italics on
and off respectively).
http://en.wikipedia.org/wiki/ANSI_escape_code#CSI_codes

Patch by Jem Orgun jeorgun@gmail.com
FEATURE: 314410
REVIEW: 108844
FIXED-IN: 4.11
2013-02-14 14:53:49 -05:00
Kurt Hindenburg
a6793123dc Add comment about redundant condition
This has been there since KDE 4.0 - need to check if there is missing
logic or just a mistake.
via cppcheck
2013-01-31 10:50:59 -05:00
Kurt Hindenburg
7a2a5beb00 Correct spelling errors/word usage
All these are in the comments - no code changes
2013-01-09 22:07:11 -05:00
Kurt Hindenburg
c83e7b638d Add support for xterm's 1006 mouse extension
The extension committed in bko 285984 (invented by urxvt's author)
allows the terminal to report coordinates beyond 223. However, for
multiple reasons, xterm's author decided to come up with another
extnsion, addressing the same issue and more.

See more info on this bko 304686

An followup to bko 285984, b876f2a3ed
Patch by Egmont Koblinger egmont@gmail.com

FEATURE: 304686
FIXED-IN: 4.10
2012-09-03 17:07:24 -04:00
Kurt Hindenburg
1291bf5d0f minor style changes - whitespace 2012-05-13 16:05:51 -04:00
Kurt Hindenburg
ad52474e0c minor style changes - remove spaces 2012-05-13 12:33:35 -04:00
Kurt Hindenburg
bee9aa8f78 minor style fixes - remove empty lines start/end code blocks 2012-05-13 10:08:05 -04:00
Jekyll Wu
5ba344714b Translate the "Super" modifier into bytes prefix understood by Emacs.
Note: although it is Qt::MetaModifier in the code, the actual pressed
key is the "Super/Windows" key.

CCBUG: 96282
2012-05-04 00:13:42 +08:00
Kurt Hindenburg
5b083640ce whitespace and style fixes
Use 'git diff -w --ignore-all-space' to see non-whitespace changes
2012-04-05 11:08:53 -04:00
Kurt Hindenburg
066fdd5fce #if 0 the old hexdump() 2012-03-20 11:28:56 -04:00
Kurt Hindenburg
a3f8c33d30 Do not output decode error messages.
If you start Konsole from another terminal and do 'cat /bin/ls*', a
lot of messages are printed.

Now, these are now using kDebug().  The old function is still left
as-is.
2012-03-20 11:18:54 -04:00
Kurt Hindenburg
13f1262063 /s/sprintf/snprintf - use the secure version 2012-03-19 23:01:08 -04:00
Kurt Hindenburg
519e2614d6 Style fixes - remove spaces before ; and add spaces in for loops 2012-03-18 15:11:06 -04:00
Jekyll Wu
507619dff2 Emit signal on receiving escape sequence for changing terminal size
This is just one needed prerequisite for supporting the resizing
escape sequence. I still have no clear clue of adding the support
correctly
2012-03-09 15:16:42 +08:00
Jekyll Wu
f4fb943132 Most of time we only need <KLocalizedString> instead of <KLocale> 2012-03-07 06:48:26 +08:00
Jekyll Wu
90469a094a Add more constness 2012-03-06 02:00:15 +08:00
Jekyll Wu
09efde43c9 Add simple explanation for the 'SCS' abbreviation 2012-03-06 00:39:05 +08:00
Kurt Hindenburg
579da93bb6 Change magic # to a const 2012-03-05 09:46:36 -05:00
Kurt Hindenburg
e6f0d0e1db Change #define to const 2012-03-05 09:41:56 -05:00
Kurt Hindenburg
504a3dc9d4 Change #defines to const 2012-03-04 22:47:45 -05:00
Jekyll Wu
8ba3a45410 Cleanup XKB related code furthur 2012-03-05 08:53:26 +08:00
Jekyll Wu
78dbf8f1c1 Remove the left-over & unused code for supporting "Scroll Lock" key
It is decided to not reimplement this feature in KDE4 konsole:

  * It is non-trivial work to implement it correctly
  * It annoyed some users when it was available in KDE3 konsole
  * Not many users want this feature back

This is a follow up of commit cee0ce539b

CCBUG:172271
REVIEW:104156
2012-03-05 08:29:12 +08:00
Jekyll Wu
4192031fd5 More constness for better understanding the code 2012-03-04 21:19:33 +08:00
Jekyll Wu
cce7d43f64 Trivial style change 2012-03-02 12:33:15 +08:00
Jekyll Wu
0331f97b60 Another try of cleaning up of #includes 2012-02-21 05:18:31 +08:00
Jekyll Wu
a2f9609c94 Remove another undeeded #include 2012-02-15 17:10:25 +08:00
Jekyll Wu
9bfac3b509 Krazy2 fix for foreach(...)
Well, I don't think there is actually problem here for POD types.
Anyway, just change it to make krazy happy :)
2012-02-15 02:44:59 +08:00
Jekyll Wu
f0529c1c02 Prefer foreach(..) over iterating manually for readability 2012-02-13 21:28:48 +08:00
Kurt Hindenburg
b9a69ec009 Upon Ctrl+C cancel flow control
If flow control is enabled, it is cancelled upon Ctrl+C.  This mimics
xterm results.
BUG: 293534
FIXED-IN: 4.9
2012-02-11 14:19:34 -05:00
Kurt Hindenburg
b876f2a3ed Support extended mouse coordinates.
Using the legacy method, mouse coordinates can be reported only up to 223. If
you have a wider terminal, you cannot use the mouse in the rightmost columns.

There exist two extensions to overcome this problem, a broken one invented by
xterm (the "DEC 1005" mode) which is supported by xterm, urxvt and iterm2; and
a good one invented by urxvt (the "DEC 1015" mode), supported by urxvt and
iterm2.

Many thanks to Egmont Koblinger egmont@gmail.com for report and patch.

BUG: 285984
FIXED-IN: 4.9
2012-01-21 13:21:36 -05:00
Kurt Hindenburg
5bbeaae8d6 Add some docs for reportTerminalParms() 2012-01-21 12:28:55 -05:00
Kurt Hindenburg
d76902b828 Revert "Change sprintf to use QString's .arg()"
This reverts commit 5143f397f3.

Conflicts:

	src/Vt102Emulation.cpp
2012-01-21 12:21:19 -05:00
Kurt Hindenburg
0ea65c65c9 Apply astyle-kdelibs a little more
Use 'diff -w --ignore-all-space' to see non-whitespace changes.
2012-01-08 10:24:15 -05:00
Kurt Hindenburg
5143f397f3 Change sprintf to use QString's .arg()
The results appear identically to previous output.  Need a way to test
the sending of the mouse events.
2012-01-04 10:42:10 -05:00
Kurt Hindenburg
d8e05a0672 Use the Qt versions of strlen, strncpy, strncmp 2012-01-03 23:29:05 -05:00
Kurt Hindenburg
6d779babcf Apply astyle-kdelibs partially.
Use 'git diff -w --ignore-all-space' to see non-whitespace changes.
2011-12-30 10:50:39 -05:00
Kurt Hindenburg
cca04c279c Don't pollute the namespace - only "using" what is required. 2011-12-26 20:52:24 -05:00
Kurt Hindenburg
bc087ae51b Remove unused KDebug includes 2011-12-18 00:01:32 -05:00
Jekyll Wu
b95f9443a0 Trivial change on #include 2011-11-16 13:31:24 +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
3e0df809d2 Move array vt100_graphics[32] to more approriate place. 2011-10-14 23:20:48 +08:00
Jekyll Wu
e8936cb514 Eliminate compiler warning 2011-10-14 02:50:51 +08:00
Jekyll Wu
37a8f1e75c Less #defines, more constants 2011-10-13 20:08:07 +08:00
Jekyll Wu
53f155d07e Delete unnecessary "#include <assert.h>". 2011-09-27 23:12:46 +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
Kurt Hindenburg
9cf9557c8f Add shortcuts to jump to top & bottom of history.
The shortcut of jumping to top of history is for the request of #45950

The shortcut of jumping to bottom of history is added not only for
consistency, but also to be used for #38390, especially its comment #9
 and #10.

Patch by Jekyll Wu <adaptee@gmail.com>

FEATURE: 38390
FEATURE: 45950
FIXED-IN: 4.8
REVIEW: 102124
2011-08-01 23:19:08 -04:00
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