Viraj Sinha
169cbb3fca
Merge branch 'master' into column-select
2018-06-28 15:59:27 -07:00
Viraj Sinha
3202ddc96d
Adds support for column selections if holding alt on mac and shift on windows/linux
2018-06-28 15:55:44 -07:00
Daniel Imms
100143bd02
Merge branch 'master' into 1518_memory
2018-06-28 10:29:07 -07:00
Daniel Imms
d585515de1
Move RenderDebouncer and ScreenDprMonitor into ui
2018-06-23 17:34:01 +10:00
Daniel Imms
ede1d5f7c8
Correctly dispose of Renderer and ScreenDprMonitor
2018-06-21 10:49:03 +10:00
Daniel Imms
086b2c04e0
Make sure DOM renderer doesn't render cells beyond cols
...
Fixes #1523
2018-06-20 23:02:05 +10:00
Daniel Imms
ee935cc68c
Add a null check to charatlas beginFrame call
...
Fixes #1511
2018-06-12 17:27:36 +02:00
Daniel Imms
2aff2eb710
Merge branch 'master' into more_naming_conventions
2018-06-03 07:23:14 -07:00
Daniel Imms
1ca6e51564
Fix lint
2018-06-03 16:06:45 +02:00
Daniel Imms
52be55852e
Merge branch 'master' into 1360_dom_renderer
2018-06-03 06:58:08 -07:00
Daniel Imms
b79ab7212c
Remove a bunch of implicit anys
2018-06-02 18:39:05 -07:00
Lukas Geiger
8989a09853
Prefer const vs let for variables that are only declared once
...
Requires that variable declarations use `const` instead of `let` and `var` if possible.
This is mostly for code readability, performance wins are debatable.
2018-05-30 19:47:28 +02:00
Daniel Imms
82fdcc0771
Get DomRendererRowFactory test coverage to 100%
2018-05-26 08:43:55 -07:00
Daniel Imms
c2b5a243f2
Refactor and add some tests to dom renderer
2018-05-26 08:15:40 -07:00
Daniel Imms
85dada2eed
Merge remote-tracking branch 'origin/master' into 1360_dom_renderer
2018-05-21 09:41:21 -07:00
Daniel Imms
054abd15ea
Save and restore correctly when drawing from static cache
...
Fixes #1424
2018-05-21 09:11:41 -07:00
Daniel Imms
724aa9d6c7
Fix compile and lint
2018-05-21 08:17:07 -07:00
Daniel Imms
1736c1e12d
Prevent outside line-height styles from affecting cursor
...
See Microsoft/vscode#50125
2018-05-18 12:17:39 -07:00
Benjamin Woodruff
7f761b5b9e
Merge branch 'master' into dynamic-char-atlas
...
I did a bunch of testing of various ansi escape codes (including
italics) with all three char atlas implementations (none, static,
dynamic), with and without `drawBoldTextInBrightColors`, and with and
without `enableBold` to test all of the edge cases that I could.
2018-05-17 22:42:52 -07:00
Daniel Imms
2b4c5adb3c
Set font family and size
2018-05-15 11:29:51 -07:00
Daniel Imms
6024e7c5fe
Size row container so scroll bar shows
2018-05-15 10:52:01 -07:00
Daniel Imms
aa1e1c5d94
Scope styles per terminal
2018-05-15 10:18:43 -07:00
Daniel Imms
2f618b37c1
Merge branch 'master' into 1360_dom_renderer
2018-05-15 10:08:09 -07:00
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
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
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
5b5eb48867
Polish
2018-05-04 10:55:41 -07:00
Daniel Imms
09624c18e0
Move standard width to style element
2018-05-04 10:43:54 -07:00
Daniel Imms
9bcecd4e2e
Run tslint on all of source (for good this time)
2018-05-04 10:20:09 -07:00
Daniel Imms
52e71a2530
Support italic
2018-05-04 10:13:21 -07:00
Daniel Imms
6cadd7c4a8
Fill in documentation on new option
2018-05-04 10:02:01 -07:00
Daniel Imms
b14308f2c4
Resolve a bunch of TODOs
2018-05-04 09:38:24 -07:00
Daniel Imms
2c3949375e
Update after a options change
2018-05-04 08:37:41 -07:00
Daniel Imms
e3e4dcb5d1
Support selection
2018-05-04 08:32:03 -07:00
Daniel Imms
e9f4d39f2b
Start on selection
2018-05-04 06:27:40 -07:00
Daniel Imms
d777513b87
Handle focus, emit refresh
2018-05-03 11:58:46 -07:00
Daniel Imms
1d2f356cfd
Add a bunch of constants
2018-05-03 11:44:46 -07:00
Daniel Imms
418f2c6cdf
Fix row height, add cursor
2018-05-03 11:35:04 -07:00
Daniel Imms
58ce5e2110
Only update dimensions when char size changes
2018-05-02 15:05:37 -07:00
Daniel Imms
16393b228d
Initial DOM renderer implementation
2018-05-02 13:32:22 -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
Benjamin Woodruff
453da35f51
Merge branch 'master' into dynamic-char-atlas
2018-04-23 22:43:43 -07:00