SETMETAMODE(1) General Commands Manual SETMETAMODE(1)

# [NAME](#NAME)

setmetamode - define the keyboard meta key handling

# [SYNOPSIS](#SYNOPSIS)

**setmetamode** \[ *options* ] \[ *argument* ]

# [DESCRIPTION](#DESCRIPTION)

Without argument, **setmetamode** prints the current Meta key mode. With argument, it sets the Meta key mode as indicated. The setting before and after the change are reported.

The Meta key mode is specific for each VT (and the VT corresponding to stdin is used). One might use **setmetamode** in /etc/rc to define the initial state of the Meta key mode, e.g. by

INITTY=/dev/tty\[1-8]  
for tty in $INITTY; do

setmetamode escprefix &lt; $tty

done

# [ARGUMENTS](#ARGUMENTS)

[**esc**, **prefix**, **escprefix**](#esc)

The Meta key sends an Escape prefix.

[**meta**, **bit**, **metabit**](#meta)

The Meta key sets the high order bit of the character.

# [OPTIONS](#OPTIONS)

[**-C**, **--console**=*DEV*](#C)

the console device to be used.

[**-V**, **--version**](#V)

print version number.

[**-h**, **--help**](#h)

print this usage message.

# [AUTHORS](#AUTHORS)

Andries Brouwer &lt;aeb@cwi.nl&gt;

# [SEE ALSO](#SEE_ALSO)

[**loadkeys**(1)](/man/os/kbd/loadkeys.1), [**kbdinfo**(1)](/man/os/kbd/kbdinfo.1)

30 Jan 1994 kbd

---

Document: setmetamode(1) from kbd 2.10.0-r3 (Chainguard OS)
Source: https://github.com/legionus/kbd
