Commit Graph

173 Commits

Author SHA1 Message Date
Paul LeoNerd Evans
39b810f0b8 Use shell natively to embed demo .c files in manpages rather than invoking sed, because OpenBSD's sed doesn't seem to like this 2008-11-28 19:58:16 +00:00
Paul LeoNerd Evans
d245285df2 Cast 'term' to (non-const) char* when passing to setupterm() because terminfo's prototypes don't use const 2008-11-28 19:48:41 +00:00
Paul LeoNerd Evans
fef558eeb4 Use sizeof() on assigned variables rather than types, to make code a little less fragile to type changes 2008-11-24 22:15:43 +00:00
Paul LeoNerd Evans
2cfa31e610 Make on_key() static in demo-async.c to shut up silly GCC warnings 2008-11-24 22:07:13 +00:00
Paul LeoNerd Evans
c6ff878411 Fixed another signed-vs-unsigned int comparison in driver-ti.c 2008-11-24 22:06:14 +00:00
Paul LeoNerd Evans
85be2846c3 Make sure l is always initialised in termkey_snprint_key() 2008-11-24 22:05:06 +00:00
Paul LeoNerd Evans
c8011f4bfd Make termkey_new_full() static for now until we expose the API fully 2008-11-24 22:03:23 +00:00
Paul LeoNerd Evans
f3f4519561 Fixed some signed/unsigned integer mismatches, including one important bug 2008-11-24 21:58:55 +00:00
Paul LeoNerd Evans
a40e9961d9 Export a gzip rather than bzip2 archive 2008-11-24 21:47:18 +00:00
Paul LeoNerd Evans
5c428818dd Bump VERSION_MINOR to 0.1 2008-11-18 16:58:37 +00:00
Paul LeoNerd Evans
0dc23ed684 Remove actual .so file on 'make clean' 2008-11-18 16:24:28 +00:00
Paul LeoNerd Evans
69196bcf1f Install to SONAME.MINOR and symlink to SONAME and basename 2008-11-18 15:57:59 +00:00
Paul LeoNerd Evans
14561e2a30 Only print about unrecognised terminfo variable names when debugging 2008-11-18 15:55:29 +00:00
Paul LeoNerd Evans
56634d0c82 Also added 'make dist' target to build distribution tarball 2008-11-18 15:46:29 +00:00
Paul LeoNerd Evans
223d5b19a2 Split Makefile into two halves; added 'make distdir' target for building distribution tarballs 2008-11-18 15:37:37 +00:00
Paul LeoNerd Evans
c41763c60a Document the TERMKEY_CHECK_VERSION macro 2008-11-18 12:19:29 +00:00
Paul LeoNerd Evans
297cec0681 Better Makefile support for built manpages and termkey.h file 2008-11-18 11:55:08 +00:00
Paul LeoNerd Evans
480e30539b Added .bzrignore patterns for other built files 2008-11-16 12:44:02 +00:00
Paul LeoNerd Evans
4f73b850c5 Added compile-vs-runtime library version checks 2008-11-16 12:40:14 +00:00
Paul LeoNerd Evans
c2dd9675d6 Store major and minor version number in Makefile; substitute #defines in termkey.h at build time 2008-11-16 12:28:38 +00:00
Paul LeoNerd Evans
4a108d4916 Compress trie nodes down to extent maps after loading, to save memory 2008-11-12 23:58:20 +00:00
Paul LeoNerd Evans
754214c200 Use a trie instead of a linear list of sequence strings in the terminfo driver - nicer lookup properties 2008-11-12 16:32:17 +00:00
Paul LeoNerd Evans
04e1926df6 Handle malloc() failures during setup of driver-ti 2008-11-12 16:10:58 +00:00
Paul LeoNerd Evans
62c5c97080 Make CSI driver's debugging output messages on unrecognised sequences conditional on #ifdef DEBUG 2008-11-12 13:02:30 +00:00
Paul LeoNerd Evans
927eaabae9 CSI driver shouldn't eat sequences it doesn't understand; leave them for another driver 2008-11-12 12:51:19 +00:00
Paul LeoNerd Evans
2c0d0f0f3c Bugfix to 'unknown CSI' case in CSI driver - neater output message to avoid uninitialised ints 2008-11-12 12:44:33 +00:00
Paul LeoNerd Evans
781c2160c3 Added documentation on termkey_{get,set}_flags() 2008-11-10 22:29:21 +00:00
Paul LeoNerd Evans
397a7fb683 Added (undocumented) termkey_{get,set}_flags() calls to API 2008-11-10 21:21:19 +00:00
Paul LeoNerd Evans
9757a73daa CSI driver should also load when TERM=screen because of screen's stupid way of blind-forwarding keypresses it doesn't understand 2008-11-09 22:41:44 +00:00
Paul LeoNerd Evans
30a3356815 Implemented free_driver() in terminfo driver 2008-11-09 22:38:10 +00:00
Paul LeoNerd Evans
20cc4b1701 When debugging, also print details of a key event when applicable 2008-11-09 21:58:30 +00:00
Paul LeoNerd Evans
fd2466c4ce Load terminfo triver before CSI; in case they both apply 2008-11-09 20:04:14 +00:00
Paul LeoNerd Evans
73cee7f0b0 Allow stacking drivers in a linked list; try all of them at getkey() time 2008-11-09 19:58:11 +00:00
Paul LeoNerd Evans
aef2e91277 If debugging, print verbose output about internals of getkey operation 2008-11-09 19:48:06 +00:00
Paul LeoNerd Evans
09edf2377f Driver getkey() can return TERMKEY_RES_NONE which attempts getkey_simple() afterwards 2008-11-09 19:45:43 +00:00
Paul LeoNerd Evans
de74ffa67f getkey_simple() should return TERMKEY_RES_NONE if no bytes available; as a safety check 2008-11-09 19:29:30 +00:00
Paul LeoNerd Evans
0483eacb68 Print name of driver on startup if debugging 2008-11-08 17:56:57 +00:00
Paul LeoNerd Evans
d50d772ca5 Drivers have names 2008-11-08 17:56:44 +00:00
Paul LeoNerd Evans
e880602944 Pass driver_info as explicit void* parameter into driver methods 2008-11-08 17:47:57 +00:00
Paul LeoNerd Evans
9969e197ba Pass 'csi' value to static helper functions in driver-csi 2008-11-08 17:43:51 +00:00
Paul LeoNerd Evans
9cd46fcea3 Renamed termkey_{set,get}waittime() to termkey_{set,get}_waittime() to be more consistent 2008-11-06 20:29:50 +00:00
Paul LeoNerd Evans
023943c738 Don't document the termkey_free() function as it doesn't restore termios; document termkey_destroy() instead 2008-11-06 19:50:53 +00:00
Paul LeoNerd Evans
9aaf16888c Include demo.c and demo-async.c in the manpages under an EXAMPLE section 2008-11-06 19:40:28 +00:00
Paul LeoNerd Evans
9df6f621b9 Added asynchronous demo which uses poll() 2008-11-06 19:33:07 +00:00
Paul LeoNerd Evans
c2496a38be Also document termkey_advisereadable() 2008-11-06 00:56:01 +00:00
Paul LeoNerd Evans
388782b89b Added manpages for (most of) the external API functions 2008-11-06 00:02:41 +00:00
Paul LeoNerd Evans
6adbb40f6e Neater bitfield constants in .h file; added docs of TERMKEY_FORMAT_* constants 2008-11-03 21:23:59 +00:00
Paul LeoNerd Evans
c0f839c40d Make sure all .c->.o builds depend on all .h files 2008-11-03 21:22:47 +00:00
Paul LeoNerd Evans
a2f3d807f8 Better handling of incomplete UTF-8 sequences - just emit a UTF8_INVALID if waittime is up 2008-11-03 21:10:14 +00:00
Paul LeoNerd Evans
76147e92d4 Better handling in termkey_waitkey() of EOF conditions 2008-11-03 21:08:34 +00:00