Displaying 2 results from an estimated 2 matches for "pseudo_terminal".
2014 Feb 11
1
[SOLVED] Re: What magic did openssh do to handle programs like VIM?
...ll program,
> [...]
>> 2. If I run command like VIM, it doesn't run.
>> And buttons like "<ESC>:q" won't work
>>
>> Can someone enlighten me about what SSH did, so it all works perfectly?
>
> Pseudo terminals: http://en.wikipedia.org/wiki/Pseudo_terminal. ssh
> asks sshd for one when you run an interactive shell (eg "ssh
> yourserver") or you use the -t flag. You can run vim via ssh without
> a pty and it'll behave like your application: "ssh server vim
> somefile".
>
> If you can find a copy of Stevens...
2014 Feb 10
3
What magic did openssh do to handle programs like VIM?
Hi,
I'm trying to write my own remote shell program,
It simply connects to a remote server then copy the sock fd to stdin,
stdout and stderr. And it works.
But I found several problems:
1. It doesn't handle characters like ^A ^E or tab (any bash/readline stuff)
-> openssh itself doesn't seem to incorporate readline, so the
magic is not on readline
2. If I run