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
28ae99ed37
More work on displaying images
2017-09-30 14:46:17 +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
8e5c4b6f7a
Require data size to be sent for PNG format
2017-09-30 13:51:50 +05:30
Kovid Goyal
558b208edd
Fix compressed key not being parsed
2017-09-30 13:51:50 +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
8418cc04c1
Start work on the graphics manager
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
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
9f5d731d8d
...
2017-09-30 13:51:47 +05:30
Kovid Goyal
ef312a3d1c
...
2017-09-30 13:51:47 +05:30
Kovid Goyal
705298737a
Fix off by one
2017-09-30 13:51:47 +05:30
Kovid Goyal
a7b95f73be
Cleanup handling of ,; in the GR control code parser
2017-09-30 13:51:46 +05:30
Kovid Goyal
a9ed44eecc
Implement decoding of graphics command payload
2017-09-30 13:51:46 +05:30
Kovid Goyal
b8d9629ee4
Start work on parsing of graphics escape code
2017-09-30 13:51:46 +05:30
Kovid Goyal
746a20a11d
Cleanup data-types.h
2017-09-15 10:45:17 +05:30
Kovid Goyal
234bb07b67
Initial attempt at moving all threading code into a single file
2017-09-15 10:45:10 +05:30
Kovid Goyal
6176607ac4
Initial stab at switching to poll() instead of select()
...
Also avoid python code in the child monitoring inner loop
2017-09-15 10:45:07 +05:30
Kovid Goyal
96d2567815
Fix compilation with gcc >= 7
...
Requires explicit fallthrough comments in switch statements
2017-06-03 08:59:09 +05:30
Kovid Goyal
c27b597951
Fix incorrect implementation of the CSI scroll commands
...
I was lazy and just assumed they were n indexes, but they actually
scroll the screen without moving the cursor. Fixes #76
2017-05-19 19:25:41 +05:30
Kovid Goyal
d180601711
More command replaying
2017-05-19 15:43:15 +05:30
Kovid Goyal
14a66762a6
Fix incorrect response to request for device attributes
2017-05-17 10:33:33 +05:30
Kovid Goyal
f0c546208d
Implement OSC codes for changing selection colors
2017-05-17 08:55:57 +05:30
Kovid Goyal
0c8231d356
Implement OSC codes for changing cursor colors
2017-05-17 07:10:23 +05:30
Kovid Goyal
35f2b3254a
A spot of refactoring
2017-04-28 08:54:06 +05:30
Kovid Goyal
898a8075be
Fix #69
2017-04-28 08:31:07 +05:30
Kovid Goyal
db2d14d9ed
Fix backslashes in OSC codes not being parsed correctly
...
Fixes #61
2017-04-05 09:07:55 +05:30
Kovid Goyal
c504b96b60
Add a --dump-bytes option, useful for reproducing problems from users computers
2017-04-05 00:13:31 +05:30
Kovid Goyal
bb7edb5f8f
Implement DECRQM
...
Also add tests for DECRQM and DECCKM
2017-02-05 16:21:13 +05:30
Kovid Goyal
cc14562f2c
Forgot the unicode version of APC and PM
2017-01-20 13:40:58 +05:30
Kovid Goyal
0612855c95
Ignore PM and APC control codes
2017-01-20 13:31:05 +05:30
Kovid Goyal
a9efe7036c
Fix an infinite loop in the UTF-8 decoding code with invalid input
2017-01-18 12:19:29 +05:30
Kovid Goyal
d0c16e8b7b
Fix crash when parsing malformed CSI sequence with several thousand parameters
2016-12-19 18:33:48 +05:30
Kovid Goyal
1648ac1036
Add support for CSI s/u used by some old programs
2016-12-14 10:19:51 +05:30
Kovid Goyal
a568f73e77
Fix compilation with clang
2016-12-12 13:36:11 +05:30
Kovid Goyal
489504cda5
More charset fixes
...
Properly use the G0/G1 charsets only to map characters being drawn to
the screen. And only decode bytes using either Latin-1 or UTF-8,
defaulting to UTF-8 at startup/reset.
2016-11-30 23:36:10 +05:30
Kovid Goyal
635ce4dc10
Implement CHT
2016-11-30 21:55:20 +05:30
Kovid Goyal
9e68cc559a
Implement CBT
2016-11-30 21:50:54 +05:30
Kovid Goyal
ce1514963b
Various charset related fixes
...
Fix changing of charset not taking effect immediately while parsing a
single block of bytes
Fix incorrect mapping of C0 control codes in some of the charsets
2016-11-30 19:44:41 +05:30
Kovid Goyal
c713712f89
Restore support for charsets other than UTF-8
2016-11-30 17:48:52 +05:30
Kovid Goyal
f36aa19c3f
Pull out the dispatching of unicode characters
2016-11-30 16:29:31 +05:30
Kovid Goyal
45a5190a0d
Handle CSI codes that start with a ;
2016-11-30 16:03:45 +05:30
Kovid Goyal
95d3f20832
Do not ignore CUP when y is out of margins, instead clamp to margins
2016-11-30 14:58:34 +05:30