Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move to iconv | Přemysl Janouch | 2014-09-28 | 1 | -244/+158 |
| | | | | | | | | | | | That is the major change in this commit. Also Ctrl-modified keys now should work in URxvt, which was surprisingly trivial to achieve. Coming up next: - making sure the tests still work - introducing CMake | ||||
* | WIP: Is mine now (^3^) | Přemysl Janouch | 2014-09-23 | 1 | -1249/+1377 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | Be a little more lenient in locale env.var. testing for UTF-8ness | Paul LeoNerd Evans | 2014-03-05 | 1 | -1/+8 |
| | |||||
* | Look for .utf8 in locale variables as well as .UTF-8 | Paul LeoNerd Evans | 2014-01-23 | 1 | -1/+1 |
| | |||||
* | Look for \.UTF-8 only in the first env. var found from LANG, LC_MESSAGES, LC_ALL | Paul LeoNerd Evans | 2014-01-05 | 1 | -11/+2 |
| | |||||
* | Bugfix to snprint_cameltospaces() when given a short buffer [thanks Romain ↵ | Paul LeoNerd Evans | 2013-08-26 | 1 | -5/+12 |
| | | | | Chossart] | ||||
* | Delete trailing whitespace in code | Paul LeoNerd Evans | 2013-08-26 | 1 | -2/+2 |
| | |||||
* | Fix comment about 'n' in strpncmp_camel() | Paul LeoNerd Evans | 2013-08-26 | 1 | -1/+1 |
| | |||||
* | Added TERMKEY_FORMAT_LOWERSPACE for strpkey() also | Paul LeoNerd Evans | 2013-08-26 | 1 | -27/+73 |
| | |||||
* | Added TERMKEY_FORMAT_LOWERSPACE for strfkey() only | Paul LeoNerd Evans | 2013-08-26 | 1 | -2/+33 |
| | |||||
* | Added TERMKEY_FORMAT_LOWERMOD | Paul LeoNerd Evans | 2013-08-26 | 1 | -2/+8 |
| | |||||
* | Added TERMKEY_FORMAT_SPACEMOD | Paul LeoNerd Evans | 2013-08-26 | 1 | -7/+9 |
| | |||||
* | Make some more things 'const' that should be | Paul LeoNerd Evans | 2013-07-15 | 1 | -6/+6 |
| | |||||
* | Make sure to implement newer event types in debug function | Paul LeoNerd Evans | 2012-12-06 | 1 | -0/+17 |
| | |||||
* | Handle ANSI and DEC mode report CSIs | Paul LeoNerd Evans | 2012-11-30 | 1 | -0/+20 |
| | |||||
* | Moved the other termkey_interpret_*() functions into driver-csi.c where they ↵ | Paul LeoNerd Evans | 2012-11-30 | 1 | -63/+0 |
| | | | | arguably belong | ||||
* | Return a real key type for unrecognised CSI sequences; allow accessing them ↵ | Paul LeoNerd Evans | 2012-11-30 | 1 | -0/+11 |
| | | | | by termkey_interpret_csi() | ||||
* | Also handle CSI R; position report replies to CSI 6n | Paul LeoNerd Evans | 2012-04-24 | 1 | -0/+27 |
| | |||||
* | Created abstract accessors for getting/setting key event line/col counts | Paul LeoNerd Evans | 2012-04-24 | 1 | -5/+1 |
| | |||||
* | Use spare bits in code.mouse[3] to store bigger mouse positions | Paul LeoNerd Evans | 2012-04-12 | 1 | -3/+3 |
| | |||||
* | Recognise SGR-style mouse encoding | Paul LeoNerd Evans | 2012-04-12 | 1 | -0/+4 |
| | |||||
* | Extract modifiers for mouse events at peekkey time | Paul LeoNerd Evans | 2012-04-05 | 1 | -4/+9 |
| | |||||
* | Have getkey/waitkey return RES_ERROR/EINVAL if stopped | Paul LeoNerd Evans | 2012-03-08 | 1 | -0/+5 |
| | |||||
* | Added a termkey_is_started() accessor; unit test it a bit | Paul LeoNerd Evans | 2012-03-08 | 1 | -0/+5 |
| | |||||
* | Move the terminal start/stop code into their own functions, exported ↵ | Paul LeoNerd Evans | 2012-03-08 | 1 | -47/+77 |
| | | | | (undocumented for now) | ||||
* | Added (undocumented) termkey_set_buffer_size() | Paul LeoNerd Evans | 2012-02-13 | 1 | -0/+12 |
| | |||||
* | Added (undocumented) termkey_get_buffer_size() | Paul LeoNerd Evans | 2012-02-13 | 1 | -0/+5 |
| | |||||
* | Document the errors set by termkey_new(), use errno rather than fprintf() to ↵ | Paul LeoNerd Evans | 2012-01-29 | 1 | -2/+2 |
| | | | | stderr | ||||
* | Created termkey_new_abstract() | Paul LeoNerd Evans | 2012-01-26 | 1 | -0/+18 |
| | |||||
* | Move initialisation logic out of termkey_new into a static function | Paul LeoNerd Evans | 2012-01-26 | 1 | -39/+46 |
| | |||||
* | Use termkey_set_flags() in constructor rather than copypasted logic | Paul LeoNerd Evans | 2012-01-26 | 1 | -5/+3 |
| | |||||
* | Split termkey_new() into alloc and initialise phases | Paul LeoNerd Evans | 2012-01-26 | 1 | -30/+41 |
| | |||||
* | Also mark termkey.c's modnames as static | Paul LeoNerd Evans | 2012-01-22 | 1 | -1/+1 |
| | |||||
* | Handle realloc() failures when registering key names | Paul LeoNerd Evans | 2012-01-20 | 1 | -2/+5 |
| | |||||
* | sscanf() %zn ought to take a ssize_t * | Paul LeoNerd Evans | 2012-01-20 | 1 | -2/+3 |
| | |||||
* | Allow {start,stop}_driver to fail, abort constructor, have driver-ti try to ↵ | Paul LeoNerd Evans | 2012-01-20 | 1 | -1/+2 |
| | | | | write the entire start/stop string or error out on -1 | ||||
* | Allow passing fd = -1 to constructor to make an instance not associated with ↵ | Paul LeoNerd Evans | 2012-01-18 | 1 | -1/+11 |
| | | | | an fd; must use push_bytes to provide it input | ||||
* | Added termkey_push_bytes(), a new API for providing input bytes | Paul LeoNerd Evans | 2012-01-18 | 1 | -0/+23 |
| | |||||
* | Ensure that termkey_advisereadable() just fails with errno=ENOMEM rather ↵ | Paul LeoNerd Evans | 2012-01-18 | 1 | -0/+6 |
| | | | | than trying to read() zero bytes | ||||
* | Avoid push_bytes() entirely by read()ing directly into tk->buffer | Paul LeoNerd Evans | 2012-01-18 | 1 | -19/+7 |
| | |||||
* | Provide new API function to determine how much buffer space remains in the ↵ | Paul LeoNerd Evans | 2012-01-18 | 1 | -0/+7 |
| | | | | instance | ||||
* | Remove termkey_pushinput() from external API; declare static, rename it | Paul LeoNerd Evans | 2012-01-18 | 1 | -2/+2 |
| | |||||
* | Canonicalise (a local copy of) the key structures given to termkey_keycmp() ↵ | Paul LeoNerd Evans | 2011-09-06 | 1 | -12/+18 |
| | | | | before comparing them | ||||
* | A few more DEBUG fprintf(stderr)s at construction time | Paul LeoNerd Evans | 2011-09-05 | 1 | -1/+12 |
| | |||||
* | Handle TERMKEY_RES_ERROR in (debugging mode) res2str() | Paul LeoNerd Evans | 2011-09-05 | 1 | -0/+5 |
| | |||||
* | Allow a flag to convert ASCII DEL into Backspace | Paul LeoNerd Evans | 2011-08-28 | 1 | -0/+6 |
| | |||||
* | Move canonicalisation flags into their own bitfield with their own accessor ↵ | Paul LeoNerd Evans | 2011-08-28 | 1 | -2/+26 |
| | | | | and named constants | ||||
* | Provide an explicit termkey_canonicalise() function; canonicalise Space/SP ↵ | Paul LeoNerd Evans | 2011-08-27 | 1 | -6/+23 |
| | | | | in both directions | ||||
* | Deleted legacy type name typedefs and declaration of termkey_snprint_key() | Paul LeoNerd Evans | 2011-08-27 | 1 | -1/+4 |
| | |||||
* | Ensure c_cc[VMIN] and c_cc[VTIME] are properly defined, because Solaris ↵ | Paul LeoNerd Evans | 2011-08-25 | 1 | -0/+2 |
| | | | | seems not to set them - Petr Pavlu |