about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:26:28 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:26:28 +0000
commit68c486b175f17c3d767e7ee20d2330b238f8242c (patch)
treec5e529ba1d4d01acb512e1be9f17fe72bd51af3d /Functions
parentc37ee137e1855daed6fe44b22b91e978b2b21bc0 (diff)
downloadzsh-68c486b175f17c3d767e7ee20d2330b238f8242c.tar.gz
zsh-68c486b175f17c3d767e7ee20d2330b238f8242c.tar.xz
zsh-68c486b175f17c3d767e7ee20d2330b238f8242c.zip
moved to ./Functions/Misc/nslookup
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Misc/nslookup48
1 files changed, 0 insertions, 48 deletions
diff --git a/Functions/Misc/nslookup b/Functions/Misc/nslookup
deleted file mode 100644
index 5b49ae9d2..000000000
--- a/Functions/Misc/nslookup
+++ /dev/null
@@ -1,48 +0,0 @@
-# Simple wrapper function for `nslookup'. With completion if you are using
-# the function based completion system.
-
-if [[ $argv[(I)-] -eq 0 && $argv[(I)[^-]*] -ne 0 ]]; then
-  command nslookup "$@"
-  return
-fi
-
-setopt localoptions localtraps completealiases
-
-local tmp line compcontext=nslookup curcontext='nslookup:::' pmpt
-local pager opager="$PAGER"
-typeset +g -x PAGER=cat
-
-zmodload -e zsh/zpty || zmodload -i zsh/zpty
-
-trap 'return 130' INT
-trap 'zpty -d nslookup' EXIT
-
-pmpt=()
-zstyle -s ':nslookup' prompt tmp && pmpt=(-p "$tmp")
-zstyle -s ':nslookup' rprompt tmp && pmpt=("$pmpt[@]" -r "$tmp")
-zstyle -s ':nslookup' pager tmp &&
-    [[ -z "$pager" ]] && pager="${opager:-more}"
-(( $#pmpt )) || pmpt=(-p '> ')
-
-zpty nslookup command nslookup "${(q)@}"
-
-zpty -r nslookup line '*
-> '
-print -nr "$line"
-
-while line=''; vared -he "$pmpt[@]" line; do
-  print -s "$line"
-  [[ "$line" = exit ]] && break
-
-  zpty -w nslookup "$line"
-
-  zpty -r nslookup line '*
-> '
-  if [[ -n "$pager" && ${#${(f)line}} -gt LINES ]]; then
-    print -nr "$line" | eval "$pager"
-  else
-    print -nr "$line"
-  fi
-done
-
-zpty -w nslookup 'exit'