![]() The full API for xterm.js is contained within the TypeScript declaration file, use the branch/tag picker in GitHub ( w) to navigate to the correct version of the API. An example use case for this is to keep track of a terminal's state where the process is running and using the serialize addon so it can get all state restored upon reconnection. We also publish xterm-headless which is a stripped down version of xterm.js that runs in Node.js. These are the versions we strive to keep working. Xterm.js works seamlessly in Electron apps and may even work on earlier versions of the browsers. Specifically the latest versions of Chrome, Edge, Firefox, and Safari. Since xterm.js is typically implemented as a developer tool, only modern browsers are supported officially. xterm-addon-web-links: Adds web link detection and interaction.xterm-addon-search: Adds search functionality.xterm-addon-fit: Fits the terminal to the containing element.xterm-addon-attach: Attaches to a server running a process via a websocket. ![]() The xterm.js team maintains the following addons, but anyone can build them: Import from 'xterm-addon-web-links' const terminal = new Terminal ( ) // Load WebLinksAddon on terminal, this is all that's needed to get web links // working in the terminal. Xterm.js can be connected to processes like bash and let you interact with them (provide input, receive output).įirst, you need to install the module, we ship exclusively through npm, so you need that installed and then add xterm.js as a dependency by running: Xterm.js is not a terminal application that you can download and use on your computer.And much more: Links, theming, addons, well documented API, etc.Accessible: Screen reader and minimum contrast ratio support can be turned on.Self-contained: Requires zero dependencies to work.Rich Unicode support: Supports CJK, emojis, and IMEs.Performant: Xterm.js is really fast, it even includes a GPU-accelerated renderer.Terminal apps just work: Xterm.js works with most terminal apps such as bash, vim, and tmux, including support for curses-based apps and mouse events.It's used by popular projects such as VS Code, Hyper and Theia. Xterm.js is a front-end component written in TypeScript that lets applications bring fully-featured terminals to their users in the browser.
0 Comments
Leave a Reply. |