Commit Graph

186 Commits

Author SHA1 Message Date
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 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 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 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 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
Christopher Jeffrey e9b3bdac34 allow VTE mouse access to cells up to 287. see #89. 2015-02-01 08:47:24 -08:00
Christopher Jeffrey 1d900c928d add vt200hilite for forced mouse modes. see #101. 2015-02-01 07:47:00 -08:00
Christopher Jeffrey b6853fbd88 minor style fixes. 2015-02-01 07:36:53 -08:00
Christopher Jeffrey ac6b54c181 comments. license. 2015-02-01 07:22:39 -08:00
Christopher Jeffrey f13f1242b2 gpm: add a gpmMouse option for setMouse. 2015-02-01 07:10:17 -08:00
Christopher Jeffrey 87a3d2f288 gpm: refactor to fit style. 2015-02-01 07:07:55 -08:00
Christopher Jeffrey fae4acceef Merge remote-tracking branch 'mgliewe/master'
Conflicts:
	lib/program.js
2015-02-01 06:46:22 -08:00
Mario GLiewe fc227ed503 workaropund: allow forced mouse protocol via env 2015-02-01 13:16:29 +01:00
Christopher Jeffrey 8247501924 check for OSX terminal env variables. 2015-01-31 22:29:43 -08:00
Christopher Jeffrey 9589eb81d6 more env variable checks for vte. 2015-01-31 22:22:15 -08:00
Christopher Jeffrey 32a783b282 check for terminator - more VTE usage. 2015-01-31 21:57:23 -08:00
Christopher Jeffrey ffbadfc988 add vt200Mouse to rxvt because it supports it. 2015-01-31 18:54:23 -08:00
Christopher Jeffrey 37f2313979 more vte+rxvt cleanup. see #89. 2015-01-31 18:49:15 -08:00
Christopher Jeffrey 3cdcc7a64b more fixes for VTE. see #89. 2015-01-31 18:36:47 -08:00
Christopher Jeffrey f055496161 fix program.getCursor. fixes #25. 2015-01-31 12:57:21 -08:00
Christopher Jeffrey 955f509581 drop wrapCursor and parseChar. should be used for other terminfo feature checks. 2015-01-31 12:35:22 -08:00
Christopher Jeffrey 1795cd93d6 use setImmediate everywhere. 2015-01-31 12:26:19 -08:00
Mario GLiewe 96a19b8523 Merge https://github.com/chjj/blessed 2015-01-31 21:21:14 +01:00
Christopher Jeffrey 127ae12c1b use urxvt mouse protocol for vte-based terminals. fixes #89. 2015-01-31 01:51:40 -08:00
Christopher Jeffrey df73eb5e3e Revert "add workarounds for libvte mouse events. see #89."
This reverts commit bb61e5c144.
2015-01-31 01:51:12 -08:00
Christopher Jeffrey bb61e5c144 add workarounds for libvte mouse events. see #89. 2015-01-31 01:43:16 -08:00
Christopher Jeffrey 547812928e window title. potential enter/return fix for keys. 2015-01-29 20:08:23 -08:00
Christopher Jeffrey 02176938c9 add screen.title property. misc. 2015-01-27 20:39:00 -08:00
Mario GLiewe d8eff3fa55 fix: make mousewheel work for gpm 2015-01-28 04:01:49 +01:00
Mario GLiewe efe4e475a6 added gpm support for linux vc 2015-01-28 03:43:48 +01:00
Christopher Jeffrey 436c81204f include our own emitKeypressEvents. fixes #92. 2015-01-16 11:56:19 -08:00
Dan Kaplun 4fcfdbaff3 Fixes scroll wheel support with modifiers for GNOME Terminal 2014-05-18 02:59:02 -05:00
Christopher Jeffrey b5026af628 always default to windows-ansi on windows. minor refactor. 2013-08-29 18:22:35 -05:00
Christopher Jeffrey 0eaff0bb07 fix enter key workaround. minor. typo. 2013-08-18 15:02:35 -05:00
Christopher Jeffrey 070cbd9001 decode mouse events and responses properly. 2013-08-13 11:30:44 -05:00
Christopher Jeffrey d42adf7e32 make enter and return keypresses identical on all platforms. see #2. 2013-08-13 11:30:20 -05:00
Christopher Jeffrey 7a8a0d2591 setMouse improvements. do not allow fg changes on selected items. do not bubble render events. 2013-08-02 05:59:54 -05:00
Christopher Jeffrey 598be3bb88 refactor constructors. 2013-08-01 03:28:10 -05:00
Christopher Jeffrey d3c34f6f89 optimize clickable sort. better autofocus. flush on exception. 2013-08-01 02:52:03 -05:00
Christopher Jeffrey f3df07a237 buffer everything. cancel acs at the end of draw() if necessary. 2013-07-31 17:43:03 -05:00
Christopher Jeffrey 51771dc19a add log method to program object. 2013-07-31 00:43:24 -05:00
Christopher Jeffrey 33214ee924 cleanup new dump method. 2013-07-29 19:06:22 -05:00
Christopher Jeffrey b7e7a8264b better dumps. 2013-07-29 19:00:31 -05:00
Christopher Jeffrey 084f28fcff content attribute and tag handling.
- handle content attributes with better respect to element's style.
- add a more sophisticated tag parser.
2013-07-28 13:20:52 -05:00
Christopher Jeffrey 8ea1fe4dab working nested scrolling. 2013-07-26 01:38:25 -05:00
Christopher Jeffrey 5e2f1061d1 misc - add a blessed.js file. 2013-07-24 14:41:02 -05:00
Christopher Jeffrey 1b5155cfae refactor and clean up program.js. 2013-07-24 14:17:52 -05:00
Christopher Jeffrey 0372788f2d add a buffering write function for program. 2013-07-24 13:23:35 -05:00
Christopher Jeffrey 9aaabacf68 fix initial setContent call. fix spawn() cursor handling. 2013-07-23 16:37:54 -05:00
Christopher Jeffrey 11c6e7269f matchColor and BCE tput check. 2013-07-23 06:34:40 -05:00
Christopher Jeffrey fe9406aba1 more tput fixes/improvements/refactoring. 2013-07-22 22:28:01 -05:00
Christopher Jeffrey 346e39b723 cleanup. improve BCE. remove old code. 2013-07-21 23:53:10 -05:00
Christopher Jeffrey 00e680d413 work on adding back_color_erase handling, acs optimization, and other stuff ncurses usually handles. 2013-07-21 21:05:35 -05:00
Christopher Jeffrey b8e0fafaeb misc. options. refactor tests/bin. 2013-07-18 18:02:45 -05:00
Christopher Jeffrey 48c2bae2a0 do not violate 80 col limit. 2013-07-18 15:01:42 -05:00
Christopher Jeffrey fa2206bb0a allow lowercase charset names. 2013-07-18 02:12:05 -05:00
Christopher Jeffrey 90c9484d8b remove old response() code. 2013-07-18 02:01:33 -05:00
Christopher Jeffrey b46d1161c5 refactor responses. 2013-07-18 01:51:08 -05:00
Christopher Jeffrey 7b7330ec5a fix CHA, fix SU and SD. 2013-07-18 00:22:24 -05:00
Christopher Jeffrey 7074d0da91 more terminfo paths. 2013-07-16 15:57:12 -05:00
Christopher Jeffrey b266f389e9 fix colors. 2013-07-16 00:18:31 -05:00
Christopher Jeffrey 3332e9d34e hex colors in program. another wrapContent fix. 2013-07-15 19:35:36 -05:00
Christopher Jeffrey caa21ee356 optimize alloc+clear. add a output dump option. 2013-07-14 12:08:03 -05:00
Christopher Jeffrey 6a44fd9a35 misc. add sigtstp method. 2013-07-14 10:16:19 -05:00
Christopher Jeffrey 990fb0d796 minor property rename. 2013-07-14 09:32:50 -05:00
Christopher Jeffrey 9db97cd61c easier feature checking. 2013-07-14 08:37:57 -05:00
Christopher Jeffrey 965af859b0 make mouse coords zero indexed. 2013-07-14 07:35:00 -05:00
Christopher Jeffrey 2105eb3d5b improve mouse enabling. 2013-07-14 07:16:33 -05:00
Christopher Jeffrey 363bc44caa fix terminfo if/else. detect features. 2013-07-14 06:24:04 -05:00
Christopher Jeffrey 342ed23b66 always enabled terminfo. prop rename. 2013-07-13 23:41:47 -05:00
Christopher Jeffrey ccf3794be2 unicode detect. docs. device attr. focus/blur. smacs checks. 2013-07-13 23:38:43 -05:00
Christopher Jeffrey 97c582164b keys. no mouse focus events. 2013-07-12 05:11:15 -05:00
Christopher Jeffrey 87a5188de9 docs. keys. misc. 2013-07-12 04:59:58 -05:00
Christopher Jeffrey 42399b17ab setEffects. misc fixes. 2013-07-12 03:34:32 -05:00
Christopher Jeffrey 3ef2048289 omove. misc. 2013-07-12 01:13:29 -05:00
Christopher Jeffrey ead26b4a66 start using zero-indexed instance of Program. 2013-07-12 00:36:36 -05:00
Christopher Jeffrey 5a96c3611d misc. remove old code. 2013-07-12 00:21:40 -05:00
Christopher Jeffrey cc863af2cf zero indexed program to mirror tput. 2013-07-12 00:03:48 -05:00
Christopher Jeffrey d452b72dd8 optimize updateCursor with CUU, CUD, CUF, and CUB. 2013-07-11 23:17:10 -05:00
Christopher Jeffrey 6ec3534fcd misc fixes. remove dead code. 2013-07-04 02:18:26 -05:00
Christopher Jeffrey c265194182 change screen keypress behavior. 2013-06-25 17:31:13 -05:00
Christopher Jeffrey 77593efd05 readme, tput, mouse, types, misc. 2013-06-25 06:35:15 -05:00
Christopher Jeffrey 07334af6fc readme. reduce screen events. 2013-06-24 06:16:02 -05:00
Christopher Jeffrey f431e98c03 major changes. better content formatting and parsing. 2013-06-20 06:43:56 -05:00
Christopher Jeffrey dc2bfda057 mousemove and mouse refactor. fixes. 2013-06-16 10:12:47 -05:00
Christopher Jeffrey 5247b41d8b constructor and options handling. 2013-06-14 15:58:54 -05:00
Christopher Jeffrey 9eaf45acab parsable attribute tags. 2013-06-13 20:21:41 -05:00