37 Commits (master)

Author SHA1 Message Date
Přemysl Eric Janouch 18d16c1edb
Add clang-format configuration, clean up 8 months ago
Přemysl Eric Janouch 2d777dd67e Rewrite the mouse API 8 years ago
Přemysl Eric Janouch e98d9c0fd1 Rename to termo 8 years ago
Přemysl Eric Janouch 5692f32bcf CMake-ify, rename to termkey2 for the time being 8 years ago
Přemysl Eric Janouch 36bc6cd095 Move to iconv 8 years ago
Přemysl Eric Janouch b630bf7a5f WIP: Is mine now (^3^) 8 years ago
Paul LeoNerd Evans ff8d714142 Print UTF-8/RAW mode on startup; print 'Key ' before normal keys to debug UTF-8 parse errors 9 years ago
Paul LeoNerd Evans 0be6f18019 Handle ANSI and DEC mode report CSIs 10 years ago
Paul LeoNerd Evans c00f6cd3c6 Only recognise DECCPR as a position report, so it is distinct from F3 10 years ago
Paul LeoNerd Evans ca4d98b0f7 Have demo.c request cursor position on '?'; print position reports and mouse nicer 10 years ago
Paul LeoNerd Evans 84378bcba8 Allow setting mouse encoding protocol from demo 10 years ago
Paul LeoNerd Evans 6bc3f8a378 \e string escape is not portable; use \033 11 years ago
Paul LeoNerd Evans 427a98693e optarg and friends want _XOPEN_SOURCE 600, and <unistd.h> - Petr Pavlu 11 years ago
Paul LeoNerd Evans 7a2b79a640 Provide a new result value, TERMKEY_RES_ERROR to indicate an IO error - preserve errno 11 years ago
Paul LeoNerd Evans e90d8f45d7 demo.c needs to enable CTRLC flag to shut down mouse mode on exit 11 years ago
Paul LeoNerd Evans 26ef76349e Renamed snprint_key() to strfkey(); provide redirection trampoline 11 years ago
Paul LeoNerd Evans a71f68dd57 Interpret space as Unicode by default, add a flag to make it symbolic instead 11 years ago
Paul LeoNerd Evans ba0c32e8d8 Allow formatting the mouse position when rendering an event to a string 13 years ago
Paul LeoNerd Evans 7459a038fb Make demo enable mouse mode if given on commandline 13 years ago
Paul LeoNerd Evans be998cef1b Renamed all type names to CamelCaseNames for visual distinctness, separate from variables/functions 13 years ago
Paul LeoNerd Evans eee8ddcee3 Linefeed properly in main() in demo files 14 years ago
Paul LeoNerd Evans 4f73b850c5 Added compile-vs-runtime library version checks 14 years ago
Paul LeoNerd Evans 247fae6a72 Gracefully handle constructor failure rather than SEGV 14 years ago
Paul LeoNerd Evans a61b916c18 Adjustment to demo.c; just print the vim style format 14 years ago
Paul LeoNerd Evans 0b8680daa4 Added TERMKEY_FORMAT_WRAPBRACKET 14 years ago
Paul LeoNerd Evans 5b24e42d90 Added two more formatting options; CARETCTRL and ALTISMETA 14 years ago
Paul LeoNerd Evans a06d010504 Added termkey_snprint_key() to render nice string outputs of key events 14 years ago
Paul LeoNerd Evans 95e87a86d5 Reworked events to be type/code/mod rather than flags/code/mod; make F[n] keys their own (parametric) type, rather than using keysyms for them 14 years ago
Paul LeoNerd Evans eb2fed629d Cope correctly with XTerm's modified Unicode reporting of Ctrl-C for termination 15 years ago
Paul LeoNerd Evans 9dfd4f1116 Renamed describe_sym to get_keyname 15 years ago
Paul LeoNerd Evans 46e53d124d Moved termios magic out of demo.c into termkey.c where it belongs 15 years ago
Paul LeoNerd Evans 8f8e96f015 Implemented termkey_free() 15 years ago
Paul LeoNerd Evans dda9be9110 More termios settings on startup, to ensure reporting of signal, flow control, and NL/CR keys 15 years ago
Paul LeoNerd Evans 46ef83fdf4 Nicer names for modifiers on printed output 15 years ago
Paul LeoNerd Evans 63ed80a897 Reworking of CSI/SS3/CSIfunc recognition; use registered numbers + names for keys, rather than hardcoded 15 years ago
Paul LeoNerd Evans 6294cca6f9 Denote general status with return codes, not special key symbols 15 years ago
Paul LeoNerd Evans a503403226 Initial attempt 15 years ago