From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Q on using shell mode remotely Date: Wed, 2 Aug 2006 08:42:00 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154533433 20665 80.91.229.2 (2 Aug 2006 15:43:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Aug 2006 15:43:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 02 17:43:52 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G8Irx-000280-N9 for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Aug 2006 17:42:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8Irx-0005lb-3h for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Aug 2006 11:42:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G8Irk-0005jX-2I for help-gnu-emacs@gnu.org; Wed, 02 Aug 2006 11:42:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G8Iri-0005jA-CI for help-gnu-emacs@gnu.org; Wed, 02 Aug 2006 11:42:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8Iri-0005j2-8W for help-gnu-emacs@gnu.org; Wed, 02 Aug 2006 11:42:34 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1G8Iuq-00047o-SG for help-gnu-emacs@gnu.org; Wed, 02 Aug 2006 11:45:49 -0400 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k71LUtl1012817; Wed, 2 Aug 2006 10:42:31 -0500 Original-Received: from dradams-lap.us.oracle.com by rcsmt251.oracle.com with ESMTP id 1683969861154533320; Wed, 02 Aug 2006 09:42:00 -0600 Original-To: "Kevin Rodgers" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Whitelist: TRUE X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36416 Archived-At: > (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.