Paul LeoNerd Evans
|
7909067ac0
|
Be a little more lenient in locale env.var. testing for UTF-8ness
|
2014-03-05 01:23:16 +00:00 |
|
Paul LeoNerd Evans
|
8aa5b7acb5
|
Unit tests should use .code.codepoint/.sym instead of not .code.number when appropriate
|
2014-03-05 01:11:45 +00:00 |
|
Paul LeoNerd Evans
|
97e0e9cde2
|
Try tinfo before ncursesw (partially from https://github.com/o11c/libtermkey/commit/c2dd8f247a2ef9bce5ce26bfb289369643f58e09) [thanks o11c]
|
2014-03-04 14:04:11 +00:00 |
|
Paul LeoNerd Evans
|
d775d2a5ae
|
Make header compatible with C++ (from https://github.com/o11c/libtermkey/commit/ddd7b0c5aa10bb62dc2f7673414e9a00f11ff447) [thanks o11c]
|
2014-03-04 13:59:53 +00:00 |
|
Paul LeoNerd Evans
|
a91f511f27
|
Look for .utf8 in locale variables as well as .UTF-8
|
2014-01-23 23:57:19 +00:00 |
|
Paul LeoNerd Evans
|
ff8d714142
|
Print UTF-8/RAW mode on startup; print 'Key ' before normal keys to debug UTF-8 parse errors
|
2014-01-23 23:56:41 +00:00 |
|
Paul LeoNerd Evans
|
ab4c1c3d3e
|
Bump VERSION to 0.17
|
2014-01-06 18:02:48 +00:00 |
|
Paul LeoNerd Evans
|
11e6cf7497
|
Better abstraction of C compiler by using the $(CC) Make variable
|
2014-01-06 17:55:58 +00:00 |
|
Paul LeoNerd Evans
|
4fd397af2c
|
Invoke libtool cc instead of libtool gcc, for those platforms now using clang (FreeBSD 10)
|
2014-01-05 19:48:42 +00:00 |
|
Paul LeoNerd Evans
|
d97617963d
|
Look for \.UTF-8 only in the first env. var found from LANG, LC_MESSAGES, LC_ALL
|
2014-01-05 18:23:46 +00:00 |
|
Paul LeoNerd Evans
|
8bed1fdbf0
|
Add TERMKEY_FORMAT_URWID shortcut [thanks Romain Chossart]
|
2013-08-26 18:51:29 +01:00 |
|
Paul LeoNerd Evans
|
e3d0baa846
|
Bugfix to snprint_cameltospaces() when given a short buffer [thanks Romain Chossart]
|
2013-08-26 18:46:01 +01:00 |
|
Paul LeoNerd Evans
|
e9a1302e4c
|
Delete trailing whitespace in code
|
2013-08-26 02:35:40 +01:00 |
|
Paul LeoNerd Evans
|
f4770f2d8e
|
Docs fix - fullstop at end of sentence
|
2013-08-26 02:33:49 +01:00 |
|
Paul LeoNerd Evans
|
d58faf55b4
|
Fix comment about 'n' in strpncmp_camel()
|
2013-08-26 02:30:43 +01:00 |
|
Paul LeoNerd Evans
|
a86f23588b
|
Minor doc update - strpkey expects strings, doesn't use them
|
2013-08-26 02:27:24 +01:00 |
|
Paul LeoNerd Evans
|
8e503baed8
|
Added TERMKEY_FORMAT_LOWERSPACE for strpkey() also
|
2013-08-26 02:23:19 +01:00 |
|
Paul LeoNerd Evans
|
3b2d8eb813
|
Added TERMKEY_FORMAT_LOWERSPACE for strfkey() only
|
2013-08-26 01:32:35 +01:00 |
|
Paul LeoNerd Evans
|
a36648e172
|
Added TERMKEY_FORMAT_LOWERMOD
|
2013-08-26 01:14:35 +01:00 |
|
Paul LeoNerd Evans
|
24abb0c59e
|
Added TERMKEY_FORMAT_SPACEMOD
|
2013-08-26 00:56:07 +01:00 |
|
Paul LeoNerd Evans
|
89ac8b058c
|
Make some more things 'const' that should be
|
2013-07-15 01:03:35 +01:00 |
|
Paul LeoNerd Evans
|
b4067d8afb
|
Updated shared taplib
|
2013-01-04 17:39:41 +00:00 |
|
Paul LeoNerd Evans
|
5190963f1b
|
Make sure to implement newer event types in debug function
|
2012-12-06 02:09:03 +00:00 |
|
Paul LeoNerd Evans
|
58850dbac2
|
Bump VERSION to 0.16
|
2012-11-30 17:10:07 +00:00 |
|
Paul LeoNerd Evans
|
1cdeff872f
|
Further documentation clarifications on the 'code' field of a key event
|
2012-11-30 17:06:14 +00:00 |
|
Paul LeoNerd Evans
|
0be6f18019
|
Handle ANSI and DEC mode report CSIs
|
2012-11-30 16:34:47 +00:00 |
|
Paul LeoNerd Evans
|
c00f6cd3c6
|
Only recognise DECCPR as a position report, so it is distinct from F3
|
2012-11-30 16:12:26 +00:00 |
|
Paul LeoNerd Evans
|
efc5b7e088
|
Try to handle position reports -and- F3 concurrently.. somehow.. argh
|
2012-11-30 15:36:06 +00:00 |
|
Paul LeoNerd Evans
|
8152f9e018
|
Bugfix to argless CSIs; present 0 arguments, not 1 whose value is -1
|
2012-11-30 15:31:04 +00:00 |
|
Paul LeoNerd Evans
|
d08c0844a4
|
Slightly more generic custom CSI handling - name functions just after the letter they parse, so we can multiplex on 'cmd' or other things
|
2012-11-30 15:23:41 +00:00 |
|
Paul LeoNerd Evans
|
fdb44d9796
|
Moved the other termkey_interpret_*() functions into driver-csi.c where they arguably belong
|
2012-11-30 15:01:20 +00:00 |
|
Paul LeoNerd Evans
|
b87ca771bf
|
Make the generated termkey.h file readonly
|
2012-11-30 15:00:21 +00:00 |
|
Paul LeoNerd Evans
|
d5c3d9c8fe
|
Also interpret an intermediate CSI byte if present
|
2012-11-30 14:43:00 +00:00 |
|
Paul LeoNerd Evans
|
26912d989b
|
Unit test that CSI initial command also works
|
2012-11-30 14:37:28 +00:00 |
|
Paul LeoNerd Evans
|
7b3dc4be71
|
Return a real key type for unrecognised CSI sequences; allow accessing them by termkey_interpret_csi()
|
2012-11-30 14:35:23 +00:00 |
|
Paul LeoNerd Evans
|
d241d6216a
|
Split out the actual CSI parser into its own function, separate from peekkey_csi
|
2012-11-30 13:52:56 +00:00 |
|
Paul LeoNerd Evans
|
29298167d1
|
Install library using libtool install rather than libtool cp --remove-destination because the latter is non-portable
|
2012-05-10 16:00:01 +01:00 |
|
Paul LeoNerd Evans
|
1c816b753d
|
Make sure to 'make clean' includes demo-glib
|
2012-04-25 19:45:52 +01:00 |
|
Paul LeoNerd Evans
|
06fd040119
|
Bugfix to POSITION reporting - swap line<=>col
|
2012-04-25 18:34:47 +01:00 |
|
Paul LeoNerd Evans
|
ca4d98b0f7
|
Have demo.c request cursor position on '?'; print position reports and mouse nicer
|
2012-04-25 18:32:18 +01:00 |
|
Paul LeoNerd Evans
|
af3c0bf378
|
Many small manpage markup fixes
|
2012-04-25 00:59:13 +01:00 |
|
Paul LeoNerd Evans
|
cd57c39191
|
Bump VERSION to 0.15
|
2012-04-25 00:17:20 +01:00 |
|
Paul LeoNerd Evans
|
f06cd325a2
|
Ensure that key->type field is properly set for all mouse encoding protocols
|
2012-04-24 17:42:01 +01:00 |
|
Paul LeoNerd Evans
|
c944b95696
|
Documentation on new TERMKEY_TYPE_POSITION events
|
2012-04-24 17:34:12 +01:00 |
|
Paul LeoNerd Evans
|
f5cbf9eb57
|
Also handle CSI R; position report replies to CSI 6n
|
2012-04-24 17:27:48 +01:00 |
|
Paul LeoNerd Evans
|
6645ee9718
|
Neater CSI driver; dispatch command handlers from an array
|
2012-04-24 16:33:13 +01:00 |
|
Paul LeoNerd Evans
|
a6aa8c433b
|
Always load the CSI driver because it contains cross-terminal mouse and CSI u handling
|
2012-04-24 15:58:37 +01:00 |
|
Paul LeoNerd Evans
|
f33513282a
|
Created abstract accessors for getting/setting key event line/col counts
|
2012-04-24 15:25:17 +01:00 |
|
Paul LeoNerd Evans
|
3b3a7c2f45
|
Added some notes about what mouse protocols are supported
|
2012-04-12 19:21:31 +01:00 |
|
Paul LeoNerd Evans
|
72d9819a93
|
Also pass 'index' argument to man-to-html.pl
|
2012-04-12 19:21:03 +01:00 |
|
Paul LeoNerd Evans
|
fedda1bdd4
|
Note the limited range of mouse line/column number
|
2012-04-12 18:05:05 +01:00 |
|
Paul LeoNerd Evans
|
7d6a41eaba
|
termkey_interpret_mouse takes const key, does not set modifiers, as that's already done
|
2012-04-12 18:03:07 +01:00 |
|
Paul LeoNerd Evans
|
8cf0858276
|
Use spare bits in code.mouse[3] to store bigger mouse positions
|
2012-04-12 17:02:45 +01:00 |
|
Paul LeoNerd Evans
|
84378bcba8
|
Allow setting mouse encoding protocol from demo
|
2012-04-12 01:08:12 +01:00 |
|
Paul LeoNerd Evans
|
60b4bfaf72
|
Recognise SGR-style mouse encoding
|
2012-04-12 00:19:10 +01:00 |
|
Paul LeoNerd Evans
|
ff99b29b96
|
Recognise rxvt-style mouse encoding
|
2012-04-12 00:12:19 +01:00 |
|
Paul LeoNerd Evans
|
789a5a3c9d
|
Extract modifiers for mouse events at peekkey time
|
2012-04-05 18:54:30 +01:00 |
|
Paul LeoNerd Evans
|
5f942e9e3e
|
Added a unit test for mouse report events
|
2012-04-05 17:57:13 +01:00 |
|
Paul LeoNerd Evans
|
a29d9f0f3c
|
Created a demo to show libtermkey in a GLib-based program
|
2012-04-01 20:04:01 +01:00 |
|
Paul LeoNerd Evans
|
6070de26f1
|
Fix manpage bug in termkey_start.3
|
2012-03-26 19:07:56 +01:00 |
|
Paul LeoNerd Evans
|
36ab3ba8ea
|
Bump VERSION to 0.14
|
2012-03-26 18:56:57 +01:00 |
|
Paul LeoNerd Evans
|
4c9a4cab6b
|
Need to ship man/also in distribution tarball
|
2012-03-26 18:55:59 +01:00 |
|
Paul LeoNerd Evans
|
a3fecd8767
|
Also pack the unit tests into the dist tarball, and allow building them in-target
|
2012-03-26 18:49:45 +01:00 |
|
Paul LeoNerd Evans
|
85d44442e9
|
Avoid the underscore in struct _TermKey
|
2012-03-26 18:30:04 +01:00 |
|
Paul LeoNerd Evans
|
d3e56776b7
|
Consistency updates to Makefile to make it more like libvterm's
|
2012-03-12 19:47:30 +00:00 |
|
Paul LeoNerd Evans
|
775806d32b
|
Added documentation for termkey_{start,stop}, termkey_is_started
|
2012-03-08 21:58:27 +00:00 |
|
Paul LeoNerd Evans
|
24fd4f668d
|
Use man/also for manpage aliasing rather than duplicating the list (incorrectly) in the Makefile
|
2012-03-08 21:51:42 +00:00 |
|
Paul LeoNerd Evans
|
8237f3a1bc
|
Have getkey/waitkey return RES_ERROR/EINVAL if stopped
|
2012-03-08 21:31:16 +00:00 |
|
Paul LeoNerd Evans
|
cb00476f09
|
Added a termkey_is_started() accessor; unit test it a bit
|
2012-03-08 21:24:39 +00:00 |
|
Paul LeoNerd Evans
|
43a83e6e96
|
Move the terminal start/stop code into their own functions, exported (undocumented for now)
|
2012-03-08 21:15:25 +00:00 |
|
Paul LeoNerd Evans
|
f7e4986849
|
Also link to termkey_{get,set}_buffer_size(3) from termkey(7)
|
2012-03-08 14:35:47 +00:00 |
|
Paul LeoNerd Evans
|
8e45515710
|
Bump VERSION to 0.13
|
2012-03-08 13:54:44 +00:00 |
|
Paul LeoNerd Evans
|
80fd6a2346
|
Optionally build against libncursesw if unibilium isn't present, before falling back on plain libncurses
|
2012-03-08 12:05:27 +00:00 |
|
Paul LeoNerd Evans
|
5d44c08ecf
|
Added manpage for termkey_{get,set}_buffer_size
|
2012-02-13 23:56:59 +00:00 |
|
Paul LeoNerd Evans
|
e252c497ae
|
Added (undocumented) termkey_set_buffer_size()
|
2012-02-13 23:40:42 +00:00 |
|
Paul LeoNerd Evans
|
5779ec3cd1
|
Added (undocumented) termkey_get_buffer_size()
|
2012-02-13 21:57:33 +00:00 |
|
Paul LeoNerd Evans
|
ee12c698da
|
Document the errors set by termkey_new(), use errno rather than fprintf() to stderr
|
2012-01-29 16:13:38 +00:00 |
|
Paul LeoNerd Evans
|
9b20346dc3
|
Symlink manpage for termkey_new_abstract
|
2012-01-26 15:27:42 +00:00 |
|
Paul LeoNerd Evans
|
50327ce6dc
|
Use termkey_new_abstract() in unit tests
|
2012-01-26 12:55:34 +00:00 |
|
Paul LeoNerd Evans
|
ea2d3073ac
|
Created termkey_new_abstract()
|
2012-01-26 12:55:16 +00:00 |
|
Paul LeoNerd Evans
|
63f37cecd6
|
Move initialisation logic out of termkey_new into a static function
|
2012-01-26 10:13:03 +00:00 |
|
Paul LeoNerd Evans
|
8b46e65aa3
|
Use termkey_set_flags() in constructor rather than copypasted logic
|
2012-01-26 10:07:23 +00:00 |
|
Paul LeoNerd Evans
|
f9fe338e3e
|
Split termkey_new() into alloc and initialise phases
|
2012-01-26 10:06:05 +00:00 |
|
Paul LeoNerd Evans
|
4cf544f26c
|
Also mark termkey.c's modnames as static
|
2012-01-22 18:56:08 +00:00 |
|
Paul LeoNerd Evans
|
2a82ab2f1b
|
Mark new driver-csi internal variables as static so they don't result in linkable symbols
|
2012-01-22 18:54:17 +00:00 |
|
Paul LeoNerd Evans
|
429ecf0f1a
|
Fix 'make dist' target for new man/ subdir
|
2012-01-22 15:52:19 +00:00 |
|
Paul LeoNerd Evans
|
6b256e961e
|
Bump VERSION to 0.12
|
2012-01-22 15:47:21 +00:00 |
|
Paul LeoNerd Evans
|
56b2612908
|
Also mkdir MAN7DIR at install time
|
2012-01-22 15:46:55 +00:00 |
|
Paul LeoNerd Evans
|
948e48d56a
|
Various other minor fixes to manpages
|
2012-01-21 23:26:47 +00:00 |
|
Paul LeoNerd Evans
|
cfb0480c1a
|
Ensure that 'make htmldocs' rebuilds built manpages
|
2012-01-21 01:06:48 +00:00 |
|
Paul LeoNerd Evans
|
fa36d8a97b
|
Fix Makefile for manpage generation of new man/termkey.7
|
2012-01-21 01:06:01 +00:00 |
|
Paul LeoNerd Evans
|
107587744c
|
Removed note about termkey_keycmp() not canonicalising key structures, since it does in fact do exactly that
|
2012-01-21 00:56:08 +00:00 |
|
Paul LeoNerd Evans
|
61e304c6b4
|
Fix some typoes in termkey_set_canonflags.3
|
2012-01-21 00:53:35 +00:00 |
|
Paul LeoNerd Evans
|
dc5ce23316
|
Link to termkey(7) from other manpages, delete some of the duplicated sections
|
2012-01-21 00:52:13 +00:00 |
|
Paul LeoNerd Evans
|
c3de4f7801
|
Initial stab at termkey(7) manpage
|
2012-01-21 00:36:00 +00:00 |
|
Paul LeoNerd Evans
|
7ec2107f47
|
Note in termkey_new(3) that the caller has to init. the terminal in abstract or pipe cases
|
2012-01-20 20:07:59 +00:00 |
|
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 |
|