Daniel Imms
435cf91ec7
Merge pull request #1433 from Tyriar/fix_lint
...
Run tslint on all of src/ (for good this time)
2018-05-14 11:33:30 -07:00
Daniel Imms
7a9f291df9
Merge pull request #1446 from Tyriar/1437_fix_link_pointer
...
Fix link cursor CSS
2018-05-12 07:45:20 -07:00
Daniel Imms
9dfce63e55
Simplify cursor styles
2018-05-12 07:44:30 -07:00
Daniel Imms
343cc2b7b2
Merge branch 'master' into alt-click-map-bug
2018-05-11 15:50:40 -07:00
Daniel Imms
0375e0064b
Fix link cursor CSS
...
Ensure pointer overrides the default mouse events mode cursor.
Fixes #1437
2018-05-11 10:03:43 -07:00
Benjamin Woodruff
3971fc9b4e
Save and restore the ctx for cached characters
...
Drawing dim colors sets the globalAlpha to 0.5, so we need to
save/restore the ctx state. Otherwise, every time we draw some dim
content, our display will get progressively dimmer.
I tested this by running `echo '\u001b[2mfoo'` a few times in zsh.
Fixes #1424
2018-05-09 20:34:55 -07:00
npezza93
4edbd507e5
Check if endCol and endRow are present before handling an alt click
2018-05-09 19:35:02 -04:00
npezza93
b162582e66
Handle if getCoords returns null in the AltClickHandler
...
Fixes #1397
2018-05-09 19:31:19 -04:00
Benjamin Woodruff
9893338020
Add drawBoldTextInBrightColors to DEFAULT_OPTIONS
...
This lets term.setOption() work for drawBoldTextInBrightColors.
2018-05-08 18:34:23 -07:00
Linus Unnebäck
ce6139e604
Add drawBoldTextInBrightColors option
2018-05-07 22:23:04 +02:00
Linus Unnebäck
a23354f018
Fully use char atlas for bright & bold colors
2018-05-07 22:23:01 +02:00
Linus Unnebäck
41fd563144
Separate bright and bold
2018-05-07 22:19:01 +02:00
Daniel Imms
9bcecd4e2e
Run tslint on all of source (for good this time)
2018-05-04 10:20:09 -07:00
Daniel Imms
a732952677
Rearrange italic/bold to get _ctx.font validating
2018-05-01 11:50:06 -07:00
Daniel Imms
b60ab119b2
Merge branch 'master' into italic
2018-05-01 11:30:03 -07:00
Benjamin Woodruff
513847fd80
Make BaseRenderLayer's _alpha private again
...
This was accidentally left over from some earlier changes I was playing
with.
2018-04-27 20:47:55 -07:00
Brandon Bayer
235982362c
Add support for italic rendering
2018-04-26 17:34:01 -04:00
Benjamin Woodruff
a5a03c40f2
Batch background draws together to reduce draws
...
Adjacent cells on the same row sharing the same background color will be
drawn using the same `fillCells` call. This should make drawing an
application with a solid or mostly solid background color (e.g. vim)
faster.
I set vim to draw the background color for a file, and started scrolling
through it. Before, _drawBackground was taking around 6ms per frame.
After this commit, it was taking around 0.5ms per frame.
Based on prior experience, I'd expect these results to be more drastic
for larger terminal windows. The demo's window is pretty small.
2018-04-24 23:52:13 -07:00
Daniel Imms
3713d282d8
Fix conflicts
2018-04-24 10:55:53 -07:00
Daniel Imms
fd97fead60
Merge branch 'master' into no_else_return
2018-04-24 10:44:54 -07:00
Daniel Imms
fcde7be62a
Enforce const enums
...
Fixes #1408
2018-04-23 17:35:41 -07:00
Daniel Imms
45b4429712
Merge branch 'master' into enum_names
2018-04-23 17:18:40 -07:00
Daniel Imms
9942dc384d
Enforce upper case for public const/enum members
...
Fixes #1406
2018-04-23 17:17:21 -07:00
Daniel Imms
56f9d423fe
Merge branch 'master' into text-render-layer
2018-04-23 14:15:45 -07:00
Jörg Breitbart
9593cb0cc8
readonly lines; fix for MockBuffer
2018-04-23 22:40:24 +02:00
Jörg Breitbart
7ed7505ce4
change _lines to lines in Buffer
2018-04-23 22:18:05 +02:00
Jörg Breitbart
6ff4ae7194
revert to local const buffer
2018-04-23 22:06:24 +02:00
Daniel Imms
9e863d0377
Add no else return tslint rule
2018-04-23 11:52:42 -07:00
Jörg Breitbart
13d4ab6f8d
remove remnant
2018-04-23 18:32:32 +02:00
Jörg Breitbart
0d7ecd9129
prefetch row in addChar
2018-04-23 18:26:06 +02:00
Jörg Breitbart
dd096c2e8b
const buffer
2018-04-23 17:19:42 +02:00
Jörg Breitbart
0decd77253
map Buffer.lines directly to Buffer._lines
2018-04-23 16:59:55 +02:00
Jörg Breitbart
2bfe74490a
make .buffer local where appropriate
2018-04-23 16:29:19 +02:00
Benjamin Woodruff
0fe59df2e9
Rename startRow/endRow in TextRenderLayer
...
Renaming these to firstRow/lastRow makes the inclusivity of the range
clearer.
Addresses this comment:
https://github.com/xtermjs/xterm.js/pull/1393#discussion_r182471582
2018-04-18 20:22:55 -07:00
Daniel Imms
58c50f08db
Break when the terminal reference is removed
2018-04-18 08:10:05 -07:00
Daniel Imms
984e027c87
Merge branch 'master' into 1341_memory_leak
2018-04-18 08:02:55 -07:00
Benjamin Woodruff
b853aa4929
Separate foreground & background rendering passes
...
I'm primarily interested in doing this because it'll allow me to
optimize the background rendering in later diffs, but this may also make
it possible to fix some minor rendering issues.
Right now, if we draw a single-width character that overflows its cell's
bounds, and the character to the right of it has a background, that
background may cover up the first character's foreground. By drawing the
background in a separate pass, we can avoid those cases.
There's still some issues with how dirty regions are computed that makes
rendering stuff like that flaky, but this at least gets us closer to
"correct" rendering.
Other terminal emulators (e.g. alacritty) render the foreground and
background in separate passes:
https://github.com/jwilm/alacritty/blob/1b7ffea/src/renderer/mod.rs#L766
2018-04-17 21:44:17 -07:00
Daniel Imms
7d108999ff
Fix lint
2018-04-16 06:42:16 -07:00
Daniel Imms
11541be4ae
Merge branch 'master' into 1364_addon_lint
2018-04-16 06:25:48 -07:00
Daniel Imms
ceffb35445
Merge pull request #1369 from Tyriar/897_dead_options
...
Remove unused options
2018-04-16 06:25:18 -07:00
Daniel Imms
e1957ae6aa
Merge remote-tracking branch 'origin/master' into 1364_addon_lint
2018-04-16 06:24:37 -07:00
Daniel Imms
83f9d59d91
Merge pull request #1384 from Tyriar/1383_setoption_exception
...
Guard usages of DOM attached vars in setOption
2018-04-15 13:30:33 -07:00
jpoth
9a1162d7f2
Check if charMeasure is defined in headless mode
2018-04-12 15:43:09 +02:00
Daniel Imms
f6f3e78e2c
Merge pull request #1376 from Tyriar/1324_move_zmodem_demo
...
Move zmodem demo to demo/
2018-04-11 09:38:56 -07:00
Daniel Imms
82897ed56c
Guard usages of DOM attached vars in setOption
...
Fixes #1383
2018-04-10 19:54:49 -07:00
Daniel Imms
cd06786d16
Fix exception when reset is called before open
...
Fixes #1379
2018-04-09 06:13:32 -07:00
Felipe Gasper
86c9b3f92c
Fix zmodem demo.
2018-04-05 07:03:09 -07:00
Daniel Imms
4fbd1adaa9
Move zmodem demo to demo/
...
Fixes #1324
2018-04-04 14:31:25 -07:00
Daniel Imms
e5ee76ded4
Remove terminal references on dispose
...
Part of #1341
Fixes #1370
2018-04-04 11:51:50 -07:00
Daniel Imms
87f21f14a1
Remove unused options
...
Fixes #897
2018-04-04 11:20:25 -07:00