Skip to main content

Questions tagged [xtermjs]

xterm.js is a terminal emulator component written in JavaScript that works in the browser. Use this tag to ask questions about the usage and internals of xterm.js.

xtermjs
0 votes
0 answers
25 views

xterm.js customKeyEventHandler executes twice in NextJS app

I'm integrating xterm.js into a NextJS application custom hook. I have attached a custom key event handler to the the xterm Terminal instance, so that I can handle custom behaviour such as Backspace ...
Michael Shields's user avatar
0 votes
1 answer
161 views

XTerm JS: allowing user input/making commands (in html/js)

Ive been checking out a few HTML/JS/CSS terminals I could use for my site and I came across XTerm.js. I decided to try it out, but I'm a little confused, after plugging in some code I found from a ...
NotHim's user avatar
  • 43
0 votes
1 answer
118 views

Handle multiple clients in a browser terminal that is created by xtermjs

My browser terminal application runs without problem while it is used by a single client but when another client connects to it and tries to use the same terminal is shown to the new client. Also when ...
ivenoidea's user avatar
2 votes
1 answer
315 views

XtermJS "cannot read properties of undefined (reading 'dimensions') v5.3 on NextJs14

EDIT: More information useEffect(() => { // let terminal; if (terminalRef.current) { const terminal = new Terminal({ fontFamily: "Menlo, Monaco, monospace", ...
Bigboss01's user avatar
  • 598
0 votes
0 answers
80 views

Change Terminal Font in Coder

I am using Coder to host a Debian installation, and I would like to change the terminal font to UbuntuMono from Nerd Fonts. I've downloaded and installed the font, as confirmed by running fc-list: [......
NotGene's user avatar
  • 55
0 votes
0 answers
118 views

Terminal text space not fully utilized ( ng-terminal && xterm.js )

I have build an terminal, inside the angular application using the ng-terminal (based on xterm.js). But while writing the text inside the terminal, it does not go beyond certain width (see pic.). We ...
cha1nsaw's user avatar
0 votes
0 answers
139 views

xterm.js : fitAddon.fit() throws ERROR Error: This API only accepts integers

Scenario : on button click, I hit window.open to open new tab in browser where I used the xterm.js inside the component in angular. Problem : ERROR Error: This API only accepts integers code : ...
cha1nsaw's user avatar
0 votes
1 answer
256 views

How to align terminal text to the left in xterm js?

XTerm js is a library to build web interfaces simulating a terminal, Im building a terminal using React JS and xterm. So far I have this code and works, but I despite everything I try from the xterm ...
Rolando Niubó's user avatar
0 votes
1 answer
234 views

Detect when a text editor is run in xterm such as nano,vim etc

I am currently using 5.2.1 version of xterm.js and django in backend. I want to detect when a text editor is run in terminal and log it. My current approach is to filter it using the keywords such as ...
ivenoidea's user avatar
0 votes
0 answers
66 views

ReactJS + Pyodide Terminal not processing python

I have a component to emulate a python terminal, but whenever I type something in, it doesn't process it :(. The dependencies are xtermjs, pyodide, react, and xterm-addon-fit. The code is below (I ...
user avatar
0 votes
0 answers
140 views

How would I parse a shell string in JS?

So I'm creating a terminal environment using XTerm.js, and I want to parse shell commands like so: echo hi >> cool.txt && neofetch would become [ { command: 'echo', args: ['hi'], ...
ThinLiquid's user avatar
0 votes
1 answer
149 views

Save the user prompt that is sent from web terminal to django

I am running a terminal on browser using xterm.js. The program sends the input to django working in backend. The code in views.py is a modified version from MahmoudAlyy github page. The input in the ...
ivenoidea's user avatar
0 votes
1 answer
466 views

xterm.js term.onData is not a function

I am programming a terminal application using xterm.js in frontend and django at backend. Everything works fine but when I try to save the input from the user using onData I get it is not a function ...
ivenoidea's user avatar
1 vote
1 answer
328 views

Why doesn't "writeln" on xterm.js not work when using a socket?

Its really weird that when I write to the console it works but doesn't work when using socket.io. My client: import * as socketio from "socket.io-client"; import React, { useEffect } from &...
DeveloLongScript's user avatar
1 vote
1 answer
358 views

Why don't ANSI escape codes for blinking text work in VS Code's integrated terminal?

color.js console.log('\u001B[32m Green Color Text \u001B[0m'); // outputs "Green Color Text" console.log("\u001B[5m Blinking Text \u001B[0m") // outputs "Blinking Tex" ...
Cemstrian's user avatar

15 30 50 per page
1
2 3 4 5
10