From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mark Plaksin Newsgroups: gmane.emacs.help Subject: term-mode, ESC AnSiT, and screen Date: Tue, 06 Jan 2004 19:29:12 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073437820 1047 80.91.224.253 (7 Jan 2004 01:10:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2004 01:10:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 07 02:10:16 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ae2DA-0003yD-00 for ; Wed, 07 Jan 2004 02:10:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ae38O-00050w-Cn for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jan 2004 21:09:24 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ae35Z-0003E9-G5 for help-gnu-emacs@gnu.org; Tue, 06 Jan 2004 21:06:29 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ae2iX-0002mE-AA for help-gnu-emacs@gnu.org; Tue, 06 Jan 2004 20:43:13 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ae2hm-0002Is-Ki for help-gnu-emacs@gnu.org; Tue, 06 Jan 2004 20:41:54 -0500 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Ae1kB-0000TN-00 for ; Wed, 07 Jan 2004 01:40:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ae1ZR-0000Nw-00 for ; Wed, 07 Jan 2004 01:29:13 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Ae1ZR-0007YS-00 for ; Wed, 07 Jan 2004 01:29:13 +0100 Original-Lines: 18 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:s7ClU2rq3omQKxlfWAwOqpeD3Os= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15749 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15749 If term-mode sees ESC AnSiTc DIR, it updates default-directory based on the DIR provided. term-mode also uses AnSiTu (u for user) and AnsiTh (host). With these you can track the directory even if you are on a remote host. Send the right host, user, and directory, and you can use TRAMP to load files from the remote host. It's wonderful! It fails to work if you run screen inside your term-mode buffer. screen discards ESC A so you just end up with 'nSiTc DIR' displayed on the screen. Thinking this was a screen bug, I asked the screen folks about it. So far they have asked if ANSI X3.64 says you should preserve or discard undefined escape sequences. And, of course, they asked if term-mode could use a different sequence :) Was ESC A selected because it wasn't defined and it should be passed through? Everything besides screen passes it so I'm guessing that everything but screen is doing the right thing :) Thanks!