Replies: 5 comments
-
@DmG-tech There is something really broken with your setup - the error message I suggest to start bytelevel debugging/inspecting of what was sent to the terminal. E.g. for CUP the byte sequence should exactly match |
Beta Was this translation helpful? Give feedback.
-
@jerch I did an experiment. |
Beta Was this translation helpful? Give feedback.
-
Imho there are multiple issues hidden in your errors:
All that being said, your issue is most likely not the frontend (browser side with xterm.js), but on server side and how you bind to the data stream from/to vim. |
Beta Was this translation helpful? Give feedback.
-
Stream from client side implement with xterm-addon-attach (I didn't custom config for it). I send bytes array to remote console: if it's text i get bytes as UTF-8 charsets, else I send clear bytes array. Strem on server:
2:
3:
About X10 encoding: in start config mouseTrackingMode: "none". Wneh i open vim mouseTrackingMode: "vt200". How i set it to x10? |
Beta Was this translation helpful? Give feedback.
-
Well idk anything about your ssh-lib or how to integrate that for terminal emulation. But could it be that the ssh client side is meant to run behind a PTY? It seems you send the ssh output directly to the terminal, which therefore lacks any PTY transformations on client side (ssh client side == your server integration).
You dont set this as a terminal integrator, the app running on the PTY does that (its the responsibility of app side). But it looks like you already deal with binary chunks from the websocket. |
Beta Was this translation helpful? Give feedback.
-
I am developing a remote terminal.
UI: Thymeleaf, xterm.js.
Back: Java, Spring boot, Apache sshd-core.
Connection between front and back - websocket (implement xterm-addon-attach from ui and TextWebSocketHandler from back).
Coonection between back and remote server/console - apache sshd-core.
Code for init and config terminal from UI:
Copy, paste, backspace and other command and function work is correct, but if i am run VIM editor, I have many problems.
When I am running VIM editor i have a log message from xterm.js in debug mode. Char in the example may be different. Example:
xterm.js: Unknown CSI code: {"identifier": "H", "params": [1,1]}
I have a very stranger output from remote server when i execute exit from VIM editor (use
:q!
command). Output can be different and depened from TERM env.TERM=xterm-256colors output:
2RR0;276;0c10;rgb:cccc/cccc/cccc11;rgb:1c1c/2424/31312RR0;276;0c10;rgb:cccc/cccc/cccc11;rgb:1c1c/2424/31312RR0;276;0c10;rgb:cccc/cccc/cccc11;rgb:1c1c/2424/31312RR0;276;0c10;rgb:cccc/cccc/cccc11;rgb:1c1c/2424/31312RR0;276;0c10;rgb:cccc/cccc/cccc11;rgb:1c1c/2424/31312RR0;276;0c10;rgb:cccc/cccc/cccc11;rgb:1c1c/2424/31312RR0;276;0c10;rgb:cccc/cccc/cccc11;rgb:1c1c/2424/31312RR0;...
TERM=vt220 ouput: 2RR2RR2RR2RR2RR2RR2RR2RR2R...
If i use TERM=vt100, output is absent, but I don't have colors and many features like that mouse track control and other.
I want to have all features xterm's type terminal (include colors) work is correct. How i can configure TERM variable, UI or back for it and correct work?
Beta Was this translation helpful? Give feedback.
All reactions