mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Remove unneeded manual headless test
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
This is a basic manual test for 'xterm-headless':
|
||||
|
||||
```sh
|
||||
# From repo root
|
||||
yarn build
|
||||
yarn package-headless
|
||||
cd headless/test
|
||||
node index.js
|
||||
```
|
||||
@@ -1,12 +0,0 @@
|
||||
import { createRequire } from 'module';
|
||||
const require = createRequire(import.meta.url);
|
||||
const Terminal = require('../headless/lib-headless/xterm.js').Terminal;
|
||||
|
||||
console.log('Creating xterm-headless terminal...');
|
||||
const terminal = new Terminal();
|
||||
console.log('Writing to terminal...')
|
||||
terminal.write('foo \x1b[1;31mbar\x1b[0m baz', () => {
|
||||
const bufferLine = terminal.buffer.normal.getLine(terminal.buffer.normal.cursorY);
|
||||
const contents = bufferLine.translateToString(true);
|
||||
console.log(`Contents of terminal active buffer are: ${contents}`); // foo bar baz
|
||||
});
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"name": "test",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": ""
|
||||
}
|
||||
Reference in New Issue
Block a user