Benjamin Woodruff
cfe936a0b4
Merge ICharAtlasRequest with ICharAtlasConfig
...
ICharAtlasRequest and ICharAtlasConfig need almost exactly the same set
of information, so it's simpler if we just merge the two types.
As an added bonus, this also adds devicePixelRatio to the config, which
helps guarantee that we won't ever accidentally end up with an atlas
using a different pixel ratio than we need.
2018-03-08 23:23:33 -08:00
Daniel Imms
949239dbdc
Merge remote-tracking branch 'origin/master' into 426_alt_scroll
2018-03-08 09:28:02 -08:00
Daniel Imms
b9cbdf6a0d
Fix tests
2018-03-08 06:19:17 -08:00
Daniel Imms
7639131c12
Ensure underscore is used for private vars
...
Variables changed based on regex: "private [^(_|get)]"
2018-03-08 06:09:46 -08:00
Daniel Imms
289b4eeb23
Merge branch 'master' into 426_alt_scroll
2018-03-08 05:37:16 -08:00
Daniel Imms
404a285eaf
Merge pull request #1307 from bgw/split-char-atlas-files
...
Split CharAtlas types and utility functions off
2018-03-08 05:16:44 -08:00
Daniel Imms
b20fe80f9b
Merge pull request #1308 from bgw/rm-did-char-size-change
...
Remove didCharSizeChange logic from renderer
2018-03-08 05:10:53 -08:00
Daniel Imms
ff9814a40d
Merge pull request #1293 from nikonso/allow-named-theme-colors-1195
...
Validate colors
2018-03-08 05:02:50 -08:00
Daniel Imms
855964fbe1
Merge pull request #1296 from olsonpm/fix-paste-newline
...
Paste newlines as \r
2018-03-08 05:02:31 -08:00
Benjamin Woodruff
735dfb4710
Add copyright header to shared/atlas/Types.ts
2018-03-07 23:19:38 -08:00
Benjamin Woodruff
ab69bfbb32
Move rest of atlas implementations to atlas dirs
...
Moves CharAtlas into src/renderer/atlas/ and CharAtlasGenerator into
src/shared/atlas/.
2018-03-07 22:23:19 -08:00
Benjamin Woodruff
70771430b5
Clean up char atlas constant imports/exports
...
- Ensures that everything is only defined in one place, and everything
imports from that place.
- Moves CHAR_ATLAS_CELL_SPACING into a subdirectory of shared/ so that
CharAtlasGenerator can pull from it.
This addresses the comments on
https://github.com/xtermjs/xterm.js/pull/1307/files/454fd4bfb1ab5c9ece
2018-03-07 22:13:41 -08:00
Bruno Ribeiro
41f6ee4f6d
Merge branch 'master' into allow-named-theme-colors-1195
2018-03-06 20:15:32 +00:00
Daniel Imms
6e546c0f30
Merge pull request #1298 from Tyriar/1297_webLinks_addon
...
Pull web link support into an addon
2018-03-06 09:29:33 -08:00
Daniel Imms
bf4dd7de60
Merge branch 'master' into 1287_double_click_exception
2018-03-06 09:28:47 -08:00
Thomas Zilz
ff6ef1b63a
Initialise _wheelPartialScroll to 0 to prevent NaN
2018-03-06 11:39:14 +01:00
Bruno Ribeiro
34034b849f
Merge branch 'master' into allow-named-theme-colors-1195
2018-03-05 23:22:12 +00:00
Daniel Imms
e137530581
Scroll by exact line amount in alt buffer, unify scroll logic
...
Fixes #1304
2018-03-05 14:22:20 -08:00
Daniel Imms
be7788dda6
Merge remote-tracking branch 'origin/master' into 426_alt_scroll
2018-03-05 11:48:40 -08:00
Daniel Imms
7c471f5389
Fix test compile
2018-03-05 11:32:05 -08:00
Daniel Imms
9e62c8692f
Only move horizontally on alt click in normal buffer
...
Fixes #1305
2018-03-05 11:11:54 -08:00
Benjamin Woodruff
18fb134910
Remove didCharSizeChange logic from renderer
...
The only thing `didCharSizeChange` was used for was to figure out if we
need to refresh the character atlas or not. However, `acquireCharAtlas`
already inspects the atlas owned by this terminal, and if it matches, it
avoids generating a new atlas.
So if `didCharSizeChange` is true and it's not needed, it quickly bails
out as a no-op. But if `didCharSizeChange` is false, and it was needed
(possible given the complexity of testing all of these edge cases), it
could introduce a bug.
I think it makes sense to just get rid of `didCharSizeChange`, and just
always call `acquireCharAtlas`.
2018-03-04 20:55:42 -08:00
Benjamin Woodruff
454fd4bfb1
Split CharAtlas types and utility functions off
...
I'm starting to pull some changes off of my large WIP branch/commit that
adds an alternative dynamic character atlas. We're going to need to
support multiple CharAtlas implementations, and this should make that
easier.
2018-03-04 18:50:46 -08:00
Daniel Imms
c8017345f1
Merge pull request #1288 from dgriffen/dev/dgriffen/fix-scrollbar
...
fix terminal width calculation
2018-02-24 11:56:35 -08:00
Daniel Imms
0d2cc7489e
Fix tests, add webLinks addon test
2018-02-24 10:36:34 -08:00
Daniel Imms
6a71717751
Allow customization of the web links handler and options
2018-02-23 11:28:14 -08:00
Daniel Imms
dc822787d0
Move http links to the new webLinks addon
...
Fixes #1297
2018-02-23 11:11:23 -08:00
Philip Olson
bc35f28f51
Paste newlines as \r
...
Fix issue where non-windows OS terminals don't paste newlines correctly
into misbehaving programs. As noted in JetBrains/jediterm#136 , the
most practical solution is for terminals to handle this in their paste
logic. In a perfect world, all terminal programs would implement
bracketed paste mode properly, but that's a lot to ask.
- translate newlines to \r which is what terminal programs expect
2018-02-22 23:52:45 -06:00
Bruno Ribeiro
97feb64e94
Merge branch 'master' into allow-named-theme-colors-1195
2018-02-21 23:51:36 +00:00
Bruno Ribeito
1114977a21
Fix tests
2018-02-21 23:35:37 +00:00
Bruno Ribeiro
a8c5b159a9
Merge branch 'master' into allow-named-theme-colors-1195
2018-02-21 23:17:00 +00:00
Daniel Imms
a91e0e234a
Use const everywhere
2018-02-21 14:44:48 -08:00
Daniel Imms
af5b3f704e
Fix lint
2018-02-21 14:42:04 -08:00
Daniel Imms
45c9763092
Fix indentation
2018-02-21 14:40:22 -08:00
Daniel Imms
db8ba17147
Check audio context ctor before constructing
2018-02-21 14:39:43 -08:00
Daniel Imms
1972bf4bb3
Merge remote-tracking branch 'ups/master' into 1181
2018-02-21 14:36:11 -08:00
Bruno Ribeito
a9d6686e14
Regex is not needed for color validation
2018-02-20 20:38:12 +00:00
Bruno Ribeito
99aa142cef
Fix test -> wrong Regex flag
2018-02-19 23:55:25 +00:00
Bruno Ribeito
f8f1355155
Validate colors
2018-02-19 22:54:09 +00:00
Daniel Imms
ae28814041
Check for valid coords before getting word at coords
...
Fixes #1287
2018-02-16 21:34:57 -08:00
Daniel Griffen
183fd2fe79
fix terminal width calculation
2018-02-16 10:18:03 -08:00
Saad Malik
8324462b32
Merge branch 'master' into ctrl-alt-sequences
2018-02-15 09:49:16 -08:00
Daniel Imms
f089b997c0
Merge branch 'master' into 731_screen_reader
2018-02-14 09:03:31 -08:00
Saad Malik
51d2064061
Merge branch 'master' into ctrl-alt-sequences
2018-02-13 14:59:46 -08:00
Oleksandr Andriienko
b5ba9ae771
Fix xterm.js in headless mode yields TypeError on resize
...
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com >
2018-02-12 12:30:26 +02:00
Saad Malik
6dc49b7d01
Merge branch 'master' into ctrl-alt-sequences
2018-02-08 12:03:38 -08:00
Thomas Zilz
dc759a93bc
Support setting padding on the .xterm element ( #1208 )
...
* Support padding on the .xterm element
2018-02-06 12:31:17 +01:00
Daniel Imms
1ec7b91a98
Merge pull request #1264 from Tyriar/1021_support_modifiers
...
Allow support of modifiers with links
2018-02-06 02:32:00 -08:00
Daniel Imms
c218eebb24
Merge pull request #1266 from Tyriar/1265_sync_when_attached
...
Ensure viewport is attached before syncing scrollbar
2018-02-06 02:24:59 -08:00
Daniel Imms
01d841fec6
Merge pull request #1246 from Tyriar/1245_revert_page_change
...
Revert "Add support for modifiers for PageUp / PageDown keys."
2018-02-02 09:51:28 -08:00