Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Ncurses and shortcuts in tty
- X-seq: zsh-workers 31105
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: fulvio marro <fulmare90@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Ncurses and shortcuts in tty
- Date: Sun, 03 Mar 2013 10:18:41 -0800
- In-reply-to: <CALv82gNqHROKY9_BV8JXxjS7+f5LZsHTAB-PV=d0herjPHdBkw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CALv82gNqHROKY9_BV8JXxjS7+f5LZsHTAB-PV=d0herjPHdBkw@mail.gmail.com>
On Mar 3, 5:15pm, fulvio marro wrote:
}
} ncmpShow(){ ncmpcpp; }
} zle -N ncmpShow
} bindkey '^[\' ncmpShow
} It works, but I can't interact with it.
To expand a bit on Frank's answer, here you're executing ncmpShow from
inside a ZLE widget, which means ZLE is still "in control" of your
terminal -- it expects the widget to be doing something related to
editing the current command input.
What Frank's widget does instead is load ncmpShow into the ZLE command
buffer and then tell ZLE that command editing is finished (accept-line),
so ZLE relinquishes control and ncmpShow can take over.
If what you're wanting to do is run ncmpShow during the editing of a
different command line and then resume editing the command afterward,
you'll need a different solution.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author