Daniel Imms
f8e7ff24d9
Merge core into common
...
Part of #1507
2019-06-08 16:09:27 -07:00
Daniel Imms
49c8270b1c
Use absolute paths for modules in root project
2019-05-26 11:46:58 -07:00
Daniel Imms
000fefdead
Move ColorManager to ui
...
Part of #2005
Part of #1507
2019-05-18 17:49:48 -07:00
Daniel Imms
228ec7b818
Move BufferLine into core
2019-05-09 22:15:32 -07:00
Daniel Imms
f381cdfc33
Move a bunch of types to core
2019-05-09 21:57:33 -07:00
Jörg Breitbart
079729f1b4
change property getter into methods
2019-02-01 01:10:20 +01:00
Jörg Breitbart
62dfa84d5d
remove get CharData calls from codebase (beside tests)
2019-01-05 01:01:10 +01:00
Jörg Breitbart
0340d91150
first step to buffer redesign: class TerminalLine; discourage low level index access to cells
2018-08-25 22:41:42 +02: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
Daniel Imms
ae32893732
Disallow trailing commas
2018-03-20 09:10:48 -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
7639131c12
Ensure underscore is used for private vars
...
Variables changed based on regex: "private [^(_|get)]"
2018-03-08 06:09:46 -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
2e23dd34e0
Move xterm-internal types back into Types.ts files
2018-01-25 11:06:52 -08:00
Daniel Imms
e4abd4dd8a
Move Shared interfaces into a new typings file
...
This will enable sharing the internal interface with addons (and catching
breakages early)
2018-01-19 09:48:33 -08:00
Daniel Imms
9c4ef2fd86
Merge remote-tracking branch 'origin/master' into fix_lint
2018-01-18 12:11:21 -08:00
Daniel Imms
b1beee3595
Fix cursor lagging behind when blink is on
...
Fixes #1216
2018-01-18 07:54:45 -08:00
Daniel Imms
4588d15738
Add more tslint rules, fix attach addon
2018-01-17 10:40:42 -08:00
Daniel Imms
91d22e3d84
Add null check before cursor is drawn
2017-09-28 21:23:27 -04:00
Daniel Imms
b9872c9a67
Merge remote-tracking branch 'ups/v3' into 963_cursor_accent
2017-09-14 09:02:32 -07:00
Daniel Imms
ea0c2285bc
Merge remote-tracking branch 'ups/v3' into 963_cursor_accent
2017-09-14 09:02:00 -07:00
Daniel Imms
aca7ab63e8
Set background color on Renderer immediately
...
Prevents black flash on init
2017-09-14 00:22:57 -07:00
Daniel Imms
3656617044
Start merging fg/bg layers, draw using SP-AA
2017-09-13 15:21:40 -07:00
Daniel Imms
ae741348a6
Fix several issues with line height
...
Fixes #966
Fixes #967
2017-09-10 10:31:19 -07:00
Daniel Imms
6c06d83525
Support theming cursor accent color
...
Fixes #963
2017-09-10 08:01:16 -07:00
Daniel Imms
75b91c618e
Update license text
2017-09-08 10:16:42 -07:00
Daniel Imms
ea8dbbd29f
Underline links on hover
2017-09-07 10:20:48 -07:00
Daniel Imms
5c2d5dcd27
Document methods of BaseRenderLayer
2017-09-04 19:34:57 -07:00
Daniel Imms
0bfdff0b39
Theme unfocused cursor using cursor color
2017-09-04 08:09:43 -07:00
Daniel Imms
8427f7490d
Clear state when resizing as canvases get cleared
2017-09-02 21:13:44 -07:00
Daniel Imms
32a3c9812d
Support wide character drawing and cursors
2017-09-02 10:17:49 -07:00
Daniel Imms
ae72e1c51e
Fix uncached chars bleeding into other cells
2017-09-02 09:49:48 -07:00
Daniel Imms
cf7237d2a4
Fix remaining cursor animation state issues
2017-09-01 23:47:17 -07:00
Daniel Imms
06b54585a1
Fix cursor render when after focusing underline/bar
2017-09-01 23:11:39 -07:00
Daniel Imms
f8ece108c6
Rerender cursor if state changes
2017-09-01 23:00:29 -07:00
Daniel Imms
4919c40b57
Add cursor to ITheme
2017-09-01 22:53:21 -07:00
Daniel Imms
dc1e727613
Support blurred cursor
2017-09-01 22:42:31 -07:00
Daniel Imms
1f444b1913
Support invisible attr
2017-09-01 20:51:18 -07:00
Daniel Imms
2c9dbc6191
Add some jsdoc
2017-09-01 16:58:02 -07:00
Daniel Imms
de4fcb9241
Merge render layer interface types
2017-09-01 16:54:26 -07:00
Daniel Imms
62fea4d3ed
Add theme support
2017-09-01 15:50:18 -07:00
Daniel Imms
076156b66e
Properly support blinking cursors
2017-09-01 12:59:18 -07:00
Daniel Imms
3fc500b291
Pull cursor animation state management into a helper class
2017-09-01 12:11:07 -07:00
Daniel Imms
882d7e4a30
Add basic support for cursor blinking
2017-09-01 11:34:52 -07:00
Daniel Imms
510940389c
Provide convenience draw methods that deal with cells
2017-08-31 23:01:17 -07:00
Daniel Imms
9323833fcc
Move scaledCharWidth/Height into base render layer
2017-08-31 22:48:08 -07:00
Daniel Imms
6588e9e01b
Fix cursor which cursor character is rendered
2017-08-31 22:43:48 -07:00
Daniel Imms
15c73ef94f
Add fontSize and fontFamily options
2017-08-31 22:42:39 -07:00
Daniel Imms
c88824155f
Simplify color generation code
2017-08-31 21:18:55 -07:00
Daniel Imms
1998675dc0
Move char drawing to base and use in cursor layer
2017-08-31 17:29:58 -07:00