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

Ncurses and shortcuts in tty



The following code is supposed to open a ncurses program (ncmpcpp)
using Alt+\ in a tty
ncmpShow(){ ncmpcpp; }
zle -N ncmpShow
bindkey '^[\' ncmpShow
It works, but I can't interact with it.
It is the same if I try with other ncurses programs.
Nethack tells me "You must play nethack from a terminal"
I have put the code in /etc/zsh/zshrc
The analog bash code I have put in /etc/inputrc is
"\e\\":"ncmpcpp\n"
but zsh does not source /etc/inputrc, right?



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