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
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
8efba79453
cast vc to an int.
2015-02-01 07:41:26 -08:00
Christopher Jeffrey
b6853fbd88
minor style fixes.
2015-02-01 07:36:53 -08:00
Christopher Jeffrey
10b8cc2fe1
comment.
2015-02-01 07:23:43 -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
Mario GLiewe
db435b179d
fix: would crash if no gpm installed
2015-02-01 13:15:41 +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
610e00ee21
use emitter.setMaxListeners().
2015-01-31 12:32:33 -08:00
Christopher Jeffrey
1795cd93d6
use setImmediate everywhere.
2015-01-31 12:26:19 -08:00
Christopher Jeffrey
a9153aeef5
clean up process events.
2015-01-31 12:24:55 -08:00
Mario GLiewe
96a19b8523
Merge https://github.com/chjj/blessed
2015-01-31 21:21:14 +01:00
Christopher Jeffrey
27060d59af
automatically deal with custom process events. fixes #100 .
2015-01-31 12:19:00 -08: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
0386f8b5d6
the ACS is finally correct.
2015-01-29 21:53:06 -08:00
Christopher Jeffrey
547812928e
window title. potential enter/return fix for keys.
2015-01-29 20:08:23 -08:00
Christopher Jeffrey
0881128a4f
fix ACS for TERM=linux again. fix listbar .style.
2015-01-29 20:06:37 -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
5bdfc18daf
cleanup unnecesary code after terminal element addition.
2015-01-24 21:33:30 -08:00
Christopher Jeffrey
879a072353
add terminal widget and hover box.
2015-01-24 18:34:57 -08:00
Christopher Jeffrey
1872f1406d
work around bad choice of method name.
2015-01-16 15:08:27 -08:00
Christopher Jeffrey
436c81204f
include our own emitKeypressEvents. fixes #92 .
2015-01-16 11:56:19 -08:00
Christopher Jeffrey
0cafb89831
fix label "fixed" behavior. widget-file.js.
2015-01-16 11:13:12 -08:00
Christopher Jeffrey
6b91546e15
fix negative autoPadding checks.
2015-01-16 10:55:24 -08:00
Christopher Jeffrey
f445dd8765
fix scrolling on widget-form.js.
2015-01-16 10:29:15 -08:00
Christopher Jeffrey
5300702e34
remove commented code.
2015-01-15 13:32:50 -08:00
Christopher Jeffrey
0b4d70a207
remove attr comments. fix two scroll bugs.
2015-01-15 13:22:55 -08:00
Christopher Jeffrey
6eb28b6b4f
more scrolling fixes.
2015-01-14 16:24:55 -08:00
Christopher Jeffrey
dafad57d0d
fix scrolling.
2015-01-14 10:46:07 -08:00
Christopher Jeffrey
101058517b
misc fixes pertaining to element scrolling.
2015-01-13 15:04:24 -08:00
Christopher Jeffrey
8bff88848b
comment code that does not properly abide by autopadding.
2015-01-07 14:53:29 -08:00
Dan Kaplun
e53ec4caa8
No list padding
2014-10-04 14:08:44 -05:00
Christopher Jeffrey
23bba3f41e
fix: separator tag.
2014-06-26 12:48:27 -05:00
Christopher Jeffrey
73c50e41a8
add separator tag: {|}.
2014-06-16 22:41:28 -05:00
Christopher Jeffrey
4cf8be871d
refactor fuzzyFind.
2014-06-11 03:03:32 -05:00
Christopher Jeffrey
5b249d3fec
fix loader. element focused property.
2014-06-10 21:41:22 -05:00
Dan Kaplun
832f47d2c5
Fixes last character cropping bug
2014-06-05 12:53:41 -05:00
Dan Kaplun
b945d5c734
Adds handleUncaughtExceptions option that allows disabling of Screen's uncaughtException handler
2014-06-05 12:22:38 -05:00
Christopher Jeffrey
458e4dfdea
Merge pull request #43 from EndangeredMassa/master
...
fix setIndex to include last item
2014-06-05 01:28:38 -05:00
Christopher Jeffrey
a1ea57eaf0
Merge pull request #63 from beardtree/click-fix
...
Fixes clicking when mousedown element != mouseup element
2014-06-05 01:24:04 -05:00
Christopher Jeffrey
a2651e22ba
Merge pull request #49 from slap-editor/mousewheel-modifier-keys-fix
...
Fixes scroll wheel support with modifiers for GNOME Terminal
2014-06-05 01:23:52 -05:00
Christopher Jeffrey
e265779369
stop event propagation with button.press if desired. fixes #64 .
2014-06-05 01:12:47 -05:00
Christopher Jeffrey
6f91361197
add ignoreLocked option to Screen.
2014-06-05 01:10:36 -05:00
Christopher Jeffrey
ba3f0e0815
Merge pull request #54 from bulkan/feature/list-search
...
Run a `search` function in vi mode for List's
2014-06-05 01:13:41 -05:00
Christopher Jeffrey
31e9e9c0c6
add setLabel and removeLabel.
2014-06-02 07:53:58 -05:00
Christopher Jeffrey
09ec03058e
fix typo in shrink calculation.
2014-06-01 23:56:32 -05:00
Christopher Jeffrey
8f6381ddf5
fix shrink calculcation in edge cases.
2014-06-01 23:55:27 -05:00
Christopher Jeffrey
bd92e3bf4f
add selectTab and enterSelected methods.
2014-06-01 23:43:02 -05:00
Christopher Jeffrey
12d6318d39
reset index of list.pick().
2014-06-01 21:29:16 -05:00
Christopher Jeffrey
083a4901bd
add ignoreKyes option to Message.
2014-06-01 20:38:36 -05:00
Dan Kaplun
2aabb8ddff
Fixes clicking when mousedown element != mouseup element
2014-05-30 08:32:19 -05:00
Dan Kaplun
4fcfdbaff3
Fixes scroll wheel support with modifiers for GNOME Terminal
2014-05-18 02:59:02 -05:00
Christopher Jeffrey
41994632cf
fix: check detached state in .visible. fixes #58 .
2014-05-16 18:51:33 -05:00
Bulkan Evcimen
d498c0b7a1
Added a new function to do a regexp match on ritems
2014-05-07 21:55:53 +10:00
Bulkan Evcimen
7df11051e6
Search for a List item based on its string
...
If the List has vi mode enabled and a `search` function is set on the options
property then hitting `/` will call this function passing in a callback.
The search function will need to call the callback with the search string
2014-05-07 07:40:19 +10:00
Christopher Jeffrey
b19af4deb7
another method of adding an escape tag.
2014-04-26 06:47:41 -05:00
Christopher Jeffrey
eb4090e257
Revert "add cdata-like tag."
...
This reverts commit bef9c09598
.
2014-04-26 06:40:30 -05:00
Christopher Jeffrey
bef9c09598
add cdata-like tag.
2014-04-26 06:39:45 -05:00
Christopher Jeffrey
4bc910bd5b
add escape function for tag text.
2014-04-26 06:06:03 -05:00
Christopher Jeffrey
c0f85b2567
fix cut-off tags when wrapping is disabled. fixes #50 .
2014-04-26 05:12:39 -05:00
Christopher Jeffrey
44256dcf70
add getItem and getItemIndex for List.
2014-04-26 01:05:25 -05:00
Christopher Jeffrey
fe08f9e819
add List.clearItems method. fixes #40 .
2014-04-26 00:55:43 -05:00
Christopher Jeffrey
9a9611636a
simple way of escaping curly braces in tags for now. fixes #51 .
2014-04-26 00:38:17 -05:00
Christopher Jeffrey
8ccc3dbc49
Revert "another way of escape curly braces in tags. see #51."
...
This reverts commit 434bddcfc7
.
2014-04-26 00:33:05 -05:00
Christopher Jeffrey
434bddcfc7
another way of escape curly braces in tags. see #51 .
2014-04-26 00:31:04 -05:00
Christopher Jeffrey
1a4506195c
Revert "escaping curly braces in tags. see #51."
...
This reverts commit 7bfd309e1a
.
2014-04-26 00:23:42 -05:00
Christopher Jeffrey
7bfd309e1a
escaping curly braces in tags. see #51 .
2014-04-26 00:22:25 -05:00
Christopher Jeffrey
9814f832fb
Revert "possibly a better fix for form focusing. see #38."
...
This reverts commit 7965ee581c
.
2014-03-30 03:56:38 -05:00
Christopher Jeffrey
7965ee581c
possibly a better fix for form focusing. see #38 .
2014-03-30 03:55:56 -05:00
Christopher Jeffrey
d624fe0c45
fix call stack overflow on form focusing. fixes #38 .
2014-03-30 03:51:54 -05:00
Christopher Jeffrey
1bdba0dad0
potentially fix acs handling again: utf8 fallback on brokenACS.
2014-03-18 01:26:16 -05:00
Christopher Jeffrey
dc6f6ade41
fix acs handling with screen when LANG != utf8.
2014-03-18 01:24:49 -05:00
Sean Massa
16ff30a788
fix setIndex to include last item
2014-03-13 22:07:50 -05:00
Christopher Jeffrey
075ca1049a
fix setItems keeping references to original arrays.
2014-01-25 16:31:15 -06:00
Christopher Jeffrey
6777957ff2
improve reselection list updates.
2014-01-19 01:22:28 -06:00
Christopher Jeffrey
8384a185a6
fix generateTags.
2014-01-17 19:54:59 -06:00
Christopher Jeffrey
1236f23f9e
form methods.
2014-01-16 23:54:19 -06:00
Christopher Jeffrey
9673eaf517
form: do not focus invisible elements.
2014-01-16 18:08:59 -06:00
Christopher Jeffrey
03e4d0d52b
add item to ritems on appendItem.
2014-01-16 15:02:04 -06:00
Christopher Jeffrey
eae9fb5fbd
form work.
2014-01-13 12:38:50 -06:00
Christopher Jeffrey
c218df7350
getLines and getScreenLines, handle detaching/reattaching widgets.
2014-01-13 10:25:31 -06:00
Christopher Jeffrey
445d9f4065
question improvement.
2014-01-12 10:40:18 -06:00
Christopher Jeffrey
491731f1d7
catch error. get rid of picklist.
2014-01-12 08:58:35 -06:00
Christopher Jeffrey
c0b3115fb3
add tests.
2014-01-12 06:19:54 -06:00
Christopher Jeffrey
0228b28cc4
potentially fix shrunken + scrollable elements.
2014-01-12 06:12:13 -06:00
Christopher Jeffrey
6a959074a4
multiple fixes/improvements.
2014-01-12 05:08:16 -06:00
Christopher Jeffrey
4cebb15918
key->prefix for listbar. misc.
2014-01-11 21:07:14 -06:00
Christopher Jeffrey
6fd0527c07
listbar cleanup.
2014-01-11 20:59:11 -06:00
Christopher Jeffrey
5930dab630
listbar scrolling work.
2014-01-11 20:47:40 -06:00
Christopher Jeffrey
2c337bb572
minor listbar work.
2014-01-11 19:32:43 -06:00
Christopher Jeffrey
401b1a61cd
listbar rendering.
2014-01-11 19:28:14 -06:00
Christopher Jeffrey
2b33e34d3a
even more listbar work.
2014-01-11 18:54:26 -06:00
Christopher Jeffrey
66933f63b6
remove old listbar.setItems.
2014-01-11 18:24:11 -06:00
Christopher Jeffrey
6ed2451e36
listbar work.
2014-01-11 18:23:38 -06:00
Christopher Jeffrey
045f8d6dc1
lots of work for different widgets.
2014-01-11 17:26:36 -06:00
Christopher Jeffrey
5b38ebfefd
fix problem with textarea borders and cursors.
2014-01-05 01:01:21 -06:00
Christopher Jeffrey
e4de476c7f
fix double line feed problem in textboxes.
2014-01-04 16:02:10 -06:00
Christopher Jeffrey
e3baaa9236
Revert "lazy loading for modules."
...
This reverts commit 999b47a71c58f0d327462067d126b592adce10eb.
2014-01-01 22:47:29 -06:00
Christopher Jeffrey
636bb45965
lazy loading for modules.
2014-01-01 22:47:29 -06:00
Christopher Jeffrey
c73a6c47b9
expose screen.enter and screen.leave. fixes #29 .
2014-01-01 22:47:29 -06:00
Christopher Jeffrey
42291fad3b
Merge pull request #22 from naggie/master
...
add var self = this to progress bar
2014-01-01 19:54:56 -08:00
Christopher Jeffrey
6a393f5a32
fix spacing in tput.js.
2013-12-04 06:34:17 -06:00
Christopher Jeffrey
1451077f12
use bch properly.
2013-10-16 06:51:14 -05:00
Christopher Jeffrey
c8116f6569
fix clock centering.
2013-10-16 06:46:02 -05:00
Christopher Jeffrey
c5d2c45f19
readEditor error handling.
2013-09-14 00:02:00 -05:00
Callan Bryant
4d0ed49bac
add var self = this to progress bar
...
Fixes crash when using progress bar:
ReferenceError: self is not defined
at ProgressBar.<anonymous>
(/home/cbryant/bl/node_modules/blessed/lib/widget.js:4862:11)
...
v
2013-09-11 12:22:08 +01:00
Christopher Jeffrey
353794224c
stop using termcap aliases.
2013-08-29 21:55:36 -05:00
Christopher Jeffrey
b5026af628
always default to windows-ansi on windows. minor refactor.
2013-08-29 18:22:35 -05:00
Christopher Jeffrey
a14650860d
fix terminfo operators. fixes #19 .
2013-08-29 17:47:14 -05:00
Christopher Jeffrey
97b6d6faee
cleanup _prefix and readTermcap.
2013-08-29 17:41:19 -05:00
Christopher Jeffrey
a1c91ccb99
cleanup.
2013-08-28 23:49:25 -05:00
Christopher Jeffrey
4b1365bccc
always have list item selected.
2013-08-27 11:10:09 -05:00
Christopher Jeffrey
1625046d9c
filemanager label. do not hook remove() from List.
2013-08-27 10:25:20 -05:00
Christopher Jeffrey
f8c2ebef1d
assume screen.tput is present.
2013-08-27 09:04:00 -05:00
Christopher Jeffrey
00ee15a32f
better terminfo/cap discovery. fixes #17 .
2013-08-24 22:31:33 -05:00
Christopher Jeffrey
38f234aa91
add getScrollHeight. fixes #16 .
2013-08-20 13:34:18 -05:00
Christopher Jeffrey
0eaff0bb07
fix enter key workaround. minor. typo.
2013-08-18 15:02:35 -05:00
Christopher Jeffrey
18d97ce0d7
fix calls to clearPos in render hooks.
2013-08-15 07:14:56 -05:00
Christopher Jeffrey
65fd7d2529
fix shrink rendering bug.
2013-08-15 06:42:08 -05:00
Christopher Jeffrey
34e451bbfa
minor fix. potential fixes.
2013-08-13 13:09:24 -05:00
Christopher Jeffrey
2953a469da
do not scroll if detached. fixes #8 .
2013-08-13 13:01:31 -05:00
Christopher Jeffrey
8460e1c8a0
possibly fix max autoPadding height+border problem
...
An element with a border has a child with no height or width properties, but a
left and top of 0: this causes the child elements background to cover the
bottom and right borders. It doesn't have a `position.right`, but `iright`
still needs to be subtracted.
2013-08-13 11:56:30 -05:00
Christopher Jeffrey
214ad84a66
add setIndex method. see #9 .
2013-08-13 11:44:04 -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
6f9ae457e4
add button.value. add simple form example.
2013-08-13 10:54:17 -05:00
Christopher Jeffrey
185a05d759
rename bgChar.
2013-08-12 09:07:19 -05:00
Christopher Jeffrey
4b6cf96030
Merge pull request #12 from johnspackman/element-bg-char
...
Added a background fill character to Element
2013-08-12 06:50:19 -07:00
John Spackman
ffd98d0f8e
Added a background fill character to Element
...
This is used to fill the background of the element, EG for text area I
typically set this to '_' to show the extent of the field
2013-08-12 14:45:01 +01:00
Christopher Jeffrey
7b3557262f
check TERMINFO_DIRS correctly.
2013-08-11 23:13:28 -05:00
Christopher Jeffrey
980e65bd2c
try hex char representations for terminfo subdirectory. see #2 .
2013-08-11 23:04:00 -05:00
Christopher Jeffrey
a30d3ecbe8
switch back to old acs.
2013-08-10 15:48:27 -05:00
Christopher Jeffrey
66dc2118e7
add fastCSR option.
2013-08-10 10:02:29 -05:00
Christopher Jeffrey
fc92dca39c
remove old acs code.
2013-08-10 09:34:37 -05:00
Christopher Jeffrey
2ba6dcc2b8
acs work. potential wide char support.
2013-08-10 09:33:41 -05:00
Christopher Jeffrey
8c558dbf3f
fix clearPos and clickable/keyable check on removal. fixes #6 .
2013-08-08 13:47:59 -05:00
Christopher Jeffrey
94bdb41dd1
fix readme. improve tput._print. refactor test/tput.js.
2013-08-08 06:19:44 -05:00
Christopher Jeffrey
45f8f0e5bb
add getScroll method.
2013-08-06 01:06:33 -05:00
Christopher Jeffrey
16bbb5ea24
allow zero-width elements. enforce minimums for shrink.
2013-08-04 09:20:50 -05:00
Christopher Jeffrey
6cb640c0e5
remove non-printable chars from comment.
2013-08-04 08:46:26 -05:00
Christopher Jeffrey
abd89d3aee
minor: fix indexOf call.
2013-08-04 08:40:53 -05:00
Christopher Jeffrey
4ad7d90c9d
mark acs as broken if the terminal uses the pc alt charset as acs.
2013-08-04 08:36:51 -05:00
Christopher Jeffrey
c05beb3059
setup method. use path.sep wherever possible. misc.
2013-08-04 08:13:01 -05:00
Christopher Jeffrey
8ebbbbac65
add setText and getText methods. expose element and node.
2013-08-04 04:59:28 -05:00
Christopher Jeffrey
dadf185a87
cleanup mouse handler. improve "visible" getter.
2013-08-04 04:38:29 -05:00
Christopher Jeffrey
c746cd7197
v0.0.20
2013-08-04 01:29:54 -05:00
Christopher Jeffrey
17c4cb1e2a
minor changes and cleanup.
2013-08-04 01:21:48 -05:00
Christopher Jeffrey
b5c7aed3ad
clean up old code.
2013-08-04 01:21:48 -05:00
mscdex
a1616aec0a
Better Windows support
2013-08-02 21:59:49 -04:00
Christopher Jeffrey
b7fa80cc2e
fix uncaught error throwing.
2013-08-02 12:47:22 -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
52a9f5d182
fix scroll rendering for children with padding.
2013-08-01 20:00:24 -05:00
Christopher Jeffrey
c4a7f05025
obscure overlapping sides in scrolling elements.
2013-08-01 04:19:58 -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
b2666ffecb
add event bubbling.
2013-08-01 01:02:16 -05:00
Christopher Jeffrey
0e047b8e51
minor fixes.
2013-07-31 19:21:10 -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
2e58aed1ea
refactor position and new padding code.
2013-07-30 23:57:48 -05:00
Christopher Jeffrey
78a3726f2f
add auto-positioning which respects padding and borders.
2013-07-30 23:46:07 -05:00
Christopher Jeffrey
ac88ceaebe
remove radio-button handling from checkbox.
2013-07-29 19:27:15 -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
81267dbd2a
move el._focus to screen._focus.
2013-07-29 17:40:48 -05:00
Christopher Jeffrey
af27e80447
fix readme typo.
2013-07-29 17:35:48 -05:00
Christopher Jeffrey
82322ac017
allow border option to be a string.
2013-07-29 17:22:21 -05:00
Christopher Jeffrey
1a4c0cd761
fix mwidth for elements with no content.
2013-07-29 16:49:44 -05:00
Christopher Jeffrey
36415f76b6
fix textbox/textarea.
2013-07-29 16:38:19 -05:00
Christopher Jeffrey
d2226c3295
improve focus. fix getCoords. readme.
2013-07-29 15:49:09 -05:00
Christopher Jeffrey
a3e2983b4b
fix form errors.
2013-07-29 10:40:59 -05:00
Christopher Jeffrey
6a03ad42ff
textbox. progressbar. misc. readme.
2013-07-29 09:14:03 -05:00
Christopher Jeffrey
2dfedf5e47
enable textbox input-on-focus.
2013-07-29 04:23:52 -05:00
Christopher Jeffrey
9b77e3df63
fix setEffects and failed fg/bg 256 color sequences.
2013-07-29 04:22:20 -05:00
Christopher Jeffrey
9a1411338c
fix small error.
2013-07-28 14:49:01 -05:00
Christopher Jeffrey
3bcbd9b39f
enable new parseTags method. clean up old code.
2013-07-28 14:18:28 -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
927c40d2f3
fix mwidth. minor.
2013-07-28 10:51:43 -05:00
Christopher Jeffrey
f8fbb2a0c8
remove dwidth characters for now.
2013-07-28 10:19:04 -05:00
Christopher Jeffrey
f236898f73
optimize shrink width.
2013-07-28 10:02:04 -05:00
Christopher Jeffrey
9cc1f53d9a
refactor wrapContent.
2013-07-28 09:43:28 -05:00
Christopher Jeffrey
88da43bfaf
fix empty lines in wrapContent.
2013-07-28 09:24:08 -05:00
Christopher Jeffrey
a82ad19110
fixed only affects one level of scrollable ancestors.
2013-07-28 03:01:09 -05:00
Christopher Jeffrey
38473b6bfa
comments. enable csr for elements with scrollbars.
2013-07-27 08:13:29 -05:00
Christopher Jeffrey
d9ca7112bc
scrollbar track.
2013-07-27 07:34:32 -05:00
Christopher Jeffrey
80ae319225
back_color_erase comments.
2013-07-27 06:53:09 -05:00
Christopher Jeffrey
8f989eeadd
fix scrollbar arithmetic.
2013-07-27 06:52:45 -05:00
Christopher Jeffrey
69f5993735
make new scrollable code compatible with get=false. add fixed option.
2013-07-27 05:37:53 -05:00
Christopher Jeffrey
2dc3146d1f
cleanup scroll.
2013-07-27 05:19:32 -05:00
Christopher Jeffrey
ee71a1ac61
more scroll work.
2013-07-27 05:14:02 -05:00
Christopher Jeffrey
d63762fbe8
tput.js fixes.
2013-07-27 05:13:04 -05:00
Christopher Jeffrey
efbae0c203
cleanup scroll code.
2013-07-26 01:45:39 -05:00
Christopher Jeffrey
8ea1fe4dab
working nested scrolling.
2013-07-26 01:38:25 -05:00
Christopher Jeffrey
ea857ea550
fix nested scrollable elements.
2013-07-25 18:09:00 -05:00
Christopher Jeffrey
19dd8a47d0
fix scrolling obfuscation for elements with borders.
2013-07-25 01:20:47 -05:00
Christopher Jeffrey
25133923e3
allow text to be obfuscated within child elements during a scroll.
2013-07-24 22:47:03 -05:00
Christopher Jeffrey
11d7a98303
make textbox inherit from textarea.
2013-07-24 20:41:11 -05:00
Christopher Jeffrey
633b76cec5
more textbox/textarea refactoring.
2013-07-24 18:20:30 -05:00
Christopher Jeffrey
c1f17e866c
refactor textbox and textarea render/setValue.
2013-07-24 18:05:56 -05:00
Christopher Jeffrey
6fde3e3a38
misc fixes for radiobutton, textarea, textbox, checkbox.
2013-07-24 17:16:55 -05:00
Christopher Jeffrey
1c9d25780a
add a scrollable option.
2013-07-24 15:39:22 -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
2f7967031e
readme. move Box methods onto Element. add clearBaseLine and getContent.
2013-07-23 18:38:55 -05:00
Christopher Jeffrey
31030113cf
buffer everything - this prevents flickering on xterm and may improve terminal rendering speed.
2013-07-23 18:04:22 -05:00
Christopher Jeffrey
b6bee303a9
fix scroll obfuscation.
2013-07-23 16:57:30 -05:00
Christopher Jeffrey
9aaabacf68
fix initial setContent call. fix spawn() cursor handling.
2013-07-23 16:37:54 -05:00
Christopher Jeffrey
da49a89b28
refactor wrapContent. fix/use/improve getCoords(), scroll(), hide().
2013-07-23 15:40:53 -05:00
Christopher Jeffrey
76cc6d37e7
make text wrapping optional.
2013-07-23 14:43:14 -05:00
Christopher Jeffrey
f56d7386c6
more pre-wrap line handling improvements.
2013-07-23 14:37:44 -05:00
Christopher Jeffrey
36c5351fde
allow handling of pre-wrapped text for line methods.
2013-07-23 14:16:20 -05:00
Christopher Jeffrey
6bfb47632e
list.items fix. box line methods.
2013-07-23 13:31:05 -05:00
Christopher Jeffrey
b8f1241bca
fix scrolling glitch.
2013-07-23 10:38:54 -05:00
Christopher Jeffrey
73939984b4
misc scrollable positioning.
2013-07-23 09:38:30 -05:00
Christopher Jeffrey
add8aaa664
stop using the options object for positioning.
2013-07-23 07:04:52 -05:00
Christopher Jeffrey
11c6e7269f
matchColor and BCE tput check.
2013-07-23 06:34:40 -05:00
Christopher Jeffrey
77885514aa
go back to using arrays for out for now.
2013-07-23 03:29:37 -05:00
Christopher Jeffrey
8c4d70d1e1
fix BCE handling.
2013-07-23 03:07:57 -05:00
Christopher Jeffrey
8f936d00b7
tput.js refactor. rename variables.
2013-07-23 00:37:13 -05:00
Christopher Jeffrey
5e2ca90f04
more tput.js work, fixes. cleanup.
2013-07-23 00:25:04 -05:00
Christopher Jeffrey
fe9406aba1
more tput fixes/improvements/refactoring.
2013-07-22 22:28:01 -05:00
Christopher Jeffrey
e771fc9fc9
improvements to tput and colors.
2013-07-22 00:59:56 -05:00