Commit Graph

35 Commits

Author SHA1 Message Date
Boris Faure 392bfdb4a7
tests: rework tytest.c/tyfuzz.c to no longer #include one in the other 2020-05-23 11:59:24 +02:00
Boris Faure 0b48853597
reduce scope of variables 2020-04-17 23:09:07 +02:00
Boris Faure d5d61a5b76
termio: hide links when content change underneath 2020-04-16 23:43:21 +02:00
Boris Faure b76bbbe455
termpty: better handle writes
- Use the event loop
- Check for EINTR/EAGAIN

This fixes pasting large amount of data.

Closes T4712
2019-12-04 23:13:30 +01:00
Boris Faure 6bfd508a58
tyfuzz: instead of writing to /dev/null, just do not write 2019-12-04 21:44:37 +01:00
Boris Faure fb922e0ec4 coverity fixed their stuff, remove hack 2019-07-08 21:30:27 +02:00
Boris Faure 344e466eba tyfuzz/tytest: fix leak 2019-07-08 21:30:27 +02:00
Boris Faure 7b3110d4a2 termpty: attach a Config * to Termpty 2019-06-23 22:02:50 +02:00
Carsten Haitzler 5c74541206 config - font size - go back to 10 as default
so a whole back terminology moved from the shipepd nexus bitmap font
to system monospace fonts and 12 pt. it has always looked wrong as
efl's default theme is 10 and relies on a system-wide scale factor to
do this. 12 has looked totally out of place for a long time and it's
time that this not be hacked around in terminology but be solved at
the system level - maybe efl. if you use e then you will have selected
the scaling factor already and it will affect efl apps and all work.
outside of e is "not solved". to date it's been "other desktosp have
to support efl - up to them". perhaps looking at some level of "well
user has no config so let's guess what scale factor should maybe be
based on dpy and other toolkit configs we can find etc." in EFL... not
terminology.
2019-06-11 11:57:24 +01:00
Boris Faure 33b2d68aa9 termptyesc: handle OSC 11 that reports background color
It can also be used to set background color but that's not implemented
2019-05-26 23:02:53 +02:00
Boris Faure 7e677abfb9 termpty: add termpty_color_class_get() 2019-05-26 22:55:22 +02:00
Boris Faure eaaf63172d tyfuzz: test terminal is only 24 lines 2019-02-23 17:52:42 +01:00
Boris Faure 2ca440ba93 tytest: use same offset as "real life"
makes it easy to write tests
2019-02-23 11:19:20 +01:00
Boris Faure b7305bfc59 tyfuzz: better mock termio_take_selection()
+ fix leak
+ make the code more readable to me
2019-02-18 20:57:38 +01:00
Boris Faure 73f461e281 tytest: add test_textgrid_cellrow_get()
to mock evas_object_textgrid_cellrow_get()
2019-02-11 22:44:16 +01:00
Boris Faure 35587220c7 termiointernals: add termio_internal_get_selection() 2019-02-10 20:09:20 +01:00
Boris Faure 43c6777e57 termiointernals: add termio_internal_render()
used to test selection invalidation later on
2019-02-09 23:48:15 +01:00
Boris Faure fd8120091d tytest: add framework to add special escape codes for tests 2019-02-06 23:19:29 +01:00
Boris Faure 4e38d0d2c7 termio: simplify code by passing sd instead of obj
Stub function to get Termio from Evas_Object
2019-02-06 23:19:29 +01:00
Boris Faure 2f432dcd33 tyfuzz: stub functions from termio 2019-02-06 23:19:29 +01:00
Boris Faure 3cc3f3ee2a add tytest.h and colors_256_get() to be able to test truecolor 2018-12-27 22:14:44 +01:00
Boris Faure 5cef3b68b6 tytest: add write buffer to checksum 2018-12-27 22:14:44 +01:00
Boris Faure ce07e81180 tests: on cursor shapes and regen tests.results 2018-12-27 22:14:44 +01:00
Boris Faure 4ba31c3fba tests: differentiate NULL on prop.icon or prop.title 2018-12-27 22:14:44 +01:00
Boris Faure f83e66a478 add tytest, a tool to add tests on escape sequence parsing 2018-12-27 22:14:44 +01:00
Boris Faure 5e06ee1d78 tyfuzz: support hyperlinks 2018-10-17 22:54:03 +02:00
Boris Faure 7834bede86 include coverity fix as first header 2018-09-29 18:06:41 +02:00
Boris Faure 7855175ea4 tyfuzz: make it compile again! 2018-05-02 16:19:55 +02:00
Boris Faure dad9e0db58 remove compatibility #ifs to work with EFL < 1.16 2018-03-13 18:58:41 +01:00
Boris Faure fd05f3cab5 tyfuzz: read escape sequence from file given as argument in available 2017-05-29 23:12:19 +02:00
Boris Faure 387cafa463 tyfuzz needs termpty_resize_tabs() 2017-05-17 22:35:01 +02:00
Boris Faure c3767594d1 fix compilation with fuzzing enabled 2017-05-11 23:46:01 +02:00
Boris Faure a0c249e6ca fix crash when running tyfuzz. not in terminology 2015-11-14 21:26:37 +01:00
Boris Faure a925de13dc tyfuzz: read from stdin but write to /dev/null 2015-11-08 13:06:13 +01:00
Boris Faure 7d46ee5062 add tyfuzz utility used for fuzzing the escape code parsing routines 2015-11-08 13:05:43 +01:00