Commit Graph

891 Commits

Author SHA1 Message Date
Christopher Jeffrey 77bd73b4c8 add sendFocus option. see #149. 2015-07-04 03:30:49 -07:00
Christopher Jeffrey c473cc527f update tng 2015-06-29 22:17:43 -07:00
Christopher Jeffrey 2842f3f6ce add PNG/ANSIImage element. 2015-06-28 22:55:42 -07:00
Christopher Jeffrey 305aa063d4 move blending to colors.js. 2015-06-27 17:39:04 -07:00
Christopher Jeffrey 9f1552c687 fix {|} separator in the presence of alignments. fixes #146. 2015-06-27 03:06:08 -07:00
Christopher Jeffrey 36d94d41a6 fix cellMotion for tmux. fix mousemove check for VTE. fixes #125. 2015-06-23 18:02:05 -07:00
Christopher Jeffrey f3f4233a7a fix unnecessary onScreenEvent change. fixes #142. 2015-06-19 17:59:06 -07:00
Christopher Jeffrey 8228142060 allow any kind of stream as input and output. fixes #138. 2015-06-09 05:13:11 -07:00
Christopher Jeffrey 983b5a745a fix some helper functions. 2015-06-03 01:08:49 -07:00
Christopher Jeffrey c7252ea86f account for ena_acs. fix for tmux 2.0. see #137. 2015-05-21 15:58:00 -07:00
Christopher Jeffrey f0b7204af0 fix for tmux 2.0. closes #137. 2015-05-20 18:59:39 -07:00
Christopher Jeffrey d36b90ce40 removeLabel: remove listeners before detaching. 2015-05-07 18:54:07 -07:00
Christopher Jeffrey da1ff18493 fix label reposition. fixes #134. 2015-05-07 18:53:06 -07:00
Christopher Jeffrey e214141ccb add a distinct `grid` and `inline` layout. see #23. 2015-05-07 17:25:23 -07:00
Christopher Jeffrey f89e6661f3 fix list.removeItem. add list.insertItem, list.setItem. fixes #18. 2015-05-06 17:39:49 -07:00
Christopher Jeffrey b21e535391 add a customizable Layout element. see #23. 2015-05-06 13:00:57 -07:00
Christopher Jeffrey 583fa4f6f7 more refactoring of lib/blessed. 2015-05-05 23:59:50 -07:00
Christopher Jeffrey 8d11075b89 improve lib/blessed.js 2015-05-05 23:22:40 -07:00
Christopher Jeffrey 5eddd2aed2 whitespace. comments. 2015-05-05 23:10:18 -07:00
Christopher Jeffrey a4d56fb819 refactor: split widgets up. fixes #133. 2015-05-05 21:44:38 -07:00
Christopher Jeffrey 99f9d622e6 minor fix for sync image rendering. 2015-05-05 19:17:16 -07:00
Christopher Jeffrey 9260848868 add synchronous setImage for Image elements. 2015-05-02 03:01:42 -07:00
Christopher Jeffrey e6c763a73c use onScreenEvent for element keys to prevent memory leaks. 2015-05-01 22:43:31 -07:00
Christopher Jeffrey 1044a88e58 allow custom draggable checks. 2015-05-01 22:14:49 -07:00
Christopher Jeffrey 3205dd289d fix onScreenEvent listeners. 2015-05-01 22:04:26 -07:00
Christopher Jeffrey 245b3f44b1 experimental angle improvement. 2015-05-01 21:59:09 -07:00
Christopher Jeffrey c435b03bdc use onScreenEvent to prevent memory leaks. 2015-05-01 21:58:26 -07:00
Christopher Jeffrey de4aa27d70 make terminals focusable. set elements being dragged to front of z-index. terminal multiplexer. 2015-05-01 21:24:45 -07:00
Christopher Jeffrey b5341b8b81 add ignoreDockContrast option. 2015-05-01 21:09:40 -07:00
Christopher Jeffrey 0ea19cacad fix off-screen coords. fix draggable. 2015-05-01 20:55:13 -07:00
Christopher Jeffrey f26ae44d84 fix fillRegion/clearRegion. 2015-05-01 18:20:16 -07:00
Christopher Jeffrey 69b3d144c4 widget-unicode test. 2015-05-01 18:07:15 -07:00
Christopher Jeffrey ba4108445a avoid wrapping shortfall due to surrogate pairs. 2015-05-01 17:44:49 -07:00
Christopher Jeffrey b6c512925f fix shift+G. potentially use getScrollHeight for more things. 2015-05-01 16:44:10 -07:00
Christopher Jeffrey 0b5b04c739 bright grey == regular white. 2015-05-01 01:29:37 -07:00
Christopher Jeffrey 0506f5fea2 bright and grey color names. 2015-05-01 01:27:11 -07:00
Christopher Jeffrey e2faf2300e windows commands. 2015-05-01 01:02:26 -07:00
Christopher Jeffrey b0daa72a72 comment. 2015-05-01 00:57:40 -07:00
Christopher Jeffrey d2586089c8 reorganize more code. 2015-05-01 00:47:39 -07:00
Christopher Jeffrey 0b6fceec23 refactor blend. 2015-05-01 00:40:12 -07:00
Christopher Jeffrey f5f2b71562 refactor helpers. 2015-05-01 00:33:34 -07:00
Christopher Jeffrey 3e8083d5a1 more refactoring of helpers. 2015-05-01 00:32:44 -07:00
Christopher Jeffrey 8eb57e919e refactor: move helpers around. 2015-05-01 00:27:33 -07:00
Christopher Jeffrey 797d8de45f handle unicode and tags better in tables and textareas. 2015-04-30 23:51:45 -07:00
Christopher Jeffrey 23567a75ab improve charWidth and strWidth. 2015-04-30 23:09:09 -07:00
Christopher Jeffrey 4ff2c992d5 fix overlapping draggable elements. 2015-04-30 09:48:50 -07:00
Christopher Jeffrey d1bfdd5a31 only allow scrollbar usage with mouse if `mouse` option is set. 2015-04-30 09:41:07 -07:00
Christopher Jeffrey bcf9b630bb mouse interactive scrollbar. 2015-04-29 12:43:58 -07:00
Christopher Jeffrey 023e6be4e5 another hover fix. 2015-04-27 23:57:08 -07:00
Christopher Jeffrey a5bfa4397a clean and fix hover code. 2015-04-27 23:55:49 -07:00
Christopher Jeffrey 5468509778 optimize hover text. 2015-04-27 21:24:58 -07:00
Christopher Jeffrey 36c726006f add more events to lists. 2015-04-27 16:59:45 -07:00
Christopher Jeffrey b241e1a4df do not render combining chars on iTerm2.
see: 2eb57cc725
2015-04-27 15:07:23 -07:00
Christopher Jeffrey 46e9c52030 cursor position in textarea. 2015-04-27 15:04:33 -07:00
Christopher Jeffrey 09fe097d3f clean up unicode code and comments some more. 2015-04-27 14:53:34 -07:00
Christopher Jeffrey f8946a22f3 fix combining check during unicode wrap. 2015-04-27 14:08:18 -07:00
Christopher Jeffrey 53066c8f4c minor: comment. 2015-04-27 14:04:17 -07:00
Christopher Jeffrey cb9ffee1e3 fix surrogate singles. stop using bad surrogate double for testing.
see 2eb57cc725
2015-04-27 12:51:11 -07:00
Christopher Jeffrey 582831e5bc clear screen on windows during Screen.enter. 2015-04-27 01:23:30 -07:00
Christopher Jeffrey a42631cbc7 fix unicode on windows. see #130. 2015-04-27 00:19:55 -07:00
Christopher Jeffrey f37a619cc6 allow 0-width 0-height elements. see slap-editor/slap#153. 2015-04-27 00:14:02 -07:00
Christopher Jeffrey 3f8ed04898 allow unicode on all windows consoles for now. see #130. 2015-04-26 19:22:23 -07:00
Christopher Jeffrey 56aae2e861 cjk ambiguous with if statement. 2015-04-26 07:56:51 -07:00
Christopher Jeffrey 33d2f52dcf amiguous CJK character check. 2015-04-26 07:53:39 -07:00
Christopher Jeffrey 56421ccc7b fix VTE again - two chars for surrogate wide replacement. 2015-04-26 07:17:39 -07:00
Christopher Jeffrey 0ea8c77dd8 fix VTE. only remove surrogate double chars. 2015-04-26 07:16:50 -07:00
Christopher Jeffrey 051e90070c workaround VTEs wide surrogate pair display bug. 2015-04-26 07:03:52 -07:00
Christopher Jeffrey 86dd7e169a eaw test. attempt to use harmony unicode features. 2015-04-26 06:54:07 -07:00
Christopher Jeffrey 34fd68b620 Revert "isSurrogateLast"
This reverts commit e19730578c.
2015-04-26 06:38:06 -07:00
Christopher Jeffrey e19730578c isSurrogateLast 2015-04-26 06:37:45 -07:00
Christopher Jeffrey 2eb57cc725 do not break on spaces, double-widths, surrogates, or combinings for text wrapping. 2015-04-26 06:32:41 -07:00
Christopher Jeffrey 94ba30cbfd fix: break on extra space for double-width again. 2015-04-26 05:55:20 -07:00
Christopher Jeffrey 620c17c7dc fix eaw test. comment. 2015-04-26 04:41:31 -07:00
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