Debian bug report logs - #585
readline() in ftp interferes with emacs ange ftp on vt100

Package: emacs; Reported by: rdr@legislate.com (Raul Miller); 104 days old.

Message received at debian-bugs:


From legislate.com!rdr Wed Mar  8 08:11:50 1995
Return-Path: <rdr@legislate.com>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0rmOKz-0005qtC; Wed, 8 Mar 95 08:11 PST
Received: from [192.77.155.4] by pixar.com with SMTP id AA28355
  (5.65c/IDA-1.4.4 for <debian-bugs@pixar.com>); Wed, 8 Mar 1995 08:11:46 -0800
Received: by [192.77.155.4]
	id m0rmOFj-0004i6C
	(Debian /\oo/\ Smail3.1.29.1 #29.26); Wed, 8 Mar 95 11:06 EST
Message-Id: <m0rmOFj-0004i6C@[192.77.155.4]>
Date: Wed, 8 Mar 95 11:06 EST
From: rdr@legislate.com (Raul Miller)
To: debian-bugs@pixar.com
Cc: tobias@server.et-inf.fho-emden.de
In-Reply-To: <9503081247.AA08219@server.et-inf.fho-emden.de> (tobias@server.et-inf.fho-emden.de)
Subject: Re: readline() in ftp interferes with emacs ange ftp on vt100

Package: emacs
Version: 19.28-2

   > ange-ftp under emacs works fine from the linux console.
   > (e.g. ^X^F/ftp@sunsite.unc.edu:pub/Linux/distributions/debian^M),
   > but fails from a vt100 emulator.  This is because when TERM=vt100
   > ftp puts control character sequences into its prompt
   > (e.g. ^[?1l^[>^[?1h^[=) which prevents emacs from recognizing the
   > prompt.


Peter Tobias:
   Hmmm, I just looked at the ftp sources, it doesn't put any control
   characters in the prompt. The problem is probably the readline
   library and not ftp itself. At least I can't see anything I can do
   with the ftp command to avoid this behaviour.

Hmm... readline or emacs...??  I'm going to call this one an emacs
bug.  There's several ways emacs could deal with this.  The simplest
would be to place the command (setenv "TERM" "dumb") somewhere in the
environment inherited by ange ftp (or maybe place it in the ange ftp
code itself).  For example, the site-init.el file could include this
line.

Alternatively, (setenv "TERM" "emacs") could be used.  This is usually
associated with a (setenv "TERMCAP" ... which defines emacs to be the
same as dumb.  Unfortunately, TERM=emacs is not as
cross-system-compatable as TERM=dumb (which, perhaps, is the point).

I presume that any X applications started by emacs (e.g. during a
compile) will ignore the TERM=whatever and look for a
DISPLAY=something -- I have no reason to expect anything else, but
haven't tested this all that extensively.

Raul

Message sent:


From: iwj10@thor.cam.ac.uk (Ian Jackson)
To: rdr@legislate.com (Raul Miller)
Subject: Bug#585: Acknowledgement (was: readline() in ftp interferes with emacs ange ftp on vt100)
In-Reply-To: <m0rmOFj-0004i6C@[192.77.155.4]>
References: <m0rmOFj-0004i6C@[192.77.155.4]>

Thank you for the problem report you have sent regarding Debian GNU/Linux.
This is an automatically generated reply, to let you know your message has
been received.  It is being forwarded to the developers' mailing list for
their attention; they will reply in due course.

If you wish to submit further information on your problem, please send
it to debian-bugs@pixar.com, but please ensure that the Subject
line of your message starts with "Bug#585" or "Re: Bug#585" so that
we can identify it as relating to the same problem.

Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.

Ian Jackson
(maintainer, debian-bugs)


Message sent to debian-devel@pixar.com:


Subject: Bug#585: readline() in ftp interferes with emacs ange ftp on vt100
Reply-To: rdr@legislate.com (Raul Miller), debian-bugs@pixar.com
Resent-To: debian-devel@pixar.com
Resent-From: rdr@legislate.com (Raul Miller)
Resent-Sender: iwj10@cus.cam.ac.uk
Resent-Date: Wed, 08 Mar 1995 16:18:05 GMT
Resent-Message-ID: <debian-bugs-handler.585.03081616254900@pixar.com>
X-Debian-PR-Package: emacs
X-Debian-PR-Keywords: 
Received: via spool for debian-bugs; Wed, 08 Mar 1995 16:18:05 GMT
Received: with rfc822 via encapsulated-mail id 03081616254900;
          Wed, 08 Mar 1995 16:16:42 GMT
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0rmOKz-0005qtC; Wed, 8 Mar 95 08:11 PST
Received: from [192.77.155.4] by pixar.com with SMTP id AA28355
  (5.65c/IDA-1.4.4 for <debian-bugs@pixar.com>); Wed, 8 Mar 1995 08:11:46 -0800
Received: by [192.77.155.4]
	id m0rmOFj-0004i6C
	(Debian /\oo/\ Smail3.1.29.1 #29.26); Wed, 8 Mar 95 11:06 EST
Message-Id: <m0rmOFj-0004i6C@[192.77.155.4]>
Date: Wed, 8 Mar 95 11:06 EST
From: rdr@legislate.com (Raul Miller)
To: debian-bugs@pixar.com
Cc: tobias@server.et-inf.fho-emden.de
In-Reply-To: <9503081247.AA08219@server.et-inf.fho-emden.de> (tobias@server.et-inf.fho-emden.de)

Package: emacs
Version: 19.28-2

   > ange-ftp under emacs works fine from the linux console.
   > (e.g. ^X^F/ftp@sunsite.unc.edu:pub/Linux/distributions/debian^M),
   > but fails from a vt100 emulator.  This is because when TERM=vt100
   > ftp puts control character sequences into its prompt
   > (e.g. ^[?1l^[>^[?1h^[=) which prevents emacs from recognizing the
   > prompt.


Peter Tobias:
   Hmmm, I just looked at the ftp sources, it doesn't put any control
   characters in the prompt. The problem is probably the readline
   library and not ftp itself. At least I can't see anything I can do
   with the ftp command to avoid this behaviour.

Hmm... readline or emacs...??  I'm going to call this one an emacs
bug.  There's several ways emacs could deal with this.  The simplest
would be to place the command (setenv "TERM" "dumb") somewhere in the
environment inherited by ange ftp (or maybe place it in the ange ftp
code itself).  For example, the site-init.el file could include this
line.

Alternatively, (setenv "TERM" "emacs") could be used.  This is usually
associated with a (setenv "TERMCAP" ... which defines emacs to be the
same as dumb.  Unfortunately, TERM=emacs is not as
cross-system-compatable as TERM=dumb (which, perhaps, is the point).

I presume that any X applications started by emacs (e.g. during a
compile) will ignore the TERM=whatever and look for a
DISPLAY=something -- I have no reason to expect anything else, but
haven't tested this all that extensively.

Raul


Ian Jackson / iwj10@thor.cam.ac.uk, with the debian-bugs tracking mechanism
This page last modified 06:43:02 GMT Wed 21 Jun