📦 API
- Add number support to
fontWeight
andfontWeightBold
options (#3062) via @IllusionMH, this now matches the types that the CSS style supports. - Support optional
dispose
function onILink
(#3073) via @Tyriar, this allows consumers to be notified when links are no longer needed which was difficult to observe before.
🐞 Bug fixes
- Fix renderer pausing when
Terminal.open
is called during an animation (#3008) via @andrew-schlackman - Use document role instead of list for the terminal (#3020) via @Tyriar
- Constructor options are now validated just like when using
setOption
(#3064) via @IllusionMH - Fix rendering of multi-line selection when only top row is visible (#3081) via @Tyriar
- Fix first/last line of selection sometimes not rendering with the canvas renderer (#3082) via @Tyriar
📝 Documentation and internal improvements
- Remove the no longer supported Dockerfile from the repo (#3026) via @Tyriar
- Update to TypeScript 4 (#3059) via @Tyriar
🛑 Breaking changes
getOption('fontWeight')
andgetOption('fontWeightBold')
now returnsstring | number
instead ofstring
:This change accepted as the impact on consumers should be minimal due to the low usage of the API.// before 4.9.0 const weight: string = term.getOption('fontWeight'); // after 4.9.0 const weight: string | number = term.getOption('fontWeight');
🎉 New real-world use cases
- Repl.it (#3021) via @sergeichestakov
- TeleType (#3040) via @akshaykmr
- Intervue (#3046) via @Intervue
📥 Addons
xterm-addon-serialize
xterm-addon-webgl
- Expose
WebglAddon.clearTextureAtlas
API (#3075) via @Tyriar, this is useful to completely clear the atlas when corruption may have happened (eg. when canvas textures are lost after system sleep/resume). - Fix rendering of multi-line selection when only top row is visible (#3081) via @Tyriar
🤝 Compatible addon versions
xterm-addon-attach@0.6.0
xterm-addon-fit@0.4.0
xterm-addon-ligatures@0.3.0
(this addon may have issues)xterm-addon-search@0.7.0
xterm-addon-serialize@0.4.0
xterm-addon-unicode11@0.2.0
xterm-addon-web-links@0.4.0
xterm-addon-webgl@0.9.0