jpoth
9a1162d7f2
Check if charMeasure is defined in headless mode
2018-04-12 15:43:09 +02:00
Daniel Imms
82897ed56c
Guard usages of DOM attached vars in setOption
...
Fixes #1383
2018-04-10 19:54:49 -07:00
Daniel Imms
cd06786d16
Fix exception when reset is called before open
...
Fixes #1379
2018-04-09 06:13:32 -07:00
Daniel Imms
e5ee76ded4
Remove terminal references on dispose
...
Part of #1341
Fixes #1370
2018-04-04 11:51:50 -07:00
Daniel Imms
87f21f14a1
Remove unused options
...
Fixes #897
2018-04-04 11:20:25 -07:00
Daniel Imms
307744be66
Prevent falsy write values
...
Fixes #1363
2018-04-02 08:22:22 -07:00
Benjamin Woodruff
0cb6138cd0
Allow theming with arbitrary CSS color strings
...
This mostly worked before, but clearColor made the assumption that the
colors were always in #RRBBGG format. See the discussion here:
https://github.com/xtermjs/xterm.js/pull/1327#issuecomment-374812842
This changes the internal representation of a color so that we hold onto
into an object containing the original css string along with an RGBA
value encoded as a 32-bit uint. clearColor can then use that RGBA
representation.
Additionally, this deduplicates some code between ColorManager and
Terminal. Terminal was generating the 256 ansi colors the same way
ColorManager was, so this just makes Terminal use the same constant.
2018-03-26 09:47:25 -07:00
Lucian Buzzo
55d6daf8ee
Do not mutate options object used in constructor
...
Connects to #1322
change-type: patch
2018-03-24 16:25:02 +00:00
Daniel Imms
6e1e63e666
Merge pull request #1350 from FGasper/issue_1330_rtl_layout
...
Force LTR for the terminal element
2018-03-23 16:19:02 -07:00
Daniel Imms
b27d5bb08d
Use single quote to make tslint happy
2018-03-23 16:18:41 -07:00
Felipe Gasper
e63831febc
Force LTR for the terminal element
...
Issue #1330 : This prevents RTL layouts from mishandlin the
intended layout of the terminal container and children.
2018-03-23 19:16:02 -04:00
Daniel Imms
63f24be2b9
Merge branch 'master' into 1325_marker_api
2018-03-20 19:02:52 -07:00
Daniel Imms
ae32893732
Disallow trailing commas
2018-03-20 09:10:48 -07:00
Marek Libra
b67b65cd1e
Replace inline-styles by external CSS
...
Selected inline-styles were externalized to xterm.css.
The `Terminal._charSizeStyleElement` is removed since it
was not used anymore.
Fixes: https://github.com/xtermjs/xterm.js/issues/1335
2018-03-20 13:45:08 +01:00
Daniel Imms
0eeec13653
Clean up
2018-03-19 11:01:26 -07:00
Daniel Imms
b80832ac4c
Initial marker API implementation
...
Part of #1325
2018-03-16 12:53:55 -07:00
Daniel Imms
4443ed69c7
Add noUnusedLocals tsconfig flag, fix issues
...
Two parts were commented out:
- _writeStopped: This is because _xoffSentToCatchUp references this variable
and the feature is sort of half implemented/disabled.
- _clearChar: This is because some comments still reference this, it's part
of the work needed to do better line redrawing.
2018-03-08 10:56:10 -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
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
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
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
Daniel Imms
dc822787d0
Move http links to the new webLinks addon
...
Fixes #1297
2018-02-23 11:11:23 -08:00
Daniel Imms
af5b3f704e
Fix lint
2018-02-21 14:42:04 -08:00
Daniel Imms
1972bf4bb3
Merge remote-tracking branch 'ups/master' into 1181
2018-02-21 14:36:11 -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
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
Daniel Imms
43adf0ef70
Merge branch 'master' into feature-778
2018-02-01 17:21:04 -08:00
Daniel Imms
74a6dfb197
Send arrow events on mouse wheel in alt buffer
...
Fixes #426
2018-01-29 11:28:48 -08:00
Saad Malik
73e0db1912
Merge branch 'master' into ctrl-alt-sequences
2018-01-29 10:21:36 -08:00
Daniel Imms
e7b4e002f4
Merge remote-tracking branch 'origin/master' into 1248_tslint_curly
2018-01-29 07:45:31 -08:00
Daniel Imms
a6a4bf0817
Merge remote-tracking branch 'ups/master' into feature-778
2018-01-28 17:25:46 -08:00
Saad Malik
9ade1f0a5d
Add mapping for backward slash
...
* Add mapping for backward slash
* Fix mapping for single/double quote
2018-01-28 17:11:13 -08:00
Saad Malik
f8fbdf31fa
Merge branch 'master' into ctrl-alt-sequences
2018-01-28 16:54:55 -08:00
Daniel Imms
106704b5d8
Merge remote-tracking branch 'ups/master' into pr/1148
2018-01-28 13:39:07 -08:00
Daniel Imms
a0f390ef54
Expose strings through the API
2018-01-28 13:10:11 -08:00
Daniel Imms
7c8b64aaf1
Revert "Hook up scroll APIs to scroll and focus when navigating"
...
This reverts commit b13826441c .
2018-01-27 18:14:58 -08:00
Daniel Imms
b13826441c
Hook up scroll APIs to scroll and focus when navigating
2018-01-27 18:14:52 -08:00
Daniel Imms
0bdf1e8265
Remove unused function
2018-01-27 17:51:43 -08:00
Daniel Imms
963db4d2fd
Remove navigation mode/more rows element
2018-01-27 14:48:45 -08:00
Saad Malik
0104e4214e
Reimplement using map
...
* Reimplemented reg + shift alt digits and characters using a map
* Add test cases for digits
2018-01-26 18:33:37 -08:00
Saad Malik
baaf61b3a3
Merge branch 'master' into ctrl-alt-sequences
2018-01-26 13:38:48 -08:00