Paul LeoNerd Evans
|
2ed8bae4f6
|
Don't try to write() the start/stop string if the fd is a pipe, because this will never work
|
2012-01-20 20:01:11 +00:00 |
Paul LeoNerd Evans
|
62b8773108
|
Fix another printf() %c char
|
2012-01-20 18:13:37 +00:00 |
Paul LeoNerd Evans
|
229792aad7
|
Handle realloc() failures when registering key names
|
2012-01-20 18:03:08 +00:00 |
Paul LeoNerd Evans
|
08b7eaa5b7
|
Since CSI key info is the same for every CSI driver, just store one static copy of it rather than one for every termkey instance - simplifies construct-time allocation
|
2012-01-20 18:01:19 +00:00 |
Paul LeoNerd Evans
|
4f5d529760
|
fprintf() %c wants char, not unsigned char
|
2012-01-20 17:03:54 +00:00 |
Paul LeoNerd Evans
|
541a4328db
|
sscanf() %zn ought to take a ssize_t *
|
2012-01-20 17:01:38 +00:00 |
Paul LeoNerd Evans
|
052738b8f4
|
Allow {start,stop}_driver to fail, abort constructor, have driver-ti try to write the entire start/stop string or error out on -1
|
2012-01-20 17:00:09 +00:00 |
Paul LeoNerd Evans
|
8d2fa34a52
|
(void)-cast calls to write() in driver-ti start/stop since we don't -really- care if they fail, there's not much we can do about it
|
2012-01-20 16:44:33 +00:00 |
Paul LeoNerd Evans
|
6bc3f8a378
|
\e string escape is not portable; use \033
|
2012-01-18 16:36:10 +00:00 |
Paul LeoNerd Evans
|
3981920938
|
Delete trailing comma in enum{} to keep C++ happy
|
2012-01-18 16:29:29 +00:00 |
Paul LeoNerd Evans
|
242da047a0
|
Use only C89 commenting style in .h file, in case of C89 compilers or similar that want to link
|
2012-01-18 15:16:13 +00:00 |
Paul LeoNerd Evans
|
0486ca8212
|
More minor docs updates
|
2012-01-18 14:31:25 +00:00 |
Paul LeoNerd Evans
|
14d6bb736c
|
Use the 'also' list for aliased pages
|
2012-01-18 14:27:18 +00:00 |
Paul LeoNerd Evans
|
a4f9cc6d7f
|
Minor wording fixes to termkey_push_bytes.3 manpage
|
2012-01-18 14:16:45 +00:00 |
Paul LeoNerd Evans
|
ec82fbf29b
|
Fix 'htmldocs' Makefile target
|
2012-01-18 14:11:05 +00:00 |
Paul LeoNerd Evans
|
6d6afe788c
|
Allow passing fd = -1 to constructor to make an instance not associated with an fd; must use push_bytes to provide it input
|
2012-01-18 14:03:39 +00:00 |
Paul LeoNerd Evans
|
82ad14175c
|
Added termkey_push_bytes(), a new API for providing input bytes
|
2012-01-18 13:39:50 +00:00 |
Paul LeoNerd Evans
|
082b49f0f8
|
Move the growing collection of manpages into their own man/ subdirectory
|
2012-01-18 12:01:38 +00:00 |
Paul LeoNerd Evans
|
d64ba87eda
|
Ensure that termkey_advisereadable() just fails with errno=ENOMEM rather than trying to read() zero bytes
|
2012-01-18 10:36:50 +00:00 |
Paul LeoNerd Evans
|
3474a45b14
|
Avoid push_bytes() entirely by read()ing directly into tk->buffer
|
2012-01-18 10:07:36 +00:00 |
Paul LeoNerd Evans
|
9534330003
|
Provide new API function to determine how much buffer space remains in the instance
|
2012-01-18 10:04:15 +00:00 |
Paul LeoNerd Evans
|
37d8f18ab5
|
Remove termkey_pushinput() from external API; declare static, rename it
|
2012-01-18 09:36:36 +00:00 |
Paul LeoNerd Evans
|
3e520f30e0
|
Bump VERSION to 0.11
|
2011-11-30 17:53:38 +00:00 |
Paul LeoNerd Evans
|
34b5d1ec9e
|
Minor manpage link fixups
|
2011-09-29 20:18:49 +01:00 |
Paul LeoNerd Evans
|
e768f02219
|
Optionally support unibilium for reading terminfo instead of curses
|
2011-09-24 00:04:01 +01:00 |
Paul LeoNerd Evans
|
7d623be041
|
Abstract out ld flags in Makefile
|
2011-09-23 23:50:13 +01:00 |
Paul LeoNerd Evans
|
d8f6551972
|
Neaten logic by loading terminfo strings in a separate function from the constructor
|
2011-09-23 23:40:54 +01:00 |
Paul LeoNerd Evans
|
0a65f60df1
|
Bumped VERSION to 0.10
|
2011-09-06 23:02:57 +01:00 |
Paul LeoNerd Evans
|
8f32ac525f
|
Canonicalise (a local copy of) the key structures given to termkey_keycmp() before comparing them
|
2011-09-06 22:49:05 +01:00 |
Paul LeoNerd Evans
|
3008ed29d1
|
A few more DEBUG fprintf(stderr)s at construction time
|
2011-09-05 14:14:09 +01:00 |
Paul LeoNerd Evans
|
3fb6f398e9
|
Handle TERMKEY_RES_ERROR in (debugging mode) res2str()
|
2011-09-05 13:58:15 +01:00 |
Paul LeoNerd Evans
|
3a4a1b4ef0
|
Use $(VERSION) to set DISTDIR in Makefile, so make VERSION=... dist overrides its name
|
2011-09-05 13:52:58 +01:00 |
Paul LeoNerd Evans
|
8793934328
|
Allow a flag to convert ASCII DEL into Backspace
|
2011-08-28 17:57:57 +01:00 |
Paul LeoNerd Evans
|
2638499648
|
Move canonicalisation flags into their own bitfield with their own accessor and named constants
|
2011-08-28 17:50:18 +01:00 |
Paul LeoNerd Evans
|
7133517883
|
Remember to symlink termkey_get_flags(3) manpage at install time
|
2011-08-28 17:47:11 +01:00 |
Paul LeoNerd Evans
|
46eefda073
|
Provide an explicit termkey_canonicalise() function; canonicalise Space/SP in both directions
|
2011-08-27 19:59:02 +01:00 |
Paul LeoNerd Evans
|
83ca948d78
|
Deleted legacy type name typedefs and declaration of termkey_snprint_key()
|
2011-08-27 19:32:39 +01:00 |
Paul LeoNerd Evans
|
5fc3aff57a
|
Added a unit test to assert the correct behaviour of FLAG_SPACESYMBOL from waitkey
|
2011-08-27 19:29:34 +01:00 |
Paul LeoNerd Evans
|
23fefe409a
|
<poll.h> on Solaris needs _XOPEN_SOURCE 600 to ensure it gets sigset_t - Petr Pavlu
|
2011-08-25 22:52:06 +01:00 |
Paul LeoNerd Evans
|
427a98693e
|
optarg and friends want _XOPEN_SOURCE 600, and <unistd.h> - Petr Pavlu
|
2011-08-25 22:49:51 +01:00 |
Paul LeoNerd Evans
|
447a3e7ab9
|
strdup() needs 'define _XOPEN_SOURCE 600 - Petr Pavlu
|
2011-08-25 22:49:17 +01:00 |
Paul LeoNerd Evans
|
8efef8e088
|
Ensure c_cc[VMIN] and c_cc[VTIME] are properly defined, because Solaris seems not to set them - Petr Pavlu
|
2011-08-25 22:41:43 +01:00 |
Paul LeoNerd Evans
|
19122bb195
|
Link against -lcurses not -lncurses, because these two might be different on some OSes (e.g. Solaris) - Petr Pavlu
|
2011-08-25 22:39:06 +01:00 |
Paul LeoNerd Evans
|
0bafe17082
|
Bumped VERSION to 0.9
|
2011-08-25 19:13:21 +01:00 |
Paul LeoNerd Evans
|
1b8234e342
|
Provide a flag to return RES_ERROR even on signal (EINTR); without it, retry the operation
|
2011-08-25 10:48:41 +01:00 |
Paul LeoNerd Evans
|
7a2b79a640
|
Provide a new result value, TERMKEY_RES_ERROR to indicate an IO error - preserve errno
|
2011-08-18 11:20:41 +01:00 |
Paul LeoNerd Evans
|
01e5795098
|
Include a LICENSE file
|
2011-07-01 17:05:35 +01:00 |
Paul LeoNerd Evans
|
0686e9a51c
|
Put LIBDIR and INCDIR directly in termkey.pc; don't indirect via PREFIX as it might be incorrect
|
2011-07-01 17:04:12 +01:00 |
Paul LeoNerd Evans
|
b30f946117
|
Mouse position coordinates are unsigned
|
2011-06-16 17:07:47 +01:00 |
Paul LeoNerd Evans
|
6e99f8ab85
|
Ignore VDSUSP as a signal-sending key too, if platform defines it
|
2011-05-28 11:55:46 +01:00 |