Daniel Imms
56ec6ed22c
Merge branch '842_resize_buffers_bug' into 335_xterm_to_ts
...
setOption('scrollback', 0) no longer returns false, it just warns.
2017-08-05 20:48:42 -07:00
Daniel Imms
d46003843b
Add tests for Buffer.fillViewportRows
2017-08-05 20:15:23 -07:00
Daniel Imms
13619d427a
Add a bunch of Buffer tests 🎉
2017-08-05 20:11:26 -07:00
Daniel Imms
f03d00a497
Clean up buffer clean up/fill logic
...
The alt buffer is now cleared immediated after activating the normal buffer and
is filled when switching to it. The tests were failing because the alt buffer
wasn't being cleared properly with the previous solution.
2017-08-05 19:42:54 -07:00
Daniel Imms
3d20c2f266
Resize both buffers on resize
...
This brings in proper support to resize both buffers (#510 ) and fixes an
exception that was caused by wrongfully not clearing the normal buffer when
resizing while the alt buffer is active.
There was an obscure bug in this that could have caused some great confusion
later on; When switching to the alt buffer, a hard terminal reset was performed
which tried to retain the buffers. However, because buffers was initialized in
the Terminal constructor to a new BufferSet, the Terminal.buffer convenience
pointer was pointing at a stale alt buffer which was the one actually being
used, not Terminal.buffers.alt.
Fixes #842
Fixes #510
2017-08-05 18:59:44 -07:00
Daniel Imms
f9fce53cc4
Add typedef tslint rule
2017-08-05 13:56:38 -07:00
Daniel Imms
aee474b53e
Type InputHandler._terminal
2017-08-05 12:57:29 -07:00
Daniel Imms
8a0bcf6b79
Clean up
2017-08-05 11:28:24 -07:00
Daniel Imms
ad25905783
Fix reset
2017-08-05 11:20:39 -07:00
Daniel Imms
0b5ff47cc0
Give terminal options a proper interface
2017-08-05 02:57:34 -07:00
Daniel Imms
da50e33aa8
Finish types on Terminal's properties
2017-08-05 02:50:44 -07:00
Daniel Imms
e6b431d92f
Add one-variable-per-declaration tslint rule
...
Multiple declarations per line makes it more difficult to read what
exactly is declared and generally makes code more verbose and less
likely to fill in types
2017-08-05 02:42:49 -07:00
Daniel Imms
7d1c5d1ac6
Fix tests
2017-08-05 02:34:21 -07:00
Daniel Imms
8903bddb17
Fix a bunch of warnings, remove dead code
2017-08-05 02:28:20 -07:00
Daniel Imms
41c335c0e6
The terminal works!
2017-08-05 02:22:43 -07:00
Daniel Imms
2104dccec5
Fix most errors in Terminal.ts
2017-08-05 01:58:42 -07:00
Daniel Imms
db5b908d62
Move xterm.js -> Terminal.ts
2017-08-05 00:22:31 -07:00
mofux
106eda7067
Merge changes from #828
2017-08-02 17:42:43 +02:00
thomas
5bc0ad879b
Set xterm-color for cursor element
...
Prevent focus from getting lost when in vt mouse mode
Fix: cursor style not applied on init, set a class for block cursor
Make all cursors work under all conditions (focused, unfocused, blink)
Unify cursor rendering with normal rendering code
Make sure underline AND blink can be used in co-existence
Always show outlined block cursor in unfocused state
2017-08-02 15:41:18 +02:00
Paris Kasidiaris
72e85a352a
Focus on mousedown, instead of click
2017-08-02 16:03:56 +03:00
Paris Kasidiaris
49c1ca3f57
Fix #827 : Always focus terminal on click
2017-08-02 10:44:16 +03:00
Daniel Imms
3f7fec8c91
Merge branch 'master' into alt-selection
2017-07-28 14:07:43 -07:00
Daniel Imms
3479614c73
Disable selection override on Windows/Linux
2017-07-28 14:06:55 -07:00
Daniel Imms
ff165e8627
Merge branch 'master' into 818_fix_save_restore_cursor
2017-07-28 08:33:52 -07:00
Jon Masters
2d4e617c95
Issue #821 - Prevent TypeError in resize()
2017-07-28 11:54:46 +00:00
Daniel Imms
6ea7758ab1
Add test for save and restore cursor
2017-07-27 16:35:48 -07:00
Daniel Imms
604959a319
Fix save and restore cursor behavior
...
This broke in #717 .
Fixes #818
2017-07-27 16:28:27 -07:00
Joao Moreno
6a3b39b428
fix context menu in disabled state
2017-07-26 09:07:20 +02:00
Joao Moreno
9e80a12462
fix tests
2017-07-25 17:17:48 +02:00
Joao Moreno
0e0ecc2d6a
listen to shift when in Linux
2017-07-25 17:11:41 +02:00
Joao Moreno
f872ced863
oops, this is a function
2017-07-25 11:30:03 +02:00
Joao Moreno
9a30b98880
safeguard npe
2017-07-25 10:45:45 +02:00
t-amqi
23dd3d7a67
Fix indentation
2017-07-24 13:41:24 -07:00
t-amqi
79965708ab
Add lineFeed event
...
- this is useful for checking when a cmd is entered or when a cmd finishes
- also handy to have for accessibility for output
2017-07-24 11:43:03 -07:00
Joao Moreno
80a83ff8d9
wip: alt forces selection
2017-07-24 18:08:11 +02:00
Daniel Imms
e56f710cd1
Make SelectionManager more resilient
...
Fixes #809
2017-07-21 05:45:53 -07:00
Daniel Imms
e3ded61122
Add null check when mouse coords are bad
...
This happens if the viewport is bad (which was fixed in another commit).
Fixes #801
2017-07-18 20:34:24 -07:00
Daniel Imms
f8e3fa5a99
Fix browserify build and search addon ( #804 )
...
Fixes #803
2017-07-18 19:58:35 -07:00
Jörg Breitbart
cd5827e69b
higher timeout for test case
2017-07-18 22:19:55 +02:00
Daniel Imms
20048d31a1
Merge branch 'master' into faster_wcwidth
2017-07-17 11:06:38 -07:00
Jörg Breitbart
598a729fc0
fixes #799 - lookup table is created on first wcwidth call for char > 127
2017-07-17 19:07:02 +02:00
Jörg Breitbart
6ed5c9e64d
speed test commented out
2017-07-16 23:53:41 +02:00
Jörg Breitbart
1232c00dd1
some fixes
...
- commenting the bit shifts
- switching to Uint32Array
- conditional for TypedArray
- fixing Math.floor slowdown in bisearch
2017-07-16 23:40:36 +02:00
Jörg Breitbart
5d87b54390
test speedup defensive
2017-07-16 14:09:25 +02:00
Jörg Breitbart
6733c6ce1f
test speedup defensive
2017-07-16 14:05:55 +02:00
Jörg Breitbart
ba2d0e8df2
fixing whitespaces
2017-07-16 13:57:04 +02:00
Jörg Breitbart
1722248065
fixing whitespaces
2017-07-16 13:48:48 +02:00
Jörg Breitbart
dd0fcb6320
fixing whitespaces
2017-07-16 13:44:00 +02:00
Jörg Breitbart
b965d0a0af
faster wcwidth with lookup table
2017-07-16 13:26:38 +02:00
Paris Kasidiaris
634f4e29aa
Remove redundant comment
2017-07-16 03:47:15 +03:00