On Tue, Sep 1, 2015 at 2:00 AM, Damien Miller <djm@xxxxxxxxxxx> wrote: > The problem with doing it via enviornment variables is that they > will become invalid if the client ever changes the size of their > window. TTYs support sending SIGWINCH for this and OpenSSH handles > this already. > > Your program should be able to get the correct window size at any > time using: > > struct winsize ws; > if (ioctl(ttyfd, TIOCGWINSZ, &ws) != 0) > error(...); > > -d The issue I have is the redirection of stdin/fd0 which is equal to in_fd in the function where the patch applied. It must be a pipe, or no data will be received by the program due to how file descriptors work. An alternative, probably more agreeable solution would be to open /dev/tty exclusively for the ioctl. Thanks for your consideration. cheers! mar77i _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@xxxxxxxxxxx https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev