|
- Xterm. js
Terminal front-end component written in JavaScript that works in the browser
- GitHub - xtermjs xterm. js: A terminal for the web
Xterm js is a front-end component written in TypeScript that lets applications bring fully-featured terminals to their users in the browser It's used by popular projects such as VS Code, Hyper and Theia
- 用 xterm. js 实现一个简易的 web-terminal - 掘金
幸好官方已经提出了解决方案,那就是用 node-pty 进行自动解析。 使用方式也很简单,官网有如下代码 大意就是让 onData 返回的 UTF-16 UCS-2 字符串用 node-pty 解析成系统可读的 UTF-8 编码的字符串来完成输入,很明显,我们需要创建他们之间的联系,把 xterm js 当浏览器的图形渲染界面, node-pty 当服务端监听输入的并转码的工具,通过 websocket 来关联起两边的关系,看上去可行! 既然知道 node-pty 可以解析,我们首先需要安装它,根据官网的描述,不同系统安装 node-pty 需要有不同的准备工作,这也可以理解,因为不同系统会有不同的差异。
- Creating A Browser-based Interactive Terminal (Using XtermJS . . . - Eddymens
For this demo, I used XtermJS [↗] It provides the look of a terminal and as well as a bunch of hooks XtermJS does not handle the interpretations of terminal commands, it only provides the interface and captures and makes the user's input available to you through keystroke hooks
- xtermjs Tutorial - Implement bash commands - HayaGeek
This xtermjs tutorial will guide you through the basics of using xterm js, setting up a terminal in your HTML, and implementing simple bash commands like echo and cat
- 浅析如何使用前端终端组件Xterm. js制作一个web terminal及遇到的元素自适应、字符删除与上下键切换命令等问题 - 古兰精 - 博客园
xterm 是一个使用 TypeScript 编写的前端终端组件,可以直接在浏览器中实现一个命令行终端应用。 Xterm js 适用于大多数终端应用程序,如 bash,vim 和 tmux,这包括对基于curses的应用程序和鼠标事件的支持。 Xterm js 非常快,它甚至还包括一个GPU加速的渲染器。 这里有一些 api 介绍,可以看下先:Class: Terminal —— https: xtermjs org docs api terminal classes terminal 这里有篇博客对这个 api 的一些翻译:初窥Xterm js —— https: juejin cn post 6844903809035010055
- xterm - npm
Xterm js is a front-end component written in TypeScript that lets applications bring fully-featured terminals to their users in the browser It's used by popular projects such as VS Code, Hyper and Theia
- Documentation - Xterm. js
Terminal front-end component written in JavaScript that works in the browser
|
|
|