aboutsummaryrefslogtreecommitdiff
path: root/driver-csi.c
Commit message (Collapse)AuthorAgeFilesLines
* Add -WextraPřemysl Janouch2014-09-231-1/+21
|
* WIP: Is mine now (^3^)Přemysl Janouch2014-09-231-541/+575
| | | | | | | | | | | | | | | | Seriously though, I've got some issues with how this thing is designed, as well as with its formatting, and when you add the fact that the original author wants to merge this thing into his bigger library that also handles terminal output, which I'll kindly leave to ncurses, it kind of makes sense for me to do this. Manpages have been removed as they are going to become obsolete and they're rather difficult to maintain. If anything, there will be Doxygen-generated documentation. The plan is to throw away any direct UTF-8 support and support all uni- and multibyte character encodings. However some unrelated refactoring is about to come first.
* Handle ANSI and DEC mode report CSIsPaul LeoNerd Evans2012-11-301-0/+43
|
* Only recognise DECCPR as a position report, so it is distinct from F3Paul LeoNerd Evans2012-11-301-17/+10
|
* Try to handle position reports -and- F3 concurrently.. somehow.. arghPaul LeoNerd Evans2012-11-301-7/+15
|
* Bugfix to argless CSIs; present 0 arguments, not 1 whose value is -1Paul LeoNerd Evans2012-11-301-4/+2
|
* Slightly more generic custom CSI handling - name functions just after the ↵Paul LeoNerd Evans2012-11-301-23/+42
| | | | letter they parse, so we can multiplex on 'cmd' or other things
* Moved the other termkey_interpret_*() functions into driver-csi.c where they ↵Paul LeoNerd Evans2012-11-301-13/+75
| | | | arguably belong
* Also interpret an intermediate CSI byte if presentPaul LeoNerd Evans2012-11-301-0/+4
|
* Return a real key type for unrecognised CSI sequences; allow accessing them ↵Paul LeoNerd Evans2012-11-301-2/+20
| | | | by termkey_interpret_csi()
* Split out the actual CSI parser into its own function, separate from peekkey_csiPaul LeoNerd Evans2012-11-301-59/+75
|
* Bugfix to POSITION reporting - swap line<=>colPaul LeoNerd Evans2012-04-251-1/+1
|
* Ensure that key->type field is properly set for all mouse encoding protocolsPaul LeoNerd Evans2012-04-241-0/+2
|
* Also handle CSI R; position report replies to CSI 6nPaul LeoNerd Evans2012-04-241-0/+17
|
* Neater CSI driver; dispatch command handlers from an arrayPaul LeoNerd Evans2012-04-241-80/+150
|
* Always load the CSI driver because it contains cross-terminal mouse and CSI ↵Paul LeoNerd Evans2012-04-241-17/+0
| | | | u handling
* Created abstract accessors for getting/setting key event line/col countsPaul LeoNerd Evans2012-04-241-22/+2
|
* Use spare bits in code.mouse[3] to store bigger mouse positionsPaul LeoNerd Evans2012-04-121-17/+22
|
* Recognise SGR-style mouse encodingPaul LeoNerd Evans2012-04-121-2/+31
|
* Recognise rxvt-style mouse encodingPaul LeoNerd Evans2012-04-121-0/+20
|
* Document the errors set by termkey_new(), use errno rather than fprintf() to ↵Paul LeoNerd Evans2012-01-291-3/+0
| | | | stderr
* Mark new driver-csi internal variables as static so they don't result in ↵Paul LeoNerd Evans2012-01-221-5/+5
| | | | linkable symbols
* Fix another printf() %c charPaul LeoNerd Evans2012-01-201-1/+1
|
* Since CSI key info is the same for every CSI driver, just store one static ↵Paul LeoNerd Evans2012-01-201-194/+151
| | | | copy of it rather than one for every termkey instance - simplifies construct-time allocation
* fprintf() %c wants char, not unsigned charPaul LeoNerd Evans2012-01-201-4/+4
|
* Also handle new 'fixterms' spec CSI codepoint;modifiers u encodingPaul LeoNerd Evans2011-05-091-0/+6
|
* Implement mouse catching also in CSI driver, in case xterm-alike terminal ↵Paul LeoNerd Evans2009-11-261-0/+16
| | | | without 'key_mouse' terminfo string
* Renamed all type names to CamelCaseNames for visual distinctness, separate ↵Paul LeoNerd Evans2009-07-151-22/+22
| | | | from variables/functions
* Complete change of driver internals - peek and return size but don't eat ↵Paul LeoNerd Evans2008-12-101-12/+12
| | | | bytes; eat later in getkey()
* Make CSI driver's debugging output messages on unrecognised sequences ↵Paul LeoNerd Evans2008-11-121-6/+12
| | | | conditional on #ifdef DEBUG
* CSI driver shouldn't eat sequences it doesn't understand; leave them for ↵Paul LeoNerd Evans2008-11-121-13/+17
| | | | another driver
* Bugfix to 'unknown CSI' case in CSI driver - neater output message to avoid ↵Paul LeoNerd Evans2008-11-121-2/+16
| | | | uninitialised ints
* CSI driver should also load when TERM=screen because of screen's stupid way ↵Paul LeoNerd Evans2008-11-091-6/+13
| | | | of blind-forwarding keypresses it doesn't understand
* Driver getkey() can return TERMKEY_RES_NONE which attempts getkey_simple() ↵Paul LeoNerd Evans2008-11-091-1/+1
| | | | afterwards
* Drivers have namesPaul LeoNerd Evans2008-11-081-0/+2
|
* Pass driver_info as explicit void* parameter into driver methodsPaul LeoNerd Evans2008-11-081-4/+4
|
* Pass 'csi' value to static helper functions in driver-csiPaul LeoNerd Evans2008-11-081-10/+8
|
* Reuse common Esc-prefix code in getkey_simple() from CSI driver; avoids code ↵Paul LeoNerd Evans2008-11-031-44/+5
| | | | duplication
* Pass the 'force' value through to getkey_simple()Paul LeoNerd Evans2008-11-021-1/+1
|
* 'int' might not be wide enough to hold any Unicode codepoint; use 'long'Paul LeoNerd Evans2008-10-101-3/+3
|
* Added some TODO notes about handling realloc() failuresPaul LeoNerd Evans2008-10-091-0/+1
|
* Better free() tracking in constructor failure casesPaul LeoNerd Evans2008-10-091-0/+9
|
* Pass 'term' string into new_driver virtual method; have drivers sensitive to ↵Paul LeoNerd Evans2008-10-091-1/+11
| | | | it and return NULL if they can't handle. Try CSI driver first; only for xterm-alikes
* Moved all of the keynames out from driver-csi into termkey; where they belongPaul LeoNerd Evans2008-10-081-34/+34
|
* Pass an explicit 'force' parameter into driver's getkey rather than relying ↵Paul LeoNerd Evans2008-10-081-10/+10
| | | | on non-zero waittime
* Moved single byte and UTF-8 sequence recombiner out of driver-csi.c back ↵Paul LeoNerd Evans2008-10-081-92/+2
| | | | into termkey.c
* Moved all of the C0 registration and 'do_codepoint' logic out of driver-csi ↵Paul LeoNerd Evans2008-10-081-146/+10
| | | | back into termkey via another protected method 'emit_codepoint'
* s/eatbytes/eat_bytes/ - nicer API namePaul LeoNerd Evans2008-10-071-13/+13
|
* Moved 'eatbytes' back into core code, put a code ptr in the termkey struct ↵Paul LeoNerd Evans2008-10-071-32/+13
| | | | as a "protected" method
* Moved CSI key registration code to be private to CSI driverPaul LeoNerd Evans2008-10-061-24/+98
|