Commit Graph

818 Commits

Author SHA1 Message Date
Christopher Jeffrey c73fee2f7d rename unicode regexes again. 2015-04-26 04:34:32 -07:00
Christopher Jeffrey dafe95d900 rename unicode regexes. 2015-04-26 04:29:52 -07:00
Christopher Jeffrey ccca1092e7 add regex for all wide chars. 2015-04-26 04:23:32 -07:00
Christopher Jeffrey 758eef133c stop double-width chars from breaking words when wrapped. 2015-04-26 04:16:47 -07:00
Christopher Jeffrey 3d8dfd0db4 screen.screenshot 2015-04-26 02:34:17 -07:00
Christopher Jeffrey 963cfbb9f8 fix labels for non-scrollable elements. 2015-04-25 19:12:47 -07:00
Christopher Jeffrey cbed0b449a GetConsoleCP fixes. see #130. 2015-04-25 16:59:31 -07:00
Christopher Jeffrey f2d809d57b fix chcp usage: exe->com. fix output parsing. see #130. 2015-04-25 15:19:29 -07:00
Christopher Jeffrey 0461a35219 fix error in tput.js. 2015-04-25 12:39:44 -07:00
Christopher Jeffrey 5f993a19d9 check for unicode on windows using GetConsoleCP. see #130. 2015-04-25 12:32:32 -07:00
Christopher Jeffrey 38cc1a3ea3 more ritems fixes. 2015-04-24 11:39:40 -07:00
Christopher Jeffrey 096869d82e fix ritems handling. debug. 2015-04-24 01:40:18 -07:00
Christopher Jeffrey bcb248b768 minor. 2015-04-23 22:25:09 -07:00
Christopher Jeffrey fdf181b8e0 return tagless values for list items. 2015-04-22 16:58:33 -07:00
Christopher Jeffrey 2e5da439b0 Revert "ritems with no tags."
This reverts commit 3ba251cc2f.
2015-04-22 16:54:15 -07:00
Christopher Jeffrey 3ba251cc2f ritems with no tags. 2015-04-22 16:53:46 -07:00
Christopher Jeffrey 01b2d0b265 fuzzyFind. 2015-04-22 13:32:23 -07:00
Christopher Jeffrey 861b5ef431 screenshot method cleanup. 2015-04-21 13:29:02 -07:00
Christopher Jeffrey 5f1d320112 add screenshot method to widget.js. 2015-04-21 05:46:21 -07:00
Christopher Jeffrey a0daecc8bb fuzzyFind improvement. 2015-04-19 19:50:53 -07:00
Christopher Jeffrey 1810f2f914 drop tty check for now. see yaronn/blessed-contrib#45. 2015-04-19 06:01:09 -07:00
Christopher Jeffrey 564592891c fuzzyFind callback convention. 2015-04-18 22:25:13 -07:00
Christopher Jeffrey 2c00450029 allow regexes for fuzzyfind. 2015-04-18 22:22:32 -07:00
Christopher Jeffrey 2666a008bf fix fuzzyFind. 2015-04-18 22:18:42 -07:00
Christopher Jeffrey 6c195dd8a0 fix label scroll. improve search. add features to ansi-viewer. 2015-04-18 22:15:11 -07:00
Christopher Jeffrey 3ff31cf0c1 minor fixes. 2015-04-18 20:20:25 -07:00
Christopher Jeffrey 82928702d3 surrogate. one flew over the 杜鹃's nest. 2015-04-17 21:17:11 -07:00
Christopher Jeffrey 347ef0c010 minor. 2015-04-16 17:45:46 -07:00
Christopher Jeffrey 7b31f45468 fix textarea for full unicode. 2015-04-16 16:16:55 -07:00
Christopher Jeffrey 5dacfbad97 stop using screen.cols. 2015-04-16 14:38:36 -07:00
Christopher Jeffrey 46a76abbdd add invertSelected option to List. fixes #124. 2015-04-16 13:20:49 -07:00
Christopher Jeffrey 489aa2dbe3 clean up Element.render surrogate handling. 2015-04-16 13:11:56 -07:00
Christopher Jeffrey 0acae98979 fix disappearing double-width chars on scroll up. 2015-04-16 12:31:07 -07:00
Christopher Jeffrey d520c94c3b handle unicode combining characters properly. 2015-04-16 11:33:08 -07:00
Christopher Jeffrey 62cec50eb0 remove unicode-old. 2015-04-15 22:56:25 -07:00
Christopher Jeffrey d12c51fc7b even more unicode. 2015-04-15 22:55:42 -07:00
Christopher Jeffrey b043571fbe more unicode. 2015-04-15 22:51:47 -07:00
Christopher Jeffrey 1c76d4fb55 add back unicode-3/unicode-old for now. 2015-04-15 22:49:12 -07:00
Christopher Jeffrey e714c4f930 cleanup unicode. 2015-04-15 22:44:47 -07:00
Christopher Jeffrey 73d158cf02 refactoring unicode. 2015-04-15 22:36:48 -07:00
Christopher Jeffrey 70c03a7f0b minor. 2015-04-15 21:49:28 -07:00
Christopher Jeffrey 62b1003a05 handle 0-width surrogates. 2015-04-15 10:49:43 -07:00
Christopher Jeffrey c5e5ed86f6 fix surrogate crash. 2015-04-15 10:38:26 -07:00
Christopher Jeffrey 4ca28d0860 use emitKeys() from node v0.12.2. see #91 #92 slap-editor/slap#74 slap-editor/slap#96. 2015-04-15 10:30:09 -07:00
Christopher Jeffrey 85be64273f clean up old surrogates code. 2015-04-15 10:10:19 -07:00
Christopher Jeffrey ea4e142757 add support for surrogate pairs. fixes #123. see #4 and slap-editor/slap#107. 2015-04-15 10:05:34 -07:00
Christopher Jeffrey 1b1775a4c2 add doubleWidthPerfect option. 2015-04-15 00:38:18 -07:00
Christopher Jeffrey 3f73e08dd7 Revert "move wideChar handling to _wrapContent."
This reverts commit 307b757e1f.
2015-04-14 15:44:26 -07:00
Christopher Jeffrey 307b757e1f move wideChar handling to _wrapContent. 2015-04-14 15:43:37 -07:00
Christopher Jeffrey ecf9e38f55 double width character handling. see slap-editor/slap#107. 2015-04-14 15:35:16 -07:00
Christopher Jeffrey 46b493d02e minor blend changes. 2015-04-10 13:01:00 -07:00
Christopher Jeffrey 95364dd229 better dragging. 2015-04-08 01:24:45 -07:00
Christopher Jeffrey 78e663a734 transparency again. 2015-04-07 23:19:01 -07:00
Christopher Jeffrey b950e34459 Revert "add style.transparent option."
This reverts commit 8eaf7bab37.
2015-04-06 21:12:17 -07:00
Christopher Jeffrey 8eaf7bab37 add style.transparent option. 2015-04-06 21:05:15 -07:00
Christopher Jeffrey 49e4ec976b fix darken. 2015-04-06 20:49:07 -07:00
Christopher Jeffrey 5958b55bd0 remove unnecessary angles. 2015-04-06 19:40:16 -07:00
Christopher Jeffrey a0d610e174 use unicode escapes for ACS. 2015-04-06 19:39:05 -07:00
Christopher Jeffrey 5f3d7f10b0 clean up border and table code. 2015-04-06 19:31:04 -07:00
Christopher Jeffrey 8a62f5e633 add "shadow" option to elements. see widget-shadow.js. 2015-04-06 19:26:14 -07:00
Christopher Jeffrey 67bdab7e4f improve border docking. selective border drawing. 2015-04-06 18:40:33 -07:00
Christopher Jeffrey 1c048e6061 break on border loops when possible. 2015-04-04 07:12:01 -07:00
Christopher Jeffrey 9105c80eb7 improve w3m search. do not search for w3mimgdisplay in example. fixes #119. 2015-04-04 06:56:01 -07:00
Christopher Jeffrey f6b5b8811a allow docking borders to obscured by screen edges. 2015-04-04 06:40:36 -07:00
Christopher Jeffrey 15d09e7ce1 Revert "allow explicit height for Table."
This reverts commit 85f8d4f4b7.
2015-04-04 03:04:11 -07:00
Christopher Jeffrey 85f8d4f4b7 allow explicit height for Table. 2015-04-04 03:03:24 -07:00
Christopher Jeffrey d13774814d use application keys on init. 2015-04-04 02:24:19 -07:00
Christopher Jeffrey bb4a8c82aa debug log. 2015-04-04 02:23:43 -07:00
Christopher Jeffrey 7afb791950 minor refactor of el.sattr. 2015-04-04 00:26:10 -07:00
Christopher Jeffrey 861ec57327 fix scroll on focus by taking into account border/itop. 2015-04-04 00:08:10 -07:00
Christopher Jeffrey 2a4a38a4f1 represent all ACS characters in unicode escapes. 2015-04-03 23:04:27 -07:00
Christopher Jeffrey 2c6b34a86b add percentage offsets. see #118. 2015-04-03 22:55:56 -07:00
Christopher Jeffrey 5aeeed7683 add dockBorders option. see #118. 2015-04-03 20:50:22 -07:00
Christopher Jeffrey bcd65ad420 minor table change. 2015-04-03 19:03:58 -07:00
Christopher Jeffrey f34cf1bdfe table drawing and options. no tags for table style. readme. see #117. 2015-04-02 17:59:04 -07:00
Christopher Jeffrey c8007331b0 helper. 2015-04-02 07:24:25 -07:00
Christopher Jeffrey 9eb2005e36 expose some more helpers. 2015-04-02 06:40:41 -07:00
Christopher Jeffrey 6b3610450c fix error on table screen overlap. 2015-04-02 06:21:36 -07:00
Christopher Jeffrey cf3eb09f9f improve table resize event listeners. 2015-04-02 06:12:52 -07:00
Christopher Jeffrey b9a94f63ce fix valign option. 2015-04-02 05:10:23 -07:00
Christopher Jeffrey 2640838f33 allow custom width for tables. fixes #117. 2015-04-02 05:10:23 -07:00
Brian White 36fed3c12b add /lib/terminfo to terminfo dir list
At least on Ubuntu, `/lib/terminfo` contains a smaller subset of terminfo files and is worth using in case none of the other directories don't exist.
2015-04-01 23:43:43 -04:00
Christopher Jeffrey 897f8a2eca fix linux console clear. better debug window to test/widget.js. complete widget docs. 2015-04-01 19:46:08 -07:00
Christopher Jeffrey b34c90ee2b minor. 2015-03-31 06:12:14 -07:00
Christopher Jeffrey 8901c29bd5 minor style change. 2015-03-31 05:50:28 -07:00
Christopher Jeffrey 903886f083 clean up comments pertaining to position, autoPadding, shrinking. 2015-03-31 05:16:01 -07:00
Christopher Jeffrey 4419794991 enable autoPadding by default. see #114. 2015-03-31 05:11:50 -07:00
Christopher Jeffrey 51c3d88a69 textLength improvement. 2015-03-31 02:55:20 -07:00
Christopher Jeffrey 7a3525be77 remove duplicate functions. 2015-03-31 02:49:29 -07:00
Christopher Jeffrey 064a4e9086 add debug window and draggable option for all elements. 2015-03-31 02:45:01 -07:00
Christopher Jeffrey a266a869b7 improve Log element. 2015-03-31 01:31:43 -07:00
Christopher Jeffrey 6154859110 cleanup Table code. fixes for Table. 2015-03-31 00:48:17 -07:00
Christopher Jeffrey b067845242 readme. comments. temporary workaround for non-autoPadding list-table. 2015-03-31 00:37:32 -07:00
Christopher Jeffrey 8793be5562 optimize Table element. first pass at ListTable. 2015-03-31 00:25:38 -07:00
Christopher Jeffrey cbc94254b4 add table cell text alignment. 2015-03-30 05:16:22 -07:00
Christopher Jeffrey bc94be742e fixes for Log and Table elements. 2015-03-30 05:05:57 -07:00
Christopher Jeffrey 91bc189ba3 add Log and Table elements. update README. 2015-03-30 04:58:15 -07:00
Christopher Jeffrey c7a6ce60f8 Revert "try to use getCoords everywhere."
This reverts commit 92f167eee8.
2015-03-29 15:48:07 -07:00
Christopher Jeffrey 92f167eee8 try to use getCoords everywhere. 2015-03-29 15:47:58 -07:00
Christopher Jeffrey 5e466c139e rename coord props for consistency. see #113. 2015-03-29 12:29:04 -07:00
Christopher Jeffrey 9070e7f78f refactor artificial cursors and other features. 2015-03-19 23:49:26 -07:00
Christopher Jeffrey 685d7feb09 fix tmux bypassing for cursor status. 2015-03-19 04:16:59 -07:00
Christopher Jeffrey cbcc7e6124 temporarily remove noAlt. 2015-03-19 04:13:44 -07:00
Christopher Jeffrey 43903ca8b2 readme. title. 2015-03-17 23:26:27 -07:00
Christopher Jeffrey 13890ec409 fix artificial cursor color. 2015-03-16 23:53:31 -07:00
Christopher Jeffrey d3e566b9c1 lots of old code for proprietary codes and "artificial cursors". 2015-03-14 16:35:17 -07:00
Christopher Jeffrey 3dcc0b3d1b minor bug fixes. handle tmux escaping. 2015-03-14 16:14:39 -07:00
Christopher Jeffrey 0e2b626556 progressbar. automatic focus on elements. test/widget.js. reallyScrollable. 2015-02-26 15:37:01 -08:00
Christopher Jeffrey 3778c37f40 expose enableMouse, enableKeys, and enableInput. 2015-02-24 18:33:00 -08:00
Christopher Jeffrey 02fd115fb0 remember last button for mouseup on x10 and urxvt protocols. 2015-02-24 18:22:04 -08:00
Christopher Jeffrey ad546d9af9 remove comments. 2015-02-24 18:17:04 -08:00
Christopher Jeffrey aaa9905fac drop terminfo checks in setMouse. 2015-02-24 18:11:03 -08:00
Christopher Jeffrey 190e75884d cleanup setMouse. 2015-02-24 18:05:10 -08:00
Christopher Jeffrey b42308c7cc fix key events for textareas. 2015-02-22 13:37:44 -08:00
Christopher Jeffrey 520dc08100 minor. 2015-02-22 12:59:53 -08:00
Christopher Jeffrey 02ca94a8d9 tput: debug info for {init,reset}_file. fix global var. 2015-02-21 13:52:39 -08:00
Christopher Jeffrey 77695f994a add noAlt option. fix list shrinking. 2015-02-21 13:31:25 -08:00
Christopher Jeffrey 586a586e60 remove mouse comments. fix removeHover. 2015-02-21 02:48:47 -08:00
Christopher Jeffrey 5d72fb1938 fix Terminal element. check for allocated gpmclient. 2015-02-17 22:12:49 -08:00
Christopher Jeffrey a335257505 filter out all mouse events from keys. see slap-editor/slap-editor#74. 2015-02-13 19:28:18 -08:00
Christopher Jeffrey 03cdfbb39c add mouse protocols. window title restore. fix response. 2015-02-13 19:14:27 -08:00
Christopher Jeffrey a29fdf1c74 fix hover text and demonstrate it better. 2015-02-13 01:18:20 -08:00
Christopher Jeffrey c0e36f137d fix error caused when screen.render() is called during a delayed resize. 2015-02-13 00:59:47 -08:00
Christopher Jeffrey 41cb97d664 fix terminal cursor. 2015-02-12 22:37:53 -08:00
Christopher Jeffrey 29a78697bb fix style.border values. fixes #105. 2015-02-11 17:21:41 -08:00
Christopher Jeffrey 982e075a90 Image and Terminal element. 2015-02-11 17:20:22 -08:00
Christopher Jeffrey 267e77a089 improve Terminal element and terminal multiplexer example. 2015-02-11 02:27:11 -08:00
Christopher Jeffrey 00a0f800f9 add "interactive" option for lists. fixes #103. 2015-02-09 20:14:34 -08:00
Christopher Jeffrey d69ed5c294 more work on Image element. 2015-02-09 19:49:33 -08:00
Christopher Jeffrey 1729244db3 image element: fix shrink. 2015-02-09 01:43:16 -08:00
Christopher Jeffrey 9e234c3901 fix image rendering. 2015-02-09 00:19:35 -08:00
Christopher Jeffrey cce38f9f21 improve w3m checking for Image element and screen.displayImage. 2015-02-09 00:09:30 -08:00
Christopher Jeffrey 4c1e020b42 add title. 2015-02-09 00:03:09 -08:00
Christopher Jeffrey c8a9222749 image align=center. 2015-02-09 00:02:07 -08:00
Christopher Jeffrey dd0f1cbb70 fix clearImage. 2015-02-08 23:43:32 -08:00
Christopher Jeffrey 49f1843955 improvements to the Image element. add screen.displayImage(). 2015-02-08 23:42:44 -08:00
Christopher Jeffrey f88d74997a comment 2015-02-08 22:01:24 -08:00
Christopher Jeffrey 594b0bd340 fix NCURSES_NO_UTF8_ACS handling. 2015-02-08 21:34:46 -08:00
Christopher Jeffrey c6287668ee comment 2015-02-08 14:35:08 -08:00
Christopher Jeffrey 1f2098707c require both terminfo and LANG to lack utf8 in order for ascii fallback. fixes #98. 2015-02-08 14:29:38 -08:00
Christopher Jeffrey 1cf69f74d9 minor. comment. 2015-02-07 16:04:14 -08:00
Christopher Jeffrey e8fe076681 refactor mouse events. put `buf` on event object. 2015-02-07 15:37:01 -08:00
Christopher Jeffrey 0290d7f15f clear response listeners after 2 seconds. 2015-02-07 00:15:25 -08:00
Christopher Jeffrey d70fa6d4a2 fix wheel, move, and button decoding for mouse events. 2015-02-04 20:39:34 -08:00
Christopher Jeffrey 89b2dfc373 major reimplementation of sgr and urxvt mouse. mousewheel not yet tested. 2015-02-03 21:22:04 -08:00
Christopher Jeffrey 5a4ddda37d shrink Image element by image size. 2015-02-01 14:01:55 -08:00
Christopher Jeffrey 6ee469fdcb add Image element using w3mimgdisplay. 2015-02-01 13:43:52 -08:00
Christopher Jeffrey 690cf9d3f4 stop listening for mouse sequences before switching to normal buffer. 2015-02-01 09:51:05 -08:00
Christopher Jeffrey a2afbe54bc detect bugged vte mouse better. see #89. 2015-02-01 09:22:18 -08:00
Christopher Jeffrey c243415049 attempt to use both alternate screen buffer sequences. 2015-02-01 08:51:56 -08:00