From: Bart Schaefer <schaefer@brasslantern.com>
To: Jaime Vargas <jev@mac.com>
Cc: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: zpty woes (enhancement request)
Date: Tue, 20 May 2008 09:25:58 -0700 [thread overview]
Message-ID: <080520092558.ZM10385@torch.brasslantern.com> (raw)
In-Reply-To: <5BA613C5-8227-4803-AFD1-EA2AF754DB20@mac.com>
On May 20, 10:28am, Jaime Vargas wrote:
}
} It would be nice if zpty had a call to inspect the pseudo-terminal
} buffer.
There is no "pseudo-terminal buffer" to examine. From the point of
view of the calling shell, there's only a bi-directional pipe; things
can be read and written exacly once in each direction. This isn't
like curses where there's an internal "screen image" maintained that
you might peek at. It's only the process running on the pseudo-tty
that gets a buffered terminal-like view of the interaction.
} I find that `zpty -r' with or without pattern to be very
} difficult to debug. Any ideas on below problem?
I don't know what might be causing the problem, though I suspect it's
something ssh-related.
Try changing
zpty -b ch ssh -l ${user} ${host}
to
zpty -b ch script -q -c \"ssh -l ${user} ${host}\"
Then examine the resulting typescript file.
next prev parent reply other threads:[~2008-05-20 16:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-15 12:02 zpty woes Jaime Vargas
2008-05-15 13:10 ` Stephane Chazelas
2008-05-15 13:18 ` Peter Stephenson
2008-05-15 14:50 ` Stephane Chazelas
2008-05-15 15:26 ` Peter Stephenson
2008-05-15 16:25 ` Jaime Vargas
2008-05-15 16:36 ` * " Peter Stephenson
[not found] ` <99E8D43E-EC34-48DB-A5AD-BFA197A3AAA3@mac.com>
2008-05-15 17:03 ` Stephane Chazelas
[not found] ` <480CEB80051F27AE@mac.com>
2008-05-15 17:38 ` Jaime Vargas
2008-05-15 17:53 ` Jaime Vargas
2008-05-20 3:25 ` Jaime Vargas
2008-05-20 14:28 ` zpty woes (enhancement request) Jaime Vargas
2008-05-20 16:25 ` Bart Schaefer [this message]
2008-05-15 13:26 ` zpty woes Stephane Chazelas
2008-05-15 15:44 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=080520092558.ZM10385@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=jev@mac.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).