145 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
96
views
Tauri + expectrl PTY: interactive CLI freezes when waiting for input (read thread holds mutex) — how to do concurrent read/write safely?
Background
Tauri v2 desktop app (macOS, Apple Silicon) with React + xterm.js frontend.
Rust backend spawns local CLI "agents" (Codex / Gemini) in a PTY using expectrl 0.7.1, forwards output to the ...
1
vote
0
answers
102
views
xterm.js Backspace Not Working After Simulated Autocomplete with TAB
I'm building a terminal interface using xterm.js and handling a remote shell via WebSocket. Autocomplete is server-side—when a user types part of a command like sen and presses TAB, the server ...
0
votes
0
answers
86
views
how do i implement xterm console via proxmox api in nuxt 3
currently i'm coding a nuxt 3 / vue / typescript customer panel for my server hosting company. i'm facing issues when trying to implement shell / xterm from lxc / kvm servers on the slug page in my ...
0
votes
0
answers
53
views
xterm.js generates full row of characters before writeln output
While experimenting with xterm.js I made the follwing fiddle.
const divTerm = document.querySelector("#term");
const xterm = new Terminal({
cols: 100,
rows: 80,
cursorBlink: true
});
xterm....
0
votes
0
answers
74
views
Ruby Net::SSH Freeze when using "rails console" command over SSH
I'm building a web based Terminal that runs against other server by SSH. I'm using Xterm.js for the UI and Net::SSH for the backend. The communication between the website and the backend is inside an ...
1
vote
0
answers
240
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 ...
0
votes
1
answer
882
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 ...
0
votes
1
answer
415
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 ...
2
votes
1
answer
2k
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",
...
0
votes
0
answers
270
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 :
...
0
votes
1
answer
463
views
How to align terminal text to the left in xterm.js?
XTerm js is a library to build web interfaces simulating a terminal, I'm 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 ...
0
votes
1
answer
418
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 ...
0
votes
0
answers
268
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'], ...
0
votes
1
answer
183
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 ...
0
votes
1
answer
801
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 ...