Hacker News new | past | comments | ask | show | jobs | submit login

I want to swap the layering shell and the terminal emulator, so each shell command (that needs it) gets it's own pty. I think this will enable a much nicer UI and also simplify things.



This is what tmux is for.


No this is not what tmux is fore. IMO tmux and screens are giant hacks:

- multiplexing: better to use ssh multiplexing, which is just nice in general

- persistence: Yes, you want to open a pty on a the host, but you should actually emulate the terminal on the guest: one should just forward all the pty messages between the guest and host (graphical emlator). In other words, a lot more like regular ssh

- sharing: graphical emulators should just understand that multiple can be hooked up, have some support for this, we can relay the input from one emulator to the others as needed.

For my terminal-inside-shell, I would use a customer server + protocol for managing all the ptys (remember because backgrounded commands there can be multiple).




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: