From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "stewartbryson@gmail.com" Newsgroups: gmane.emacs.help Subject: Tramp handling of customized prompts Date: Tue, 05 Jun 2007 06:28:11 -0700 Organization: http://groups.google.com Message-ID: <1181050091.976357.240580@q75g2000hsh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1181055460 29473 80.91.229.12 (5 Jun 2007 14:57:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2007 14:57:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 05 16:57:39 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HvaTa-0000CP-9Q for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2007 16:57:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvaTZ-0000WT-UY for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2007 10:57:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 12.44.84.194 Original-X-Trace: posting.google.com 1181050092 13575 127.0.0.1 (5 Jun 2007 13:28:12 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 5 Jun 2007 13:28:12 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q75g2000hsh.googlegroups.com; posting-host=12.44.84.194; posting-account=9_8k5w0AAACEdxlKdc1yk4pE1k7wpL_l Original-Xref: shelby.stanford.edu gnu.emacs.help:149077 X-Mailman-Approved-At: Tue, 05 Jun 2007 10:57:23 -0400 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:44667 Archived-At: What is the best approach for handling customized input prompts from remote shells? I tried writing a coupled regexp and function to handle it, and put the couple in the variable tramp-actions-before-shell, but I am not able to successfully pull the correct buffer/process, as the required tramp functions are not available to me. Basically, I have a screen that asks me to select a database profile from a list. Ultimately, I would like to see that output and choose one, but I know that's probably not possible. Always responding with a "0" (zero) would be a viable solution, and then one I tried coding. Thanks very much. Stewart