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
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
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
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
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
Jörg Breitbart
55993ada9b
merge with remote
2018-04-24 00:35:55 +02: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
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
Jörg Breitbart
20760d09e4
utilize more typescript features
2018-04-22 04:34:42 +02:00
Jörg Breitbart
73f40ef7d2
merge with master
2018-04-21 16:04:17 +02:00
Jörg Breitbart
9b085d2bdd
new parser
2018-04-21 16:02:46 +02:00
Jörg Breitbart
fb7e5d590c
new parser
2018-04-21 05:12:24 +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