54 Commits

Author SHA1 Message Date
Kurt Hindenburg
169ad4bb95 Add kitty examples for reference 2024-08-24 10:18:54 -04:00
Wendi Gan
1817dd4067 Add URL test cases in HotSpotFilterTest
Add test cases for URLs ending with invalid characters like comma, dot, colon, and semicolon.
2024-07-22 12:05:48 +00:00
Kurt Hindenburg
f76903ad74 Add sample URLs with single quotes 2022-11-08 13:58:24 -05:00
Kurt Hindenburg
543b35b839 Add two tests for cursor controls at last column
From https://invent.kde.org/utilities/konsole/-/merge_requests/510

Luis Javier Merino Morán <ninjalj@gmail.com>
2021-10-22 16:13:54 -04:00
Ahmad Samir
97569b764c Run clang-format on the whole repo
Also install the relevant git hook.

GIT_SILENT
2021-09-06 12:51:39 +02:00
Martin T. H. Sandsmark
0243c0d394 Add a convenience makefile for the manual tests 2021-07-30 22:56:43 +00:00
Martin T. H. Sandsmark
8bf30d3df1 clean up manual tests 2021-07-30 22:56:43 +00:00
Martin T. H. Sandsmark
f8be1b0e2b start documenting manual tests 2021-07-30 22:56:43 +00:00
Martin T. H. Sandsmark
16d0df1f71 add test to expose memory corruption
CCBUG: 432376
CCMAIL: cbc.alves@gmail.com
2021-06-07 17:46:12 +02:00
Kurt Hindenburg
881034b35a Whitespace
test
2020-11-14 22:18:46 -05:00
Martin T. H. Sandsmark
6298860269 add URL escape sequence test file 2020-11-02 18:24:33 +00:00
Kurt Hindenburg
456cbc6cb6 ebn.kde.org has shutdown; remove any krazy:exclude comments 2020-07-21 21:59:03 -04:00
Kurt Hindenburg
f99271caad Use https when allowed 2020-06-19 21:49:18 -04:00
Rajeesh K Nambiar
173806fc61 Konsole tests: update Unicode texts from the Kermit project
Summary: Update various translations of `Glass' text in UTF8.

Reviewers: #konsole, mglb, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: hindenburg, konsole-devel

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D26599
2020-02-22 09:02:02 -05:00
Kurt Hindenburg
397a99d030 Add krazy excludeall for copyright and license - simple test script 2019-07-15 21:44:59 -04:00
Mariusz Glebocki
13132fc77b Improve built-in line/block characters drawing
Summary:
* Fix bold lines (BUG 402415).
* Make drawing pixel-perfect.
* Make line width proportional to font size.
* Move relevant code to separate file and namespace.
* Remove code for checking supported line characters from Character
  class. Information about what is supported is now in one place
  together width drawing code.
* Remove fontembedder/LineFont files (no longer used).
* Add test script for displaying supported characters table.
* Add triple and quadruple dashes (U+2504...U+250B).
* Change shade block characters (U+2591...U+2593) look. When
  antialiasing is turned on, shades are drawn as transculent solid
  rectangles with 25%, 50% and 75% alpha. This matches the characters
  name/description and their usage. Without antialiasing, previous
  method with patterns is used.

**Screenshots**

Font size: 10pt; character width: 8px
{F6602823}

Font size: 11pt; character width: 9px
{F6602824}

Font size: 12pt; character width: 10px
{F6602825}

Font size: 13-14pt; character width: 11px; w/o antialiasing
{F6602826}

Font size: 13-14pt; character width: 11px
{F6602827}

Font size: 15pt; character width: 12px
{F6602828}

Font size: 6-7pt; character width: 5px
{F6602829}

Font size: 8-9pt; character width: 7px; w/o antialiasing
{F6602830}

Font size: 8-9pt; character width: 7px
{F6602831}

Alignment test (8pt)
{F6602832}

Note: Copyrights in LineBlockCharactersDrawer.cpp are based on
`git blame -w src/TerminalDisplay.cpp` executed before moving the code
to a separate file. Years from first/last commit. Authors sorted by
year. Whitespace-only changes were ignored. Maksim's code was commited
by Waldo Bastian who mentioned him as the author in commit message
(see 5062b40dd).

BUG: 402415

Test Plan:
== Common steps for all tests ==

* Open //Edit Current Profile → Appearance//.
* Turn on //Draw intense colors in bold font//.
* Turn off //Use line characters contained in font//.
* (Optional) select a font which is able to display bold characters in
  Konsole (e.g. DejaVu Sans Mono).

== Check characters validity ==

* Run `./tests/line_block_characters_table.py`.
* Open //Edit Current Profile → Appearance//.
* By switching //Use line characters contained in font// on and off,
  compare built-in characters drawing with characters from a font.
  General shape and line directions must be the same. Small offsets,
  line width differences (as long as proportions between lines in
  a character are kept), and quality differences are allowed.

== Review overall quality ==

* Run `./tests/line_block_characters_table.py`.
* Review glyphs quality in different font sizes.
* Open //Edit Current Profile → Appearance//.
* Toggle //Smooth fonts//, review quality again.

== Check alignment ==

* Display `tests/UTF-8-demo.txt`
* At the bottom of the file you can find a few alignment images. Check
  if all lines align properly. If you're unsure how it should look,
  compare it with font characters by turning on //Use line characters
  contained in font// option.

Reviewers: #konsole, #vdg, fvogt, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: hindenburg, sandsmark, fvogt, konsole-devel

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D18735
2019-02-22 18:43:43 +01:00
Kurt Hindenburg
af82a3a70a set to public domain license for a small snippet of code/fair use 2018-07-24 10:44:38 -04:00
Martin T. H. Sandsmark
ac59cc7e00 Fix hang on a lot of output from a program
Summary:
There is a bug in the Qt glib event loop leading to timers never being
able to deliver signals.

Work around this by disabling the glib event loop.

References:
http://lists.qt-project.org/pipermail/interest/2015-September/018846.html
https://bugreports.qt.io/browse/QTBUG-48344

Test plan:
From the referenced bug:
    Stefan Westerfeld 2010-03-10 11:40:24 UTC
    Running the following program within konsole:

        #include <stdio.h>

        int
        main()
        {
          for (int i = 0; i < 100000000; i++)
            {
              fprintf (stderr, "foo %d\n", i);
            }
        }

    leads to a freeze - not single message is printed - no reaction on
    return. Only after a long time (30 seconds) something happens.

    If I run the same program in an xterm, the messages are scrolling
    through, as I would expect from that kind of output.

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: hindenburg

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D6078

BUG: 230184
2018-07-16 13:46:25 +02:00
Kurt Hindenburg
7aaf7eddfc add a sample emoji test file 2018-07-12 09:03:26 -04:00
Kurt Hindenburg
bae835439b add faint/concel/strike/overline and combo italic/underline 2018-04-05 16:51:10 -04:00
Kurt Hindenburg
e81b011218 add list of emails to test 2018-02-13 21:22:41 -05:00
Kurt Hindenburg
26d29ba0de krazy ignore copyright/license - simple test script 2017-04-27 08:20:11 -04:00
Martin T. H. Sandsmark
a593f29e24 Limit ourselves to 3 combining characters
This seems to be the limit in all the test files I've been trying.
Without this we get an issue with too many combining characters where
Konsole will eventually just hang.

REVIEW: 129874
2017-01-22 22:18:13 +01:00
Kurt Hindenburg
19804bc2df Add simple script to test/show sgr 2 8 9 53 2016-07-16 12:38:22 -04:00
Kurt Hindenburg
3dc500cb80 Remove old xterm test script - add note to use offical xterm vttests 2016-05-26 21:53:15 -04:00
Kurt Hindenburg
dc18819cf7 correct printf 2015-02-08 14:29:33 -10:00
Kurt Hindenburg
fdf7de74b5 add fclose() 2015-02-08 14:25:03 -10:00
Kurt Hindenburg
d567bfe8ed update boxs.txt which uses more box lines for testing purposes
from gnome's vte
2014-05-26 08:12:46 -04:00
Kurt Hindenburg
f1edf11450 Test file containing boxes/linechars
This file is from vte-0.28.2/doc/boxes.txt - I don't see any notice
of copyright or license.  The file could be regenerated easily but
copied for convience.
2013-09-22 11:49:45 -04:00
Kurt Hindenburg
fd4b6225fa remove old, broken test script
The script no longer works and was only for a 2011 bug which was fixed.
2013-07-12 10:05:49 -04:00
Kurt Hindenburg
b94fd289f8 Add file to test URLS
So I don't have to keep finding this to test Konsole's underlineing/
handling of URLs
2013-05-18 07:59:28 -04:00
Kurt Hindenburg
340cfba574 Add test to output new italic code
The italic code will be commited shortly.
2013-02-14 14:06:44 -05:00
Kurt Hindenburg
72645c12d2 Add another test file for UTF-8
From http://www.cl.cam.ac.uk/~mgk25/ucs/examples/ which is were we
got the UTF-8-demo.txt
2013-02-09 11:35:55 -05:00
Kurt Hindenburg
2a2283b248 Add license
License as public domain per author via email
2012-08-06 11:39:24 -04:00
Kurt Hindenburg
605296dd81 Add program to test signals 2012-08-04 18:55:06 -04:00
Kurt Hindenburg
5b6291c214 Add some test files to check Konsole's unicode handling. 2011-11-13 16:34:50 -05:00
Kurt Hindenburg
602c1ce87c Delete vttest files due to license issues/age
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=952867
2009-04-12 18:29:01 +00:00
Robert Knight
97f9f76439 Correct calculation of colour values in 256-colour mode. The previous colours were a little too dim. Patch by Tom Schumm ( gentoo@phong.org )
svn path=/branches/work/konsole-split-view/; revision=609839
2006-12-02 13:09:03 +00:00
Kurt Hindenburg
3e61e4c14d copyright updates
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=560571
2006-07-10 17:05:55 +00:00
Kurt Hindenburg
c6edf9d900 Add copyright/license info after discussing with Lars Doelle.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=560526
2006-07-10 14:43:49 +00:00
Kurt Hindenburg
f34d820342 Add 256 color support.
Patch by Lars Doelle. Thanks!

CCBUG: 107487


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=557629
2006-07-03 16:57:18 +00:00
Jaison Lee
cc88019e86 EBN spelling corrections.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=552770
2006-06-19 01:43:22 +00:00
nobody
249d770b45 This commit was manufactured by cvs2svn to accommodate
a server-side copy/move.

svn path=/trunk/kdebase/konsole/; revision=314922
2004-05-26 21:46:38 +00:00
Stephan Kulow
a82d497ca5 exit takes an argument
svn path=/trunk/kdebase/konsole/; revision=295412
2004-03-12 14:29:52 +00:00
Dirk Mueller
a949090332 typo fixes
svn path=/trunk/kdebase/konsole/; revision=233092
2003-06-22 23:37:37 +00:00
Lars Doelle
c4dcf0b8f0 file moved
svn path=/trunk/kdebase/konsole/; revision=64192
2000-09-17 20:55:14 +00:00
Lars Doelle
d19530f2a1 added start menu
svn path=/trunk/kdebase/konsole/; revision=55277
2000-07-03 14:10:44 +00:00
Lars Doelle
8d644d2b8f working on keytrans
svn path=/trunk/kdebase/konsole/; revision=39564
2000-01-30 03:28:09 +00:00
Lars Doelle
1338a6f64c adjustments
svn path=/trunk/kdebase/konsole/; revision=38278
2000-01-14 00:33:08 +00:00
Lars Doelle
f1aabcdeb9 added some test for unicode support
svn path=/trunk/kdebase/konsole/; revision=37738
2000-01-07 16:03:35 +00:00