From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Q on using shell mode remotely
Date: Mon, 31 Jul 2006 11:05:24 -0700 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICKEBKDIAA.drew.adams@oracle.com> (raw)
In-Reply-To: <ealg1b$jtr$1@sea.gmane.org>
Drew Adams wrote:
> When I use M-x telnet, I get a prompt that looks like this:
>
> > 8:34am
...
> Any ideas on how to deal with this? Either 1) how to
> recognize the presence of the added time (appearing at the left)
> and treat it as part of the prompt, or 2) (not as good, because
> it won't help others who use my code) how to tell telnet not to
> use the time part of the prompt? Is there some
> variable similar to `comint-prompt-regexp' that will pick up
> $rprompt (or the concatenation of $prompt and $rprompt)?
Why can't you just add a time pattern to telnet-prompt-pattern, which is
used to set the buffer-local value of comint-prompt-pattern:
(eval-after-load "telnet"
'(setq telnet-prompt-pattern
(concat telnet-prompt-pattern
"\\([12]?[0-9]:[0-5][0-9][ap]m\\)?")))
Thanks again. I didn't know about `telnet-prompt-pattern'. I used `C-h m'
and searched for "prompt", but the only occurences there are
`comint-next-prompt' and `comint-previous-prompt'. I found nothing in the
manual either. (I should have just used completion or apropos to look for a
"telnet-" prompt variable.)
I'll use `telnet-prompt-pattern', myself, to hack this problem, but it would
be good if there were a variable that dealt with $rprompt somehow.
next prev parent reply other threads:[~2006-07-31 18:05 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 [this message]
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 ` Q on using shell mode remotely Drew Adams
2006-08-02 16:33 ` 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=DNEMKBNJBGPAOPIJOOICKEBKDIAA.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).