Commit Graph
219 Commits
Author SHA1 Message Date
Kovid Goyal 664975b707 Show off kitty's graphics capabilities 2017-10-05 16:49:34 +05:30
Kovid Goyal c3ab6ff780 Fix vertically inverted rendering of PNG 2017-10-04 23:38:36 +05:30
Kovid Goyal 46bb482e96 Fix y-axis mapping incorrect for images 2017-10-04 19:34:34 +05:30
Kovid Goyal 1a8d9314fe Fix transmission of chunked compressed data 2017-10-04 10:19:25 +05:30
Kovid Goyal c87dcdbe3c Tests for displaying graphics 2017-10-03 16:10:04 +05:30
Kovid Goyal 3cbc20005b Implement sending of image data to GPU 2017-10-01 09:04:46 +05:30
Kovid Goyal 28ae99ed37 More work on displaying images 2017-09-30 14:46:17 +05:30
Kovid Goyal 4f98d10caa Remove the requirement to specify sizes for PNG files 2017-09-30 13:51:52 +05:30
Kovid Goyal 933621b038 Better libpng error handling 2017-09-30 13:51:51 +05:30
Kovid Goyal c31e608ff9 Tests for loading PNG images 2017-09-30 13:51:51 +05:30
Kovid Goyal c01f009e42 Remove sz requirement and implement proper fix for failure to mmap shm objects on OS X. Apparently they have to be mapped shared. 2017-09-30 13:51:51 +05:30
Kovid Goyal dbd7ec5b27 Allow specifying the offset and size for reading data from files
Also require size to be specified for SHM objects to support platforms
such as macOS that have no way to get the size from the fd.
2017-09-30 13:51:51 +05:30
Kovid Goyal b644d4620a OS X does not support write() with shared memory 2017-09-30 13:51:51 +05:30
Kovid Goyal 03dd6e0490 Test for image loading from shared memory 2017-09-30 13:51:50 +05:30
Kovid Goyal dfca991173 Test for loading image data from file 2017-09-30 13:51:50 +05:30
Kovid Goyal 8e5c4b6f7a Require data size to be sent for PNG format 2017-09-30 13:51:50 +05:30
Kovid Goyal d0d769f26b Test for zlib de-compression 2017-09-30 13:51:50 +05:30
Kovid Goyal 35acb1497a Fix chunked loading of images 2017-09-30 13:51:50 +05:30
Kovid Goyal 8cd1f76d2b Framework for testing loading of images 2017-09-30 13:51:50 +05:30
Kovid Goyal f0ee728b94 Fix failing flake 2017-09-30 13:51:50 +05:30
Kovid Goyal 7da08d37d2 File to host graphics tests 2017-09-30 13:51:49 +05:30
Kovid Goyal 23c2bdb6f0 Dont silently wrap too large ids, instead ignore the graphics command 2017-09-30 13:51:49 +05:30
Kovid Goyal 7736629bc4 Fix graphics id not going upto UINT32_MAX 2017-09-30 13:51:49 +05:30
Kovid Goyal 204bd97198 Nicer error responses on bad graphics data 2017-09-30 13:51:49 +05:30
Kovid Goyal 66bce4b8cd Code to read image data 2017-09-30 13:51:48 +05:30
Kovid Goyal c567acb4e5 Work on loading images 2017-09-30 13:51:48 +05:30
Kovid Goyal 15e03f74f4 Also report the payload for graphics commands 2017-09-30 13:51:47 +05:30
Kovid Goyal 56c2e0c26a Report incomplete graphics commands as parser errors 2017-09-30 13:51:47 +05:30
Kovid Goyal 83de392b39 ... 2017-09-30 13:51:47 +05:30
Kovid Goyal 3c89f80603 More tests for the graphics control code parser 2017-09-30 13:51:47 +05:30
Kovid Goyal 8e64895c23 Framework for testing graphics command parsing 2017-09-30 13:51:47 +05:30
Kovid Goyal b8d9629ee4 Start work on parsing of graphics escape code 2017-09-30 13:51:46 +05:30
Kovid Goyal 5b24d51fcd Fix failing screen resize test
Take into account the index that now happens to ensure that
the cursor is on a new line.
2017-09-30 13:51:35 +05:30
Kovid Goyal 3ca45ab241 Fix cursor moving one line up when resizing 2017-09-20 10:59:31 +05:30
Kovid Goyal bc1de92534 Fix the broken tests 2017-09-16 17:05:58 +05:30
Kovid Goyal 9cd146fe3e Remove the buf_toggled callback 2017-09-16 16:31:29 +05:30
Kovid Goyal c5e989bc94 Move the key handler to C 2017-09-15 21:46:00 +05:30
Kovid Goyal 464291bbb1 Port click on URL code to C 2017-09-15 10:45:27 +05:30
Kovid Goyal 271b623f82 More URL detection tests 2017-09-15 10:45:25 +05:30
Kovid Goyal 88d896e745 Move function to detect URLs into C code 2017-09-15 10:45:25 +05:30
Kovid Goyal c683725434 Get rid of the timers infrastructure
It is not needed with a pure state machine.
Note that drag scrolling still has to be ported from using
timers.
2017-09-15 10:45:24 +05:30
Kovid Goyal bc97cfa024 Use a null to represent a blank rather than a space
This has performance benefits when clearing (can use a single
memset). Also allows detecting trailing whitespace on lines correctly.
2017-09-15 10:45:16 +05:30
Kovid Goyal 029ff84f09 Remove the change tracker related tests
The change tracker no longer exists
2017-09-15 10:45:16 +05:30
Kovid Goyal 6127d2d122 Make the sprite map globally accessible from C code as well as python code
The lock was removed as the Python GIL is sufficient to serialize access
to the SpriteMap structure.
2017-09-15 10:45:10 +05:30
Kovid Goyal a429bcbb22 Dont use the glfw timer function as it requires glfwInit 2017-09-15 10:45:07 +05:30
Kovid Goyal 08f336769f Add tests for key mapping
Also fix Alt+Special keys no generating correct codes
2017-05-20 11:41:21 +05:30
Kovid Goyal cd1ba334c1 Forgot to change test 2017-05-19 15:54:34 +05:30
Kovid Goyal 3f272d102b Test for toggling IUTF8 2017-04-28 09:41:47 +05:30
Kovid Goyal 898a8075be Fix #69 2017-04-28 08:31:07 +05:30
Kovid Goyal 01c289e440 Add ST test to OTH tests as well 2017-04-05 09:09:41 +05:30