dyweb / blog

Dongyue Tech Blog
https://blog.dongyueweb.com
14 stars 7 forks source link

[post] Write a web terminal in go using websocket #39

Open at15 opened 5 years ago

at15 commented 5 years ago

Type

Related

Description

My ubuntu is too old and guake does not support split screen terminal in that version, so I decided to use one in browser. Also was working on udash example ...

The key of a web terminal is ... add a \n if the input does not have one, otherwise you will only read what you write (because a pseudo terminal is actually a file /dev/ptmx) and without a \n bash don't take any action .... (took me a while to figure it out)

Update