#compdef infocmp -value-,TERM,-default-

local desc expl

desc=( $TERMINFO ~/.terminfo $TERMINFO_DIRS /usr/{,share/}{,lib/}terminfo )

_wanted terminals expl 'terminal name' \
    compadd "$@" - $desc/*/*(N:t)
