Kurt Hindenburg
6b2440e2c2
comment out kDebugs - change some to kWarnings
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1148447
2010-07-10 17:22:28 +00:00
Kurt Hindenburg
b78a3f75a1
Correct ANSI's 'delete char' to delete the last character in a line.
...
Patch provided by Alexandre Becoulet
BUG: 217669
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1119662
2010-04-27 15:26:36 +00:00
Kurt Hindenburg
a1d0a1d345
Fix issue where history lines had extra spaces at end.
...
Thanks to Orion Poplawski for patch.
I will backport to 4.4.1 later.
BUG: 188528
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1083161
2010-01-31 18:50:19 +00:00
Darío Andrés Rodríguez
b8a3bdd833
- Reduce the ammount of unused vars/parameters warnings
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1049628
2009-11-15 15:41:16 +00:00
Kurt Hindenburg
e6ec9b0a77
Do not delete whitespace if at end of wrapping line.
...
BUG: 90201
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=944121
2009-03-25 04:49:30 +00:00
Kurt Hindenburg
e66041e0d9
Revert previous patch; need to only delete space if at end of screen line
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=941444
2009-03-19 14:52:32 +00:00
Kurt Hindenburg
460ba919d6
Clear selection on selected text when it is not static.
...
CCBUG: 153372
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=941205
2009-03-19 03:54:42 +00:00
Kurt Hindenburg
56e071c3b9
Do not remove whitespace if it is the last character of wrapping line.
...
BUG: 90201
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=941200
2009-03-19 03:06:17 +00:00
Robert Knight
8992f72f5f
Reformat Screen.cpp with 4-space instead of 2-space indentation to match the other, more recently written source files.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=864904
2008-09-25 21:47:11 +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
1f79308a29
Simplify Screen::isSelected() given that the selection is now normalized in column mode.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=863366
2008-09-21 22:05:07 +00:00
Robert Knight
4228ca077d
Fix crash when creating a block selection (with Ctrl+Alt pressed) by dragging
...
right-to-left. Normalize the selection in Screen::setSelectionEnd() so that
in column mode, column(sel_TL) <= column(sel_BR)
BUG:171187
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=863361
2008-09-21 21:59:11 +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
f88bbcc737
Screen: Remove out-of-date API comments from the implementation file left over from KDE 3. Update API documentation in header file where necessary.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=815511
2008-06-02 02:05:13 +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
Dirk Mueller
ba792edf4f
be more robust against possible integer overflows
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=806072
2008-05-09 22:16:40 +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
72ed114978
Only remove trailing whitespace from the end of the line when copying from the screen to the clipboard or selection. If the current selection ends with white space but does not extend to the end of the line then that white space is included in the copied text.
...
BUG: 159261
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=787010
2008-03-18 13:20:01 +00:00
Robert Knight
b19855ab45
Allow selection of the new line character at the end of the last line of the selection. When the cursor goes beyond the end of the text on the last line of the selection, a new line character is added to the text sent to the clipboard. This behaviour is consistent with Konsole in KDE 3.5
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=780739
2008-02-29 21:57:50 +00:00
Robert Knight
e25795377f
Fix column mode (Ctrl+Alt) selection.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=761903
2008-01-15 16:30:09 +00:00
Robert Knight
b7130971de
Fix grave bug where Konsole would crash when randomly clicking around the terminal window, due to an attempt to allocate a QString with a negative size.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=759891
2008-01-11 12:16:47 +00:00
Robert Knight
7a63999dd9
Forward port fix for bug 155153. The end of the first line was corrupted when copying multiple lines of output from the terminal. Patch by Dmitriy Taychenachev.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=757711
2008-01-05 18:09:40 +00:00
Robert Knight
7ba1fa2816
Fix some problems with double width characters. A while() loop was re-written in a way which introduced a dependancy on a variable (cuX) without taking into account that it was modified just before entering the loop. Introduce a temporary and move the variable assignment to after the loop.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=755308
2008-01-01 01:25:46 +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
6d08863993
* Take into account the difference between the ScreenWindow's window size and
...
the Screen's screen size when adjusting the position of the window to track
the bottom of the screen.
* Fill the area of the window beyond the end of the screen with blank characters.
* Any attempts to make a selection beyond the end of the screen are treated as if
the mouse was on the last line of the screen.
* Minor formatting fixes for long lines
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=749890
2007-12-18 06:35:58 +00:00
Robert Knight
a51b972080
Rename Screen::getCookedLineProperties() to Screen::getLineProperties() and add an extra parameter to control the number of lines whoose properties are returned.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=749867
2007-12-18 03:54:57 +00:00
Robert Knight
ada0d91b82
* Avoid allocating a new buffer to hold character data on every screen update.
...
Instead a single buffer is created and maintained by ScreenWindow.
* Re-write Screen::getCookedImage() and rename to getImage() to make it possible
to retrieve an image of a section of the screen which is not the same size as
the terminal screen.
* Make various non-mutating Screen methods const
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=749864
2007-12-18 03:25:22 +00:00
Robert Knight
8171d4872f
* Do not remove color schemes / key bindings from list if the
...
call to delete the file fails.
* Make deletion of color schemes, key bindings and profiles
atomic operations from the point of view of outside classes.
* Fix various warning produced by the -Woverloaded-virtual flag.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=746168
2007-12-08 01:51:37 +00:00
Robert Knight
6b56d35484
Fix bug where new lines were being inserted into the selection and copied text. I misunderstood the meaning of the preserveLineBreaks argument passed from the terminal display to the terminal screen when rewriting the terminal characters -> text conversion code. Also removed dead code.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=740173
2007-11-22 18:36:42 +00:00
Robert Knight
e725fe9d51
Clear line attributes (eg. line-wrap status) on affected lines when clearing portions of the screen image.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=737604
2007-11-16 18:40:35 +00:00
Robert Knight
340670df5b
Additional API documentation, for Screen class in particular.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=712660
2007-09-15 00:58:40 +00:00
Robert Knight
f93d2ea70d
Fix another possible index-out-of-bounds when inserting characters. Fix terminal display image buffer overflow when rendering double-height lines.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=709594
2007-09-07 21:50:13 +00:00
Robert Knight
c82e1ee2e0
Fix possible assert failure when in insert mode. Ensure that current line buffer has enough elements before trying to insert characters. Use konsole_wcwidth value to calculate required buffer size.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=709585
2007-09-07 21:11:50 +00:00
Robert Knight
53833b68d1
Fix assertion failure when parsing invalid color setting sequences. In such cases, revert back to the default foreground or background color so that the resulting text is at least readable.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=709578
2007-09-07 20:54:20 +00:00
Robert Knight
86b894772b
Attempt #2 to fix assert failure when deleting chars.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=696791
2007-08-05 22:22:09 +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
f59c27ab9c
Fix insertion of characters. Newly inserted characters should be spaces rather than null characters, drop any characters which go beyond the width of the screen (in columns).
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=693468
2007-07-28 05:01:59 +00:00
Robert Knight
10c88b4f38
Attempted fix for crash when deleting characters from a line on the screen.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=692342
2007-07-25 11:34:11 +00:00
Robert Knight
808d9ed686
Set the COLORFGBG environment variable in new sessions to indicate to terminal programs whether the terminal has a light or dark background. This allows programs such as Vim to automatically pick appropriate colors when a Konsole session has a light or dark background. The value of 'COLORFGBG' is not strictly accurate, instead it approximates the current color scheme as 'black on white' or 'white on black' - but this covers the most important need'
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=686658
2007-07-11 22:33:43 +00:00
Robert Knight
e2ade34327
Re-implement facility to omit line breaks when copying selected text from screen.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=683227
2007-07-04 12:24:35 +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
ad4208b0e6
Fix crash occurring when clearing the history when there was a view on the session which is not at the bottom. Add assertions to catch such errors earlier in future.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=681379
2007-06-28 19:03:26 +00:00
Robert Knight
a13b5ea1c8
Fix when copying lines from screen in sessions with fewer than one display's worth of output. Fixes problem where history search would act as if the last non-empty line of text was duplicated in all subsequent lines. Remove 'for KDE' mention in program description - Konsole can be used in other DEs
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=673765
2007-06-11 04:59:23 +00:00
Robert Knight
de79549e8f
Prevent scrolling of views which are not following the latest output when new output is received from the terminal and the history is full.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=670451
2007-06-01 14:27:26 +00:00
Robert Knight
d6b2d317ef
Fix crash with invalid selections and memory corruptionwhen updating image in terminal display.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=670435
2007-06-01 12:35:47 +00:00
Robert Knight
82ac07fec2
Change the character -> text decoding API so that Konsole can produce better quality HTML when output is saved. Fix crashing when resizing display introduced in yesterday's scrolling changes and add assertions to catch invalid memory accesses.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=669305
2007-05-28 23:58:31 +00:00
Robert Knight
e7f1b7904a
Allow the scrolling optimisation to work on regions of the display instead of the whole screen. This makes it work with split/screen vi/Screen etc. Doesn't work with applications that use vertical splits.
...
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=668839
2007-05-27 21:26:42 +00:00