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
Benjamin Woodruff
be32695e16
Merge pull request #1391 from LinusU/bright-vs-bold
...
Separate bright and bold
2018-05-08 18:43:41 -07: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
e48b15e859
Merge pull request #1422 from flybayer/italic
...
Add support for italic rendering
2018-05-01 11:56:21 -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
381d3e1444
Merge pull request #1413 from bgw/batch-background
...
Batch background draws together to reduce draws
2018-04-27 20:53:32 -07:00
Benjamin Woodruff
b97eaf2c52
Merge branch 'master' into batch-background
2018-04-27 20:49: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
Daniel Imms
7b2500bfd6
Merge pull request #1420 from pro-src/patch-1
...
Update README.md
2018-04-27 09:44:47 -07:00
pro-src
882d5a86d3
Update README.md - prefer hex escapes over octal
2018-04-27 02:19:48 -05:00
Brandon Bayer
235982362c
Add support for italic rendering
2018-04-26 17:34:01 -04:00
pro-src
994895af6d
Update README.md
...
Replace the deprecated octal escapes with Unicode escapes.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Deprecated_octal
2018-04-26 11:53:20 -05: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
83fe87d012
Merge pull request #1407 from Tyriar/enum_names
...
Enforce upper case for public const/enum members and const
2018-04-24 11:00:58 -07:00
Daniel Imms
3713d282d8
Fix conflicts
2018-04-24 10:55:53 -07:00
Daniel Imms
8aa65d06f5
Merge pull request #1404 from Tyriar/no_else_return
...
Add no else return tslint rule
2018-04-24 10:50:27 -07:00
Daniel Imms
fd97fead60
Merge branch 'master' into no_else_return
2018-04-24 10:44:54 -07:00
Benjamin Woodruff
ff19ba8e33
Merge pull request #1393 from bgw/text-render-layer
...
Separate foreground & background rendering passes
2018-04-23 21:48:09 -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
Daniel Imms
716a8d5926
Merge pull request #1403 from jerch/performance_optimizations
...
performance optimizations
2018-04-23 13:49:03 -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
a3ce881897
Merge pull request #1372 from Tyriar/1341_memory_leak
...
Remove terminal references on dispose
2018-04-18 08:10:20 -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
cf8fa10205
Merge pull request #1299 from jonaustin/patch-1
...
Add Hyper to list of apps
2018-04-16 09:40:07 -07:00
Daniel Imms
d8d9d904b5
Merge branch 'master' into patch-1
2018-04-16 09:39:02 -07:00
Daniel Imms
cd7911a3d4
Merge pull request #1390 from Tyriar/third_party_addons
...
Add xterm-webfont addon to readme
2018-04-16 06:55:35 -07:00
Daniel Imms
3625a2278d
Merge pull request #1365 from Tyriar/1364_addon_lint
...
Lint addon files
2018-04-16 06:46:42 -07:00
Daniel Imms
7d108999ff
Fix lint
2018-04-16 06:42:16 -07:00
Daniel Imms
e3dc36c123
Add xterm-webfont addon to readme
2018-04-16 06:28:45 -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