Subject: terminal-mode cygwin/emacs problem, was: cygwin emacs HOWTO?
From: Tom Roche <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Mon, 14 Oct 2002 18:00:52 -0400

terminal-mode cygwin/emacs problem

 >>> emacs: Terminal type cygwin is not defined.
 >>> If that is not the actual type of terminal you have,
 >>> use the Bourne shell command `TERM=... export TERM' (C-shell:
 >>> `setenv TERM ...') to specify the correct type.  It may be necessary
 >>> to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.

Tom Roche wrote:
 >> I get the same message for 'emacs -nw'? What do I need to tell
 >> emacs? or cygwin? or both?

Joe Buehler replied:
 > Make sure terminfo is installed -- there should be a file
 > /usr/lib/terminfo/c/cygwin.

There is not: there is not even /usr/lib. But when I run setup,
it says "Keep" and version == 5.2-3.

 > Unset TERMINFO if it is set.

It is not:

 > $ echo $TERM
 > cygwin

 > $ echo $TERMINFO
 >

 > Make sure the CYGWIN variable includes "tty".

I'm assuming you mean in the Windows environment? If so:
I went to Control Panel>System>Advanced>Environment, made a
new system variable CYGWIN, gave it the value "tty" (minus
the quotes), and even rebooted: no change.

 > Also, note that there is a separate package for X11 emacs. If
 > you don't install it, all you get from the "emacs" package is
 > the usual terminal-mode emacs.

OK, I'll give that a shot. FWIW,

cygcheck -s -v -r
 > Cygwin Win95/NT Configuration Diagnostics
 > Current System Time: Mon Oct 14 17:54:21 2002

 > Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2

 > Path:	d:\bin
 > 	d:\bin\cygwin\1.3.13-1\bin
 > 	C:\WINNT\system32
 > 	C:\WINNT
 > 	C:\WINNT\System32\Wbem
 > 	G:\bin\cmvc\1.7\CMVC\EXE

 > SysDir: C:\WINNT\System32
 > WinDir: C:\WINNT

 > CYGWIN = `tty'
 > Path = 
`d:\bin;d:\bin\cygwin\1.3.13-1\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;G:\bin\cmvc\1.7\CMVC\EXE;

 > ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
 > APPDATA = `C:\Documents and 
Settings\tlroche.TLRIBM2312565\Application Data'
 > CMVC_CASESENSE = `ignore'
 > CommonProgramFiles = `C:\Program Files\Common Files'
 > COMPUTERNAME = `TLRF204'
 > ComSpec = `C:\WINNT\system32\cmd.exe'
 > HOMEDRIVE = `C:'
 > HOMEPATH = `\'
 > INCLUDE = `C:\Program Files\ObjREXX\API'
 > LIB = `C:\Program Files\ObjREXX\API'
 > LOGONSERVER = `\\TLRF204'
 > NLSPATH = `G:\bin\cmvc\1.7\CMVC\EXE\NLS\%N'
 > NUMBER_OF_PROCESSORS = `1'
 > OS = `Windows_NT'
 > Os2LibPath = `C:\WINNT\system32\os2\dll;'
 > PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
 > PCOMM_Root = `c:\pcomm2'
 > PDBASE = `d:\ProgramFiles\Infoprint'
 > PD_SOCKET = `6874'
 > PROCESSOR_ARCHITECTURE = `x86'
 > PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 10, GenuineIntel'
 > PROCESSOR_LEVEL = `6'
 > PROCESSOR_REVISION = `080a'
 > ProgramFiles = `C:\Program Files'
 > PROMPT = `$P$G'
 > SOUNDPATH = `C:\WINNT'
 > SystemDrive = `C:'
 > SystemRoot = `C:\WINNT'
 > TEMP = `c:\temp'
 > TMP = `c:\temp'
 > USERDOMAIN = `TLRF204'
 > USERNAME = `tlroche'
 > USERPROFILE = `C:\Documents and Settings\tlroche.TLRIBM2312565'
 > windir = `C:\WINNT'

 > HKEY_CURRENT_USER\Software\Cygnus Solutions
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\00
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\01
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\02
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\03
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\04
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\05
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\06
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\07
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\08
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\09
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\0A
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\0B
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\0C
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\0D
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\0E
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\0F
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\10
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\11
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\12
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\13
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\14
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\15
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\16
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\17
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\18
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\19
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\1A
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\1B
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\1C
 > HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\1D
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
 >   (default) = `/cygdrive'
 >   cygdrive flags = 0x00000022
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
 >   (default) = `D:\bin\cygwin\1.3.13-1'
 >   flags = 0x0000000a
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/c
 >   (default) = `c:'
 >   flags = 0x0000000a
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/d
 >   (default) = `d:'
 >   flags = 0x0000000a
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/e
 >   (default) = `e:'
 >   flags = 0x0000000a
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/f
 >   (default) = `f:'
 >   flags = 0x0000000a
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/g
 >   (default) = `g:'
 >   flags = 0x0000000a
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/t
 >   (default) = `t:'
 >   flags = 0x0000000a
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
 >   (default) = `D:\bin\cygwin\1.3.13-1/bin'
 >   flags = 0x0000000a
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
 >   (default) = `D:\bin\cygwin\1.3.13-1/lib'
 >   flags = 0x0000000a
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/v
 >   (default) = `v:'
 >   flags = 0x0000000a
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/w
 >   (default) = `w:'
 >   flags = 0x0000000a
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\00
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\01
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\02
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\03
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\04
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\05
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\06
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\07
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\08
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\09
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\0A
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\0B
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\0C
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\0D
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\0E
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\0F
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\10
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\11
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\12
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\13
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\14
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\15
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\16
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\17
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\18
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\19
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\1A
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\1B
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\1C
 > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL 
setup\b15.0\mounts\1D

 > a:  fd           N/A    N/A
 > c:  hd  FAT32   4994Mb  38% CP    UN           CDRIVE
 > d:  hd  FAT32  14450Mb  49% CP    UN           DDRIVE
 > e:  cd  CDFS       0Mb -2147483548%    CS              Audio CD
 > f:  hd  FAT32   5041Mb  61% CP    UN           FDRIVE
 > g:  hd  FAT32  23544Mb  82% CP    UN           GDRIVE
 > t:  net NTFS    8789Mb   0% CP CS    PA        dfshome
 > v:  net NTFS    4133Mb  98% CP CS UN PA FC

 > D:\bin\cygwin\1.3.13-1      /          system  binmode
 > c:                          /c         system  binmode
 > d:                          /d         system  binmode
 > e:                          /e         system  binmode
 > f:                          /f         system  binmode
 > g:                          /g         system  binmode
 > t:                          /t         system  binmode
 > D:\bin\cygwin\1.3.13-1/bin  /usr/bin   system  binmode
 > D:\bin\cygwin\1.3.13-1/lib  /usr/lib   system  binmode
 > v:                          /v         system  binmode
 > w:                          /w         system  binmode
 > .                           /cygdrive  user    binmode,noumount

 > Found: d:\bin\cygwin\1.3.10\bin\bash.exe
 > Found: d:\bin\cygwin\1.3.10\bin\cat.exe
 > Not Found: cpp (good!)
 > Found: d:\bin\cygwin\1.3.10\bin\find.exe
 > Not Found: gcc
 > Not Found: gdb
 > Not Found: ld
 > Found: d:\bin\ls.exe
 > Found: d:\bin\cygwin\1.3.10\bin\ls.exe
 > Warning: d:\bin\ls.exe hides d:\bin\cygwin\1.3.10\bin\ls.exe
 > Not Found: make
 > Found: d:\bin\cygwin\1.3.10\bin\sh.exe

 >    19k 2002/02/20 d:\bin\cygwin\1.3.10\bin\cyggdbm.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cyggdbm.dll" v0.0 ts=2002/2/19 22:05
 >    22k 2001/12/13 d:\bin\cygwin\1.3.10\bin\cygintl-1.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygintl-1.dll" v0.0 ts=2001/12/13 4:28
 >    45k 2001/04/25 d:\bin\cygwin\1.3.10\bin\cygform5.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygform5.dll" v0.0 ts=2001/4/25 1:28
 >    26k 2001/04/25 d:\bin\cygwin\1.3.10\bin\cygmenu5.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygmenu5.dll" v0.0 ts=2001/4/25 1:27
 >   156k 2001/04/25 d:\bin\cygwin\1.3.10\bin\cygncurses++5.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygncurses++5.dll" v0.0 ts=2001/4/25 1:29
 >   226k 2001/04/25 d:\bin\cygwin\1.3.10\bin\cygncurses5.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygncurses5.dll" v0.0 ts=2001/4/25 1:17
 >    15k 2001/04/25 d:\bin\cygwin\1.3.10\bin\cygpanel5.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygpanel5.dll" v0.0 ts=2001/4/25 1:27
 >    35k 2002/01/09 d:\bin\cygwin\1.3.10\bin\cygform6.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygform6.dll" v0.0 ts=2002/1/9 1:03
 >    20k 2002/01/09 d:\bin\cygwin\1.3.10\bin\cygmenu6.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygmenu6.dll" v0.0 ts=2002/1/9 1:03
 >   175k 2002/01/09 d:\bin\cygwin\1.3.10\bin\cygncurses++6.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygncurses++6.dll" v0.0 ts=2002/1/9 1:03
 >   202k 2002/01/09 d:\bin\cygwin\1.3.10\bin\cygncurses6.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygncurses6.dll" v0.0 ts=2002/1/9 1:03
 >    12k 2002/01/09 d:\bin\cygwin\1.3.10\bin\cygpanel6.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygpanel6.dll" v0.0 ts=2002/1/9 1:03
 >    17k 2001/06/28 d:\bin\cygwin\1.3.10\bin\cyghistory4.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cyghistory4.dll" v0.0 ts=2001/1/6 23:34
 >   108k 2001/06/28 d:\bin\cygwin\1.3.10\bin\cygreadline4.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygreadline4.dll" v0.0 ts=2001/1/6 23:34
 >    20k 2002/01/13 d:\bin\cygwin\1.3.10\bin\cyghistory5.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cyghistory5.dll" v0.0 ts=2002/1/12 20:27
 >   121k 2002/01/13 d:\bin\cygwin\1.3.10\bin\cygreadline5.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygreadline5.dll" v0.0 ts=2002/1/12 20:27
 >    40k 2001/11/21 d:\bin\cygwin\1.3.10\bin\cygpcre.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygpcre.dll" v0.0 ts=2001/11/21 17:15
 >    39k 2001/11/21 d:\bin\cygwin\1.3.10\bin\cygpcreposix.dll - os=4.0 
img=1.0 sys=4.0
 >                   "cygpcreposix.dll" v0.0 ts=2001/11/21 17:15
 >    50k 2002/03/12 d:\bin\cygwin\1.3.10\bin\cygz.dll - os=4.0 img=1.0 
sys=4.0
 >                   "cygz.dll" v0.0 ts=2002/3/11 23:38

 > Cygwin Package Information
 > Last downloaded files to: D:\download\cygwin\1.3.13-1
 > Last downloaded files from: ftp://archive.progeny.com/cygwin

 > Package             Version
 > _update-info-dir    00073-1
 > ash                 20020731-1
 > base-files          1.0-1
 > base-passwd         1.0-1
 > bash                2.05b-5
 > ctags               5.2-1
 > cygwin              1.3.13-2
 > diff                1.0-1
 > diffutils           2.8.1-1
 > emacs               21.2-8
 > emacs-el            21.2-8
 > fileutils           4.1-1
 > findutils           4.1.7-4
 > gawk                3.1.1-3
 > gdbm                1.8.0-4
 > grep                2.5-1
 > gzip                1.3.3-4
 > libiconv2           1.8-2
 > libintl1            0.10.40-1
 > libintl2            0.11.5-1
 > libncurses5         5.2-1
 > libncurses6         5.2-8
 > libreadline4        4.1-2
 > libreadline5        4.3-2
 > login               1.4-4
 > ncurses             5.2-8
 > pcre                3.7-1
 > readline            4.3-2
 > sed                 3.02-1
 > sh-utils            2.0-2
 > tar                 1.13.19-1
 > termcap             20020930-1
 > terminfo            5.2-3
 > texinfo             4.2-4
 > textutils           2.0.21-1
 > which               1.5-1
 > zlib                1.1.4-1

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/