this is based on xtermjs, expanded some functions
npm install xterm-quick-use``bash`
npm install xterm-quick-use
`javascript
// import xterm css
import "../node_modules/@xterm/xterm/css/xterm.css";
// import xterm-quick-use
import { XTermQuickUse } from "./terminal";
// create Instance,need a container element
const quickUse = new XTermQuickUse(container, options?);
// get xterm instance
const xterm = quickUse.xterm;
`
| Features | API | Description |
| :-------------: | :-----------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Clipboard | copy/paste | Automatically read, write, and cut from/to the clipboard in Browser.EventListener
It also listening browser copy/paste event, see details in EventListener. |
| | quickInstance.on(EventType, callback) | xtermjs does not provide a read/write lifecycle API,Perhaps there will be more in the future
in this case you can not Inject some hooks for unified processing before
writing.
EventTypes : copy、paste、beforeWrite |autoResize
| | / | Based on @xterm/fitAddon`, auto add a container resizeObserver for triggering fit. |