aboutsummaryrefslogtreecommitdiff
path: root/termkey.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Neater implementation of key modifier names for strfkey; put them in a ↵Paul LeoNerd Evans2011-04-011-7/+15
| | | | little table
* Extract UTF-8 sequence parser into its own function, fix bugs, apply unit testsPaul LeoNerd Evans2011-03-311-68/+77
|
* strfkey should fill in the utf8 member of a key struct if it's emptyPaul LeoNerd Evans2011-03-311-0/+2
|
* Renamed snprint_key() to strfkey(); provide redirection trampolinePaul LeoNerd Evans2011-03-311-0/+6
|
* Don't steal Ctrl-C from the kernel by default (so leave SIGINT enabled); add ↵Paul LeoNerd Evans2011-03-231-1/+6
| | | | a flag to take it if required
* Interpret space as Unicode by default, add a flag to make it symbolic insteadPaul LeoNerd Evans2011-03-231-1/+1
|
* Allow formatting the mouse position when rendering an event to a stringPaul LeoNerd Evans2009-11-271-1/+9
|
* Make DEBUG=1 mode work with mouse eventsPaul LeoNerd Evans2009-11-271-0/+8
|
* Moved code around so DEBUG=1 actually compiles againPaul LeoNerd Evans2009-11-271-51/+53
|
* Return opaque mouse events in the key structure; add a function to interpret ↵Paul LeoNerd Evans2009-11-271-6/+66
| | | | this into its component fields
* Moved mouse parsing code out of driver-ti.c into core termkey.cPaul LeoNerd Evans2009-11-261-0/+16
|
* Print Mouse() rather than shouting MOUSE()Paul LeoNerd Evans2009-11-241-1/+1
|
* Public interface for MOUSE supportPaul LeoNerd Evans2009-11-241-0/+4
|
* Bugfix to termkey_format_key() in FORMAT_CARETCTRL case when formatting ↵Paul LeoNerd Evans2009-11-231-2/+2
| | | | Ctrl-Letter
* Renamed all type names to CamelCaseNames for visual distinctness, separate ↵Paul LeoNerd Evans2009-07-151-50/+50
| | | | from variables/functions
* Represent Ctrl-letter in lowercase in the struct, so as one day to be able ↵Paul LeoNerd Evans2008-12-101-15/+31
| | | | to do Ctrl-Shift-letter. Make sure ^X notation is still capital
* Make termkey_getkey() set a peeked key structure if it returns TERMKEY_RET_AGAINPaul LeoNerd Evans2008-12-101-0/+5
|
* Complete change of driver internals - peek and return size but don't eat ↵Paul LeoNerd Evans2008-12-101-20/+31
| | | | bytes; eat later in getkey()
* Make sure only to slide buffer down when returning a real key to the user, ↵Paul LeoNerd Evans2008-12-061-7/+10
| | | | or else it might upset the meta-key logic when it returns
* Make common static function getkey(), roll functionallity of ↵Paul LeoNerd Evans2008-12-051-92/+56
| | | | termkey_getkey{,_force}() into it
* Added termkey_keyname2sym() to APIPaul LeoNerd Evans2008-12-021-0/+14
|
* Added termkey_get_fd() to APIPaul LeoNerd Evans2008-12-011-0/+5
|
* Make sure l is always initialised in termkey_snprint_key()Paul LeoNerd Evans2008-11-241-1/+1
|
* Make termkey_new_full() static for now until we expose the API fullyPaul LeoNerd Evans2008-11-241-1/+4
|
* Fixed some signed/unsigned integer mismatches, including one important bugPaul LeoNerd Evans2008-11-241-4/+4
|
* Added compile-vs-runtime library version checksPaul LeoNerd Evans2008-11-161-0/+17
|
* Added (undocumented) termkey_{get,set}_flags() calls to APIPaul LeoNerd Evans2008-11-101-0/+10
|
* When debugging, also print details of a key event when applicablePaul LeoNerd Evans2008-11-091-0/+36
|
* Load terminfo triver before CSI; in case they both applyPaul LeoNerd Evans2008-11-091-1/+1
|
* Allow stacking drivers in a linked list; try all of them at getkey() timePaul LeoNerd Evans2008-11-091-35/+80
|
* If debugging, print verbose output about internals of getkey operationPaul LeoNerd Evans2008-11-091-2/+61
|
* Driver getkey() can return TERMKEY_RES_NONE which attempts getkey_simple() ↵Paul LeoNerd Evans2008-11-091-3/+31
| | | | afterwards
* getkey_simple() should return TERMKEY_RES_NONE if no bytes available; as a ↵Paul LeoNerd Evans2008-11-091-0/+3
| | | | safety check
* Print name of driver on startup if debuggingPaul LeoNerd Evans2008-11-081-0/+4
|
* Pass driver_info as explicit void* parameter into driver methodsPaul LeoNerd Evans2008-11-081-5/+5
|
* Renamed termkey_{set,get}waittime() to termkey_{set,get}_waittime() to be ↵Paul LeoNerd Evans2008-11-061-2/+2
| | | | more consistent
* Better handling of incomplete UTF-8 sequences - just emit a UTF8_INVALID if ↵Paul LeoNerd Evans2008-11-031-2/+13
| | | | waittime is up
* Better handling in termkey_waitkey() of EOF conditionsPaul LeoNerd Evans2008-11-031-4/+12
|
* Bugfix to recursive 'meta-' getkey code - handle buffcount tooPaul LeoNerd Evans2008-11-031-2/+4
|
* Added new driver virtual methods 'start_driver' and 'stop_driver'Paul LeoNerd Evans2008-11-021-0/+6
|
* Remeber to handle Esc-prefixed keypresses in base getkey_simple() function - ↵Paul LeoNerd Evans2008-11-021-1/+36
| | | | involves some code duplication with CSI driver currently
* Pass the 'force' value through to getkey_simple()Paul LeoNerd Evans2008-11-021-2/+2
|
* Added many more key symbols and names + translations from terminfoPaul LeoNerd Evans2008-10-101-0/+22
|
* 'int' might not be wide enough to hold any Unicode codepoint; use 'long'Paul LeoNerd Evans2008-10-101-5/+5
|
* Added some TODO notes about handling realloc() failuresPaul LeoNerd Evans2008-10-091-0/+2
|
* Better free() tracking in constructor failure casesPaul LeoNerd Evans2008-10-091-5/+16
|
* Pass 'term' string into new_driver virtual method; have drivers sensitive to ↵Paul LeoNerd Evans2008-10-091-2/+4
| | | | it and return NULL if they can't handle. Try CSI driver first; only for xterm-alikes
* Added initial attempt at a terminfo-driven driverPaul LeoNerd Evans2008-10-081-0/+1
|
* Moved all of the keynames out from driver-csi into termkey; where they belongPaul LeoNerd Evans2008-10-081-0/+31
|
* Register keynames using a more extensible internal array; easier to add new onesPaul LeoNerd Evans2008-10-081-9/+21
|