diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:33:48 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:33:48 +0000 |
commit | f3ca0c284e917772fc7fc6a39c4047efb2ffa631 (patch) | |
tree | 04d1fde0a1681f5e4b99b39bb38ce32f699e4567 /Completion | |
parent | de67b0f67f73ad4bea741737eb4826f28428465a (diff) | |
download | zsh-f3ca0c284e917772fc7fc6a39c4047efb2ffa631.tar.gz zsh-f3ca0c284e917772fc7fc6a39c4047efb2ffa631.tar.xz zsh-f3ca0c284e917772fc7fc6a39c4047efb2ffa631.zip |
moved to Completion/Zsh/Command/_zpty
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Builtins/_zpty | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/Completion/Builtins/_zpty b/Completion/Builtins/_zpty deleted file mode 100644 index 4a02952f7..000000000 --- a/Completion/Builtins/_zpty +++ /dev/null @@ -1,58 +0,0 @@ -#compdef zpty - -local state line list names expl curcontext="$curcontext" -typeset -A opt_args - - -_arguments -C -s -S \ - '(-r -w -L -d)-e[echo input characters]' \ - '(-r -w -L -d)-b[io to pseudo-terminal blocking]' \ - '(-r -w -L -e -b)-d[delete command]:*:name:->name' \ - '(-r -L -e -b -d)-w[send string to command]:name:->name:*:strings to write' \ - '(: -r -w -e -b -d)-L[list defined commands as calls]' \ - '(: -w -L -e -b -d)-r[read string from command]:name:->name:param: _vars:pattern:' \ - '(-r -w -L -d):zpty command name:' \ - '(-r -w -L -d):cmd: _command_names -e' \ - '(-r -w -L -d)*::args:_precommand' && return 0 - -# One could use sets, but that's more expensive and zpty is simple enough. -# -# _arguments -C -s -S \ -# - read \ -# '-r[read string from command]' \ -# ':name:->name' \ -# ':param: _vars' \ -# ':pattern:' \ -# - write \ -# '-w[send string to command]' \ -# ':name:->name' \ -# '*:strings to write' \ -# - list \ -# '-L[list defined commands as calls]' \ -# - delete \ -# '-d[delete command]' \ -# '*:name:->name' \ -# - start \ -# '-e[echo input characters]' \ -# '-b[io to pseudo-terminal blocking]' \ -# ':zpty command name:' \ -# ':cmd: _command_names -e' \ -# '*::args:_precommand' && return 0 - - -if [[ $state = name ]]; then - if ! zmodload -e zsh/zpty; then - _message "zpty module not loaded" - return 1 - fi - list=( ${${(f)"$(zpty)"}#*\) } ) - names=( ${list%%:*} ) - if zstyle -T ":completion:${curcontext}" verbose; then - zformat -a list ' --' ${${(f)"$(zpty)"}#*\) } - _wanted names expl 'zpty command name' compadd -d list -a names - else - _wanted names expl 'zpty command name' compadd -a names - fi -else - return 1 -fi |