-
It happens to meet my needs exactly. I don't want to implement pty, but I need to implement one that sends a whole sentence when the return key is pressed. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The website source is located here: https://github.com/xtermjs/xtermjs.org But allow me to place an upfront warning here - if you dont connect the terminal to an actual PTY, things will get quite hairy and low-levellish, down to writing single byte inspection for line editing and such in your handlers. Things we take for granted on terminals - you have to implement it yourself. |
Beta Was this translation helpful? Give feedback.
The website source is located here: https://github.com/xtermjs/xtermjs.org
and the terminal js stuff in particular here: https://github.com/xtermjs/xtermjs.org/blob/master/js/demo.js
But allow me to place an upfront warning here - if you dont connect the terminal to an actual PTY, things will get quite hairy and low-levellish, down to writing single byte inspection for line editing and such in your handlers. Things we take for granted on terminals - you have to implement it yourself.