@section = (
	'encoding',
	'color',
	'scrollbar',
	'appearance',
	'others',
);
$section_attr = {
	encoding => {
		title => 'Encoding',
		key => [
			'encoding',
			'iscii_lang',
			'input_method',
			'use_bidi',
			'use_combining',
			'copy_paste_via_ucs',
			'none',
		],
	},
	color => {
		title => 'Color',
		key => [
			'fg_color',
			'bg_color',
			'fade_ratio',
			'wall_picture',
			'brightness',
			'use_transbg',
			'none',
		],
	},
	scrollbar => {
		title => 'Scrollbar',
		key => [
			'scrollbar_mode',
			'scrollbar_view_name',
			'sb_fg_color',
			'sb_bg_color',
			'none',
			'none',
			'none',
		],
	},
	appearance => {
		title => 'Appearance',
		key => [
			'fontsize',
			'line_space',
			'screen_width_ratio',
			'screen_height_ratio',
			'use_anti_alias',
			'use_variable_column_width',
			'none',
			'none',
		],
	},
	others => {
		title => 'Others',
		key => [
			'tabsize',
			'logsize',
			'mod_meta_mode',
			'vertical_mode',
			'bel_mode',
			'use_dynamic_comb',
			'use_multi_column_char',
		],
	},
};
$key_attr = {
	encoding => {
		type => 'select:upper',
		default => 'auto',
		col => 0,
		title => 'Encoding',
		item => [
			'UTF8',
			'ISO88591',
			'ISO88592',
			'ISO88593',
			'ISO88594',
			'ISO88595',
			'ISO88596',
			'ISO88597',
			'ISO88598',
			'ISO88599',
			'ISO885910',
			'ISO885911',
			'ISO885913',
			'ISO885914',
			'ISO885915',
			'ISO885916',
			'TCVN5712',
			'ISCII',
			'VISCII',
			'KOI8R',
			'KOI8U',
			'EUCJP',
			'EUCJISX0213',
			'SJIS',
			'SJISX0213',
			'ISO2022JP',
			'ISO2022JP2',
			'ISO2022JP3',
			'EUCKR',
			'UHC',
			'JOHAB',
			'ISO2022KR',
			'EUCTW',
			'BIG5',
			'BIG5HKSCS',
			'EUCCN',
			'GBK',
			'GB18030',
			'HZ',
			'ISO2022CN',
		],
	},
	iscii_lang => {
		type => 'select:lower',
		default => 'malayalam',
		col => 0,
		title => 'ISCII lang',
		item => [
			'assamese',
			'bengali',
			'gujarati',
			'hindi',
			'kannada',
			'malayalam',
			'oriya',
			'punjabi',
			'roman',
			'tamil',
			'telugu',
		],
	},
	input_method => {
		type => 'text',
		default => '-',
		col => 0,
		title => 'Input method',
	},
	use_bidi => {
		type => 'checkbox',
		default => 'true',
		col => 0,
		title => 'Bidi (UTF8 only)',
	},
	use_combining => {
		type => 'checkbox',
		default => 'true',
		col => 1,
		title => 'Combining',
	},
	copy_paste_via_ucs => {
		type => 'checkbox',
		default => 'false',
		col => 0,
		title => 'Process received strings via Unicode',
	},
	none => {
		type => 'none',
		default => '-',
		col => 0,
		title => '&nbsp;',
	},
	fg_color => {
		type => 'text:lower',
		default => 'black',
		col => 0,
		title => 'Foreground color',
	},
	bg_color => {
		type => 'text:lower',
		default => 'white',
		col => 0,
		title => 'Background color',
	},
	fade_ratio => {
		type => 'text:digit',
		default => '100',
		col => 0,
		title => 'Fade ratio on unfocus',
	},
	wall_picture => {
		type => 'text',
		default => 'none',
		col => 0,
		title => 'Wall picture',
	},
	brightness => {
		type => 'text:digit',
		default => '100',
		col => 0,
		title => 'Wall picture brightness',
	},
	use_transbg => {
		type => 'checkbox',
		default => 'false',
		col => 0,
		title => 'Transparent background',
	},
	none => {
		type => 'none',
		default => '-',
		col => 0,
		title => '&nbsp;',
	},
	scrollbar_mode => {
		type => 'radio:lower',
		default => 'left',
		col => 0,
		title => 'Position',
		item => [
			'none',
			'left',
			'right',
		],
	},
	scrollbar_view_name => {
		type => 'text',
		default => 'simple',
		col => 0,
		title => 'View',
	},
	sb_fg_color => {
		type => 'text:lower',
		default => 'black',
		col => 0,
		title => 'Foreground color',
	},
	sb_bg_color => {
		type => 'text:lower',
		default => 'white',
		col => 0,
		title => 'Background color',
	},
	none => {
		type => 'none',
		default => '-',
		col => 0,
		title => '&nbsp;',
	},
	none => {
		type => 'none',
		default => '-',
		col => 0,
		title => '&nbsp;',
	},
	none => {
		type => 'none',
		default => '-',
		col => 0,
		title => '&nbsp;',
	},
	fontsize => {
		type => 'text:digit',
		default => '16',
		col => 0,
		title => 'Font size (pixels)',
	},
	line_space => {
		type => 'text:digit',
		default => '0',
		col => 0,
		title => 'Line space (pixels)',
	},
	screen_width_ratio => {
		type => 'text:digit',
		default => '100',
		col => 0,
		title => 'Width ratio',
	},
	screen_height_ratio => {
		type => 'text:digit',
		default => '100',
		col => 0,
		title => 'Height ratio',
	},
	use_anti_alias => {
		type => 'checkbox',
		default => 'false',
		col => 0,
		title => 'Anti Alias',
	},
	use_variable_column_width => {
		type => 'checkbox',
		default => 'false',
		col => 1,
		title => 'Variable column width',
	},
	none => {
		type => 'none',
		default => '-',
		col => 0,
		title => '&nbsp;',
	},
	none => {
		type => 'none',
		default => '-',
		col => 0,
		title => '&nbsp;',
	},
	tabsize => {
		type => 'text:digit',
		default => '8',
		col => 0,
		title => 'Tab width (columns)',
	},
	logsize => {
		type => 'text:digit',
		default => '128',
		col => 0,
		title => 'Backlog size (lines)',
	},
	mod_meta_mode => {
		type => 'radio:lower',
		default => 'none',
		col => 0,
		title => 'Meta key outputs:',
		item => [
			'none',
			'esc',
			'8bit',
		],
	},
	vertical_mode => {
		type => 'radio:lower',
		default => 'none',
		col => 0,
		title => 'Vertical mode',
		item => [
			'none',
			'cjk',
			'mongol',
		],
	},
	bel_mode => {
		type => 'radio:lower',
		default => 'sound',
		col => 0,
		title => 'Bel mode',
		item => [
			'none',
			'sound',
			'visual',
		],
	},
	use_dynamic_comb => {
		type => 'checkbox',
		default => 'false',
		col => 0,
		title => 'Combining = 1 (or 0) logical column(s)',
	},
	use_multi_column_char => {
		type => 'checkbox',
		default => 'true',
		col => 0,
		title => 'Fullwidth = 2 (or 1) logical column(s)',
	},
};
$item_attr = {
	encoding => {
		'UTF8' => 'UTF-8',
		'ISO88591' => 'ISO-8859-1',
		'ISO88592' => 'ISO-8859-2',
		'ISO88593' => 'ISO-8859-3',
		'ISO88594' => 'ISO-8859-4',
		'ISO88595' => 'ISO-8859-5',
		'ISO88596' => 'ISO-8859-6',
		'ISO88597' => 'ISO-8859-7',
		'ISO88598' => 'ISO-8859-8',
		'ISO88599' => 'ISO-8859-9',
		'ISO885910' => 'ISO-8859-10',
		'ISO885911' => 'ISO-8859-11(TIS-620)',
		'ISO885913' => 'ISO-8859-13',
		'ISO885914' => 'ISO-8859-14',
		'ISO885915' => 'ISO-8859-15',
		'ISO885916' => 'ISO-8859-16',
		'TCVN5712' => 'TCVN5712',
		'ISCII' => 'ISCII',
		'VISCII' => 'VISCII',
		'KOI8R' => 'KOI8-R',
		'KOI8U' => 'KOI8-U',
		'EUCJP' => 'EUC-JP',
		'EUCJISX0213' => 'EUC-JISX0213',
		'SJIS' => 'Shift_JIS',
		'SJISX0213' => 'Shift_JISX0213',
		'ISO2022JP' => 'ISO-2022-JP',
		'ISO2022JP2' => 'ISO-2022-JP-2',
		'ISO2022JP3' => 'ISO-2022-JP-3',
		'EUCKR' => 'EUC-KR',
		'UHC' => 'UHC',
		'JOHAB' => 'JOHAB',
		'ISO2022KR' => 'ISO-2022-KR',
		'EUCTW' => 'EUC-TW',
		'BIG5' => 'BIG5',
		'BIG5HKSCS' => 'BIG5HKSCS',
		'EUCCN' => 'EUC-CN',
		'GBK' => 'GBK',
		'GB18030' => 'GB18030',
		'HZ' => 'HZ',
		'ISO2022CN' => 'ISO-2022-CN',
	},
	iscii_lang => {
		'assamese' => 'Assamese',
		'bengali' => 'Bengali',
		'gujarati' => 'Gujarati',
		'hindi' => 'Hindi',
		'kannada' => 'Kannada',
		'malayalam' => 'Malayalam',
		'oriya' => 'Oriya',
		'punjabi' => 'Punjabi',
		'roman' => 'Roman',
		'tamil' => 'Tamil',
		'telugu' => 'Telugu     ',
	},
	scrollbar_mode => {
		'none' => 'None',
		'left' => 'Left',
		'right' => 'Right',
	},
	mod_meta_mode => {
		'none' => 'None',
		'esc' => 'Esc',
		'8bit' => '8bit',
	},
	vertical_mode => {
		'none' => 'None',
		'cjk' => 'CJK',
		'mongol' => 'Mongol',
	},
	bel_mode => {
		'none' => 'None',
		'sound' => 'Sound',
		'visual' => 'Visual',
	},
};
