use utf8;

{
# screen version 4.00.03jw4
title => 'Screen',
version => '1.1',
description => [
	"Interactive cheat sheet for the Screen terminal manager,",
	"describing the function of each key.",
],
keywords => [qw' screen terminal window manager '],

mode => {
	'' => 'index',
},

flag => {
	g1 => ["info", "Temporarily hover information in bottom task bar."],
	g2 => ["display", "Change screen display options."],
	g3 => ["select", "Switch between existing windows."],
	g4 => ["config", "Toggle configuration flags to change behaviour of the current window."],
	g5 => ["window", "Operate on or in current window with lasting results."],
	g6 => ["buffer", "Related to the paste buffer or an exchange file"],
	g7 => ["contents", "Insert or read character contents on a screen."],
	g9 => ["screen", "Manipulate global and inter-screen commands."],

	arg => ["key<arg>" => "Commands with a dot need a char argument afterwards."],
},

def => {
	'' => {
		'a' => ['g7', "literal a"],
		'A' => ['g9 args', "title"], # title
		'^a'=> ['g3', "last"],
		'b' => ['g7', "send break"], # break
		'B' => ['g7', "reopen break"], # pow_break
		'^b'=> \'b',
		'c' => ['g9', "new"], # screen
		'C' => ['g2', "clear"], # clear
		'^c'=> \'c',
		'd' => ['g9', "detach"], # detach
		'D' => ['g9', "detach logout"], # pow_detach
		'^d'=> \'d',
		'f' => ['g4', "flow"], # flow
		'F' => ['g4', "fit"],
		'^f'=> \'f',
		'^g'=> ['g4', "vbell"], # vbell
		'h' => ['g6', "hard<>copy"], # hardcopy
		'H' => ['g5', "log"], # log
		'^h'=> \'^p',
		'i' => ['g1', "prop<>erties"], # info
		'I' => ['g5', "login on"], #XXX
		'^i'=> ['g2', "focus"], # focus
		'k' => ['g5', "kill"], # kill
		'K' => \'k',
		'l' => ['g2', "redraw"], # redisplay
		'L' => ['g5', "login"], # login
		'^l'=> \'l',
		'm' => ['g1', "last msg"], # lastmsg
		'M' => ['g5', "moni<>tor"], # monitor
		'^m'=> \'m',
		'n' => ['g3', "next"], # next
		'N' => ['g1', "number"], # number
		'^n'=> \'n',
		'O' => ['g5', "login off"], #XXX
		'^o'=> ['g3', "other"], # other
		'p' => ['g3', "previous"], # prev
		'^p'=> \'p',
		'q' => ['g4', "xon"], # xon
		'Q' => ['g2', "only"], # only
		'^q'=> \'q',
		'r' => ['g4', "wrap"], # wrap
		'^r'=> \'r',
		's' => ['g4', 'xoff'], # xoff
		'^s'=> \'s',
		't' => ['g1', "time"], # time
		'^t'=> \'t',
		'v' => ['g1', "version"],
		'^v'=> ['g7 arg arg linkdigraphs', "digraph"], # digraph
		'w' => ['g1', "windows"], # windows
		'W' => ['g4', "width"], # width
		'^w'=> \'w',
		'x' => ['g9', "lock screen"], # lockscreen
		'X' => ['g2', "remove"], # remove
		'^x'=> \'x',
		'z' => ['g9', "suspend"], # suspend
		'Z' => ['g9', "reset"],
		'^z'=> \'z',

		"'" => ['g3 arg', "select"], # select
		'"' => ['g3', "window<>list -b"], # windowlist -b
		':' => ['g4', "colon"], # colon
		"\e"=> ['g6', "copy"], # copy
		'[' => \'^[',
		'^['=> \"\e",
		'^]'=> ['g7', "paste ."], # paste .
		']' => \'^]',
		'|' => ['g2', "split vert"], # split -v
		'{' => ['g7', "history"], # history
		'}' => ['g7', "history"], # history
		'=' => ['g6', "remove buf<>fer"], # removebuf
		'^?'=> \'^h',
		'*' => ['g1', "displays"], # displays
		'.' => ['g9', "dump<>termcap"], # dumptermcap
		',' => ['g1', "license"], # license
		'-' => ['g3', "select -"], # select -
		'_' => ['g5', "silence"], # silence
		'>' => ['g6', "writebuf"], # writebuf
		'<' => ['g6', "readbuf"], # readbuf
		'^@'=> \'n',
	},
},
}
