zsh-workers
 help / color / mirror / code / Atom feed
* rlwrap completion
@ 2007-06-17  7:20 Phil Pennock
  0 siblings, 0 replies; only message in thread
From: Phil Pennock @ 2007-06-17  7:20 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

rlwrap is "readline wrap", the GNU Readline version of fep(1), the
front-end processor which is dependent upon BSD libc; rlwrap is rather
more portable.  For any command which reads input line-by-line, rlwrap
provides full readline semantics to that command.

Eg: rlwrap telnet localhost 25

The attached lets me tab-complete properly and is a grievous rip-off of
Completion/Zsh/_command.

Is there a simpler way to do this?

-Phil

[-- Attachment #2: _rlwrap --]
[-- Type: text/plain, Size: 155 bytes --]

#compdef rlwrap

if [[ CURRENT -ge 3 ]]; then
	compset -n 2
	_normal
else
	local expl
	_wanted commands expl 'wrapped command' compadd "$@" -k commands
fi

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-17  7:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-17  7:20 rlwrap completion Phil Pennock

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).