Table of Contents

# $EPIC: getcap.txt,v 1.3 2006/12/13 11:07:38 sthalik Exp $

Synopsis:

$getcap(TERM <capname> <nametype> <mangle>)

Technical:

Practical:

If you need to query a terminal capability so you can output it to the screen via /xecho -r, you could use this function to fetch the capability. You could fetch a key capability (ie, key_f10) to bind a certain key, but the /bind command already has a shortcut for that (/bind -symbolic key_f10). The /bind -symbolic option uses the same underlying feature that this function does.

Example:

$getcap(TERM has_meta_key 0 0) returns 1 if your TERM has a meta key.

Returns:

The terminal capability (if any) as requested.