Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ZSH on Dos/Windows (long)

On Apr 6, 12:48pm, Luciano ES wrote:
} When I run that 3.05 port of ZSH to Windows, you won't believe what
} happens when I press the Home key. The cursor jumps to the beginning
} of the line!!!! Have you ever seen that? And the best part: when I
} press the End key, it jumps to the end!! Amazing!!!! OK, seriously,
} ZSH under Cygwin imposes those stinky Emacs or Vi bindings, I don't
} know which one, I hate both.

Amol's 3.0.5 port actually carries around an implementation of a WinNT
console with it, and a special version of termcap that has built in to
it all the key bindings for that internal console terminal.  It doesn't
(as far as I can tell) actually change the default set of bindings for
zsh; that is, you ARE using the stinky Emacs bindings when you run that
3.0.5 port, it just happens that home/end/etc. are attached to the right
Emacs movement commands by virtue of the built-in terminal definition.

} So I spent another hour reading the same chapter over and over and
} trying to make ZSH convert the Delete key into... the Delete command!
} No success.

I don't suppose that zsh for cygwin comes with the "zkbd" function that
should be described in the "User Contributions" section of the manual,
under "Keyboard Definition"?

} Colors didn't work either. They work in Bash, but not in ZSH. I
} followed the manual instructions, but trying to colorize a prompt
} never worked, I get the color formatting sequences in my prompt
} instead of actual colors.

Zsh color support assumes an ANSI-compliant terminal.  I really don't
know what the cygwin console is emulating, terminal-wise.  The escapes
that zsh uses are in the "color" function, which should be somewhere
in the directories named in the $fpath array.

} I scanned and indexed the C: drive and it took over 2 minutes! ZSH
} 3.0.5 for Windows only took 15 seconds! I immediately thought: it
} must be Cygwin. It added so many new files that reindexing now takes
} longer...

You may have the right culprit but the wrong reason.  When compiled with
cygwin, zsh uses the cygwin library's emulations of the unix file and
directory access routines.  Amol's port has its own implementation of
the WinNT directory access routines.

Messages sorted by: Reverse Date, Date, Thread, Author