zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: ZSH on Dos/Windows (long)
Date: Sun, 6 Apr 2003 20:45:28 +0000	[thread overview]
Message-ID: <1030406204528.ZM7831@candle.brasslantern.com> (raw)
In-Reply-To: <lvrttw99lgmm.dlg@thorstenkampe.de>

Having a few free minutes and a much larger disk recently installed
on my Windows box, I decided to fiddle with Cygwin a bit.

Aside:  The cygwin installer created C:\{bin,usr,lib}\ even though I
told it to use C:\Cygwin\ as root.  Those directories are all empty;
the installed files went correctly into C:\Cygwin\{bin,usr,lib,etc}\

First thing I noticed is that many of the zsh functions (in $fpath)
don't get very far if you haven't installed the fileutils and sh-utils
packages.  So I went back and installed them.

I also installed termcap and terminfo, (lack of) which may have some
bearing on the problems Luciano is having.

Second thing I noticed is that the PATH is not set up correctly if you
start zsh directly (as opposed to starting bash first and then running
zsh from there).  This is the fault of whoever built the zsh package
for cygwin, not of zsh itself.

Third thing: as usual, bash exports PS1, so the prompt looks stupid if
you start zsh from bash.

Fourth: Colored prompts work fine.  I did
	autoload -U promptinit
	promptinit
	prompt -p
and the only prompts that didn't display properly are the ones that need
perl to compute some of their components.  I'm now using "prompt bart"
(how surprising).

This makes me wonder how Luciano is starting up zsh.

Fifth: zkbd doesn't work, because "read -t" doesn't work and because each
new "read -k" discards typeahead.  I hacked it a bit (leaving it unusable
for anyone who doesn't know what I did, so I'm not going to post it) and
used it to generate the appended file.

It appears from Thorsten's message that there may be different sequences
when the shift or control keys are pressed, because I don't know what
generates e.g. "^[Od" (which Thorsten bound to backward-word).

Sixth:  The command `: **/*' from /cygdrive/c did indeed take several
minutes ... long enough that I went to do something else and didn't
notice exactly how long.

---- 8< ---- $HOME/.zkbd/cygwin-pc-cygwin ---- 8< ----
typeset -g -A key

key[F1]='^[[[A'
key[F2]='^[[[B'
key[F3]='^[[[C'
key[F4]='^[[[D'
key[F5]='^[[[E'
key[F6]='^[[17'
key[F7]='^[[18'
key[F8]='^[[19'
key[F9]='^[[20'
key[F10]='^[[21'
key[F11]='^[[23'
key[F12]='^[[24'
key[Backspace]='^H'
key[Insert]='^[[2~'
key[Home]='^[[1~'
key[PageUp]='^[[5~'
key[Delete]='^[[3~'
key[End]='^[[4~'
key[PageDown]='^[[6~'
key[Up]='^[[A'
key[Left]='^[[D'
key[Down]='^[[B'
key[Right]='^[[C'

bindkey "$key[Delete]" delete-char
bindkey "$key[Home]" beginning-of-line
bindkey "$key[End]" end-of-line
---- 8< ---- snip ---- 8< ----


  parent reply	other threads:[~2003-04-06 20:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200304050139220710.001E4844@127.0.0.1>
2003-04-05 13:59 ` ZSH on Dos/Windows Luciano ES
2003-04-05 15:06   ` Thorsten Kampe
2003-04-05 16:53     ` Luciano ES
2003-04-05 17:52       ` Thorsten Kampe
2003-04-06 15:48         ` ZSH on Dos/Windows (long) Luciano ES
2003-04-06 17:16           ` Bart Schaefer
2003-04-06 19:19           ` Thorsten Kampe
2003-04-06 20:41             ` ZSH on Dos/Windows (short) Luciano ES
2003-04-06 23:01               ` Thorsten Kampe
2003-04-06 20:45             ` Bart Schaefer [this message]
2003-04-06 23:58               ` ZSH on Dos/Windows (long) Thorsten Kampe
2003-04-14  0:40             ` ZSH on Dos/Windows - the end Luciano ES
2003-04-14  6:59               ` Thorsten Kampe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1030406204528.ZM7831@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).