zsh-users
 help / color / mirror / code / Atom feed
* empty zsh prompt string under Cygwin 1.1.0 xterm
@ 2000-07-05  5:31 Eric De Mund
  2000-07-05 13:50 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Eric De Mund @ 2000-07-05  5:31 UTC (permalink / raw)
  To: cygwin; +Cc: zsh-users

Folks,

My zsh has a null, empty prompt (nor are my .z* files sourced) when I
bring up a zsh xterm:

--------CUT HERE--------
ls -aCF
./              .emacs~         .zshenv~        doc/            out
../             .ncftp/         .zshrc          is-docs/        scratch/
.bash_history   .zlogin         VisualCafe/     jdk-1.2.2_005/  sw/
.bash_profile   .zlogout        archive/        lib/            tmp/
.emacs          .zshenv         bin/            nohup.out
echo dog
dog
cd ..
ls -aCF
./              ../             Administrator/  ead/
--------CUT HERE--------

Is this a zsh or Cygwin FAQ? I wasn't able to find it in either archive.
I get the same behavior when I invoke rxvt(1) instead of xterm(1). (And
it *aggravates*.) My environment is:

    WINVER:
        Version 4.0 (Build 1381: Service Pack 6)
        Revised Service Pack 6a
    zsh version:
        3.0.5-nt-beta-0.74 (Amol Deshpande's port)
    cygwin version:
        1.1.0    
    invocation:
        \usr\X11R6.4\bin\xterm.exe -e \usr\local\bin\zsh.exe -l
    X clients:
        Pre-compiled X11R6.4 Libraries/Clients For CYGWIN B20
        Last Update: Feb 9, 1999
        from <http://dao.gsfc.nasa.gov/software/grads/win32/X11R6.4/>
    X Server:
        X-Win32 4.1.4
    printenv:
        !C:=C:\home\ead
        CDPATH=.;..;C:/home/ead
        CLASSPATH=.;c:\packages\VisualCafe\Java\Lib;c:\packages\VisualCafe\Ja\
        va\Lib\SYMCLASS.ZIP;c:\packages\VisualCafe\Java\Lib\CLASSES.ZIP;c:\pa\
        ckages\VisualCafe\Java\Lib\COLLECTIONS.ZIP;c:\packages\VisualCafe\Jav\
        a\Lib\ICEBROWSERBEAN.JAR;c:\packages\VisualCafe\Java\Lib\JSDK.JAR;c:\\
        packages\VisualCafe\Java\Lib\SYMTOOLS.JAR;c:\packages\VisualCafe\JFC\\
        SWINGALL.JAR;c:\packages\VisualCafe\Bin\Components\SFC.JAR;c:\package\
        s\VisualCafe\Bin\Components\SYMBEANS.JAR;c:\packages\VisualCafe\Java\\
        Lib\DBAW.ZIP;c:\packages\VisualCafe\Bin\Components\DBAW_AWT.JAR;c:\pa\
        ckages\VisualCafe\Bin\Components\Databind.JAR;c:\packages\VisualCafe\\
        Java\Lib\Olite35.jar;
        COMPUTERNAME=EAD
        COMSPEC=C:\WINNT\system32\cmd.exe
        CYGBIN=C:/bin
        DISPLAY=localhost:0.0
        EDITOR=emacs
        ENSCRIPT_LIBRARY=/packages/enscript
        GZIP=-v -9
        HISTSIZE=100
        HOME=/home/ead
        HOMEDRIVE=C:
        HOMEPATH=\home\ead
        HOSTS=ftp.mac.archive.umich.edu ftp.uu.net gatekeeper.dec.com ixian.c\
        om oak.oakland.edu prep.ai.mit.edu rtfm.mit.edu sumex-aim.stanford.ed\
        u wuarchive.wustl.edu
        LESS=-c -i -M
        LOGNAME=bogus
        LOGONSERVER=\\EAD
        MANPATH=C:/home/ead/man;/usr/local/man;/usr/man;/usr/share/man;/usr/X\
        11/man
        NUMBER_OF_PROCESSORS=1
        OS2LIBPATH=C:\WINNT\system32\os2\dll;
        OS=Windows_NT
        PAGER=less
        PATH=/home/ead/bin:/home/ead/bin/winnt:/usr/local/bin:/usr/bin:/packa\
        ges/vim56:/usr/bin:/usr/X11R6.4/bin:/packages/emacs/bin:/Program File\
        s/NcFTP:/packages/texmf/miktex/bin
        PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
        PROCESSOR_ARCHITECTURE=x86
        PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 1, GenuineIntel
        PROCESSOR_LEVEL=6
        PROCESSOR_REVISION=0801
        PROMPT=%m:%~% 
        PWD=C:/home/ead
        SHLVL=1
        SYSTEMDRIVE=C:
        SYSTEMROOT=C:\WINNT
        TEMP=C:\TEMP
        TERM=ansi
        TERMCAP=ansi|ansi/pc-term compatible with color:u6=\E[%d;%dR:u7=\E[6n\
        :..u8=\E[?%[;0123456789]c:u9=\E[c:Co#8:NC#3:pa#64:AB=\E[4%p1%dm:AF=\E\
        [3%p1%dm:op=\E[37;40m:5i:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:F1=\\
        E[W:F2=\E[X:IC=\E[%d@:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%\
        dA:cb=\E[1K:ch=\E[%dG:ct=\E[2g:cv=\E[%dd:ec=\E[%dX:ei=:im=:k1=\E[M:k2\
        =\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:k6=\E[R:k7=\E[S:k8=\E[T:k9=\E[U:k;=\E[V\
        :kB=\E[Z:kI=\E[L:kb=^H:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:me=\E[0;10m:nw\
        =\r\E[S:pf=\E[4i:po=\E[5i:s0=\E(B:s1=\E)B:s2=\E*B:s3=\E+B:ta=\E[I:am:\
        bs:mi:ms:pt:co#80:it#8:li#24:ae=\E[10m:al=\E[L:as=\E[12m:bl=^G:bt=\E[\
        Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:dl=\E[M:do\
        =\E[B:ho=\E[H:kh=\E[H:le=\E[D:mb=\E[5m:md=\E[1m:mk=\E[9m:mr=\E[7m:nd=\
        \E[C:se=\E[m:sf=^J:so=\E[7m:st=\EH:ue=\E[m:up=\E[A:us=\E[4m:
        THISZSH=.zlogin
        TMP=C:\TEMP
        TZ=PST8PDT
        USER=ead
        USERDOMAIN=EAD
        USERNAME=ead
        USERPROFILE=C:\WINNT\Profiles\ead
        VIMBIN=C:/packages/vim56
        WINDIR=C:\WINNT
        WINDOWID=8388622
        WORDCHARS=_

Need I update my X clients? Or is this simply a matter of me missing
some environment variable? When rxvt(1) comes up, the TERM type is even
xterm-color.

Please advise.

Thanks,
Eric
--
Eric De Mund <ead@ixian.com> | Ixian Systems, Inc. | 53 49 B2 23 AF 6C 20 81
http://www.ixian.com/ead/    | Mountain View, CA   | ED DD 4C 81 AA C9 D1 A5


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: empty zsh prompt string under Cygwin 1.1.0 xterm
  2000-07-05  5:31 empty zsh prompt string under Cygwin 1.1.0 xterm Eric De Mund
@ 2000-07-05 13:50 ` Peter Stephenson
  2000-07-05 14:47   ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Stephenson @ 2000-07-05 13:50 UTC (permalink / raw)
  To: Eric De Mund, Zsh users list

> Folks,
> 
> My zsh has a null, empty prompt (nor are my .z* files sourced) when I
> bring up a zsh xterm:

Could be it's not in interactive mode, for some reason.  Do something like
  [[ -o zle ]] && print "zle is not running"
to check.

>     zsh version:
>         3.0.5-nt-beta-0.74 (Amol Deshpande's port)

This isn't a cygwin-aware port, so far as I know, so it may not realise
(for reasons which would be far beyond my knowledge of Windows) that the
xterm is connected to a terminal.

If you want a more consistent environment, I'd suggest getting 3.1.9 (or
3.1.9-dev-2 from the development directory on the archive, which has a few
bug fixes but few other changes) and compiling it directly under cygwin.
I haven't tried it under an xterm, but normal operation under cygwin is fine.

-- 
Peter Stephenson <pws@cambridgesiliconradio.com>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: empty zsh prompt string under Cygwin 1.1.0 xterm
  2000-07-05 13:50 ` Peter Stephenson
@ 2000-07-05 14:47   ` Peter Stephenson
  2000-07-05 22:48     ` Eric De Mund
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Stephenson @ 2000-07-05 14:47 UTC (permalink / raw)
  To: Eric De Mund, Zsh users list

> > Folks,
> > 
> > My zsh has a null, empty prompt (nor are my .z* files sourced) when I
> > bring up a zsh xterm:
> 
> Could be it's not in interactive mode, for some reason.  Do something like
>   [[ -o zle ]] && print "zle is not running"

Sorry, that should be `||', not `&&', or the sense will be reversed.

As a postscript, I've now got both xterm and rxvt running under cygwin with
zsh-3.1.9-dev-2 and everything seems to be fine (except that network file
access is still horribly slow, but that's a completely different problem).

-- 
Peter Stephenson <pws@cambridgesiliconradio.com>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: empty zsh prompt string under Cygwin 1.1.0 xterm
  2000-07-05 14:47   ` Peter Stephenson
@ 2000-07-05 22:48     ` Eric De Mund
  0 siblings, 0 replies; 4+ messages in thread
From: Eric De Mund @ 2000-07-05 22:48 UTC (permalink / raw)
  To: Peter Stephenson; +Cc: cygwin, zsh-users

Peter,

] > Could be it's not in interactive mode, for some reason.  Do something like
] >   [[ -o zle ]] && print "zle is not running"
] 
] Sorry, that should be `||', not `&&', or the sense will be reversed.
] 
] As a postscript, I've now got both xterm and rxvt running under cygwin with
] zsh-3.1.9-dev-2 and everything seems to be fine (except that network file
] access is still horribly slow, but that's a completely different problem).

Thanks very much. I built zsh 3.0.8 from scratch, set TERM to cygwin,
and converted my .z* files from MS-DOS to UNIX newline format. And
everything worked swimmingly; both xterm(1) and rxvt(1) work great.

Many thanks for your help. (And yes, the Amol Deshpande zsh wasn't
setopt interactive, for some reason.)

All I need figure out now is how to get "emacs -nw" under the xterm(1)
to stop saying "emacs: standard input is not a tty" and then exiting. I
wonder if I need to build emacs from source and not use a precompiled
version; it's the last program in the equation now that is not built
using cygwin.

Kind regards,
Eric
--
Eric De Mund <ead@ixian.com> | Ixian Systems, Inc. | 53 49 B2 23 AF 6C 20 81
http://www.ixian.com/ead/    | Mountain View, CA   | ED DD 4C 81 AA C9 D1 A5


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-07-05 22:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-05  5:31 empty zsh prompt string under Cygwin 1.1.0 xterm Eric De Mund
2000-07-05 13:50 ` Peter Stephenson
2000-07-05 14:47   ` Peter Stephenson
2000-07-05 22:48     ` Eric De Mund

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).