Daniel Imms
b60ab119b2
Merge branch 'master' into italic
2018-05-01 11:30:03 -07:00
Jörg Breitbart
c7fdff2f40
several changes:
...
- missing escape sequence related methods in InputHandler implemented
- created namespace for C1 control codes
2018-05-01 17:50:41 +02:00
Jörg Breitbart
2eeb7b8ea5
ESC and OSC method entries for InputHandler
2018-05-01 16:36:12 +02:00
Jörg Breitbart
0535f5d1b3
unified method signature in InputHandler, moved some CSI condition into methods (FIXME: needs intermediate handler)
2018-05-01 14:58:16 +02:00
Jörg Breitbart
aeae688b4c
multiple changes in InputHandler:
...
- remove prefix/postfix
- optional collect arg where needed
- tempPrefix handler removed
- replaced .bind with () => notation
- moved callback registering to ctor again
2018-05-01 14:32:08 +02:00
Jörg Breitbart
af392a6305
cleanup, some docs, temp fix for InputHandler tests
2018-04-30 23:35:54 +02:00
Jörg Breitbart
ba6fcddc43
real merge of InputHandler and ParserTerminal
2018-04-30 17:04:29 +02:00
Jörg Breitbart
dbc6b12ec2
missing whitespace
2018-04-30 15:44:21 +02:00
Jörg Breitbart
645cd2eb2c
fix test cases
2018-04-30 15:38:17 +02:00
Jörg Breitbart
b158176862
local .buffer in parse
2018-04-30 14:25:29 +02:00
Jörg Breitbart
a1035269d5
add array fallback for TransitionTable
2018-04-30 11:27:10 +02:00
Jörg Breitbart
f5375c3a99
fix error in esc handler call
2018-04-30 02:06:57 +02:00
Jörg Breitbart
a55a7f3695
some cleanup
2018-04-30 01:49:29 +02:00
Jörg Breitbart
826cca7088
fix import issue
2018-04-30 01:32:49 +02:00
Jörg Breitbart
0f3d82a2a5
faster print action
2018-04-29 23:48:30 +02:00
Jörg Breitbart
dc14f5226d
fix InputHandler
2018-04-29 19:34:43 +02:00
Jörg Breitbart
27a3347c3f
Merge branch 'master' into new_parser
2018-04-29 19:30:35 +02:00
Jörg Breitbart
2d77fcf2fb
merge ParserTerminal with InputHandler
...
- quick'n dirty merge of classes - ParserTerminal is subclass of InputHandler
- basic fallback handlers implemented
- test regressions due to multiple changes in EscapeSequenceParser
- runtime down to 2.3s
- TODO: fix tests, implement DCS functions, full merge of classes
2018-04-29 19:10:47 +02:00
Jörg Breitbart
9d2bbd199c
remove term from EscapeSequenceParser
2018-04-29 17:23:38 +02:00
Jörg Breitbart
b72cdadd11
move switches to jump tables
2018-04-29 15:48:19 +02: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
Daniel Imms
aaaec75d73
Add remaining naming conventions into tslint
2018-04-26 13:54:20 -07: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
Jörg Breitbart
9eb107a6e9
first handler API changes
2018-04-24 18:53:19 +02:00
Jörg Breitbart
c0ab2b9a7c
rename enums
2018-04-24 13:06:03 +02:00
Jörg Breitbart
a058395014
move addChar to ParserTerminal
2018-04-24 12:27:43 +02:00
Benjamin Woodruff
453da35f51
Merge branch 'master' into dynamic-char-atlas
2018-04-23 22:43:43 -07:00
Benjamin Woodruff
d254d69ee2
Fix fontWeight options with DynamicCharAtlas
...
The atlas wasn't using these values when setting the font.
2018-04-23 22:15:45 -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
Jörg Breitbart
c8910cc5fe
utilize more typescript features
2018-04-24 00:23:46 +02:00
Jörg Breitbart
f9767073ba
new parser
2018-04-24 00:21:27 +02: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