SETMETAMODE(1)

๐Ÿ“ฆ
version 2.10.0 ยท 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

๐Ÿ’– SETMETAMODE(1) ๐Ÿ’–

okay so bestie, we're in the General Commands Manual section today and this little icon is called setmetamode โ€” she's the one who decides how your keyboard's Meta key behaves. yep. that Meta key. the mysterious one. we're gonna define her whole vibe. โœจ


๐ŸŒธ NAME ๐ŸŒธ

setmetamode โ€” define the keyboard meta key handling ๐Ÿ’…


โœจ SYNOPSIS โœจ

setmetamode [ options ] [ argument ]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

okay so here's the tea. if you run setmetamode with no argument, she just tells you the current Meta key mode. no changes, no drama, just receipts. ๐Ÿ”

but if you DO give her an argument? she sets the Meta key mode to whatever you indicated. and then โ€” because she's a considerate queen โ€” she reports the setting before and after the change. so you always know what you did. periodt. ๐Ÿ‘‘

now, the important deets: the Meta key mode is specific for each VT, and she uses the VT that corresponds to stdin. so like, every virtual terminal has her own opinion about the Meta key. main character energy, honestly. ๐ŸŽ€

one might use setmetamode in /etc/rc to define the initial state of the Meta key mode, like this:

INITTY=/dev/tty[1-8]
for tty in $INITTY; do
     setmetamode escprefix < $tty
done

look at her go. setting up all eight ttys before you even wake up. obsessed. ๐ŸŒˆ


๐Ÿ“ ARGUMENTS ๐Ÿ“

  • esc, prefix, escprefix โ€” the Meta key sends an Escape prefix. classic. iconic. sending that little escape ahead of everything like a hype woman. ๐Ÿ’ซ
  • meta, bit, metabit โ€” the Meta key sets the high order bit of the character. highkey just flipping that top bit. no cap. ๐Ÿ”ฅ

๐Ÿ’… OPTIONS ๐Ÿ’…

  • -C, --console=DEV โ€” the console device to be used. tell her which console you're talking about, bestie. ๐Ÿ–ฅ๏ธ
  • -V, --version โ€” print version number. she'll tell you how fresh she is. โญ
  • -h, --help โ€” print this usage message. the "help me pls" option. ๐Ÿ™ˆ

๐Ÿซถ AUTHORS ๐Ÿซถ

Andries Brouwer <aeb@cwi.nl> โ€” the legend herself. thank you for your service. ๐Ÿ‘‘


๐ŸŒŸ SEE ALSO ๐ŸŒŸ

loadkeys(1), kbdinfo(1) โ€” go read these too, they're giving the same energy. ๐Ÿงš


๐Ÿ’€ lowkey reminder: the Meta mode is per-VT, so if you set it and it doesn't "stick" somewhere else, that's not a bug, that's just her being specific. iykyk.

and that's the whole page!! written by the kbd girlies, dated 30 Jan 1994 (yes she's vintage, vintage is iconic ๐Ÿ’œ), and honestly? she ate. bye bestie!! ๐ŸŽ€โœจ๐Ÿ’–