From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Q on using shell mode remotely
Date: Wed, 2 Aug 2006 08:42:00 -0700 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICAEBODIAA.drew.adams@oracle.com> (raw)
In-Reply-To: <eaopgk$hlm$1@sea.gmane.org>
> (eval-after-load "telnet"
> '(setq telnet-prompt-pattern
> (concat telnet-prompt-pattern
> "\\([12]?[0-9]:[0-5][0-9][ap]m\\)?")))
>
> I'll use `telnet-prompt-pattern', myself, to hack this problem,
Please let us know if it works.
It works perfectly. Thanks, Kevin.
Looking at telnet.el:
I didn't have time to track down why it works, but it does, so I'm happy.
> but it would
> be good if there were a variable that dealt with $rprompt somehow.
I don't see how it could. The remote csh presumably displays $rprompt
on the right side of the screen via terminal escape codes or simple
ASCII control characters; but the telnet subprocess is discarding that
data, either explicitly via telnet-filter or implicitly via process-
connection-type. So you end up with $rprompt displayed immediately
adjacent to $prompt in your *telnet-HOST* buffer, and you've got to
account for that via telnet-prompt-regexp.
Yes, but if the telnet subprocess can discard the control characters or
whatever, then it could also, say, discard the $rprompt stuff. I'm not
saying it should do that systematically, but it might be good to have an
option to do so.
Anyway, thanks again.
BTW, I filed a bug, to see if we can't 1) make `telnet-prompt-pattern' into
a user option, like `shell-prompt-pattern', and 2) get more visibility for
some of the telnet-specific stuff like `telnet-prompt-pattern' in `C-h m'.
Dired mode describes options and commands, for instance, and that's quite
helpful.
next prev parent reply other threads:[~2006-08-02 15:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-28 21:33 Q on using shell mode remotely Drew Adams
2006-07-28 21:37 ` Drew Adams
2006-07-31 15:09 ` Kevin Rodgers
2006-07-31 16:35 ` Drew Adams
2006-07-31 17:51 ` Kevin Rodgers
2006-07-31 18:05 ` Drew Adams
2006-08-01 23:52 ` Kevin Rodgers
2006-08-02 0:21 ` Emacs\compiling Java Frank Murray
2006-08-02 3:35 ` Eli Zaretskii
2006-08-02 17:54 ` Kevin Rodgers
[not found] ` <mailman.4745.1154478071.9609.help-gnu-emacs@gnu.org>
2006-08-02 11:13 ` Hadron Quark
2006-08-02 15:42 ` Drew Adams [this message]
2006-08-02 16:33 ` Q on using shell mode remotely Drew Adams
2006-08-04 8:00 ` Drew Adams
[not found] <mailman.4613.1154122648.9609.help-gnu-emacs@gnu.org>
2006-07-28 21:46 ` David Kastrup
2006-07-28 22:56 ` Drew Adams
2006-07-29 8:33 ` Eli Zaretskii
2006-07-29 13:47 ` Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNEMKBNJBGPAOPIJOOICAEBODIAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
/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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).