summaryrefslogtreecommitdiff
path: root/packages/ncurses-6.1/foolterm.ti
blob: acef9adb8ed51e4024adcf92cac8ab949c518f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# https://en.wikipedia.org/wiki/ANSI_escape_code
# FoolOS built-in terminal emulator 
# check "man 5 terminfo" to understand this file

fool-term|FoolOS built-in terminal emulator,

#       automargins
	am,  
#       erased with background color
        bce, 
#       can erase overstrikes with blanks
        eo, 
#       safe to move in insert mode
        mir, 
#       safe to move in standout mode
        msgr,

#	xenl, xon,

#       size
	cols#80, lines#24, 

#       max colors and colorpairs
        colors#8, 
        pairs#64, 

#       tabwidth
        it#8,

#	this could hold an alterntive table paiting method
#	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,

	clear=\Ec, cr=\015,

# movement
#
	home=\EH, 

	cub1=\Eb, 
	cud1=\Ed,
	cuf1=\Ef,
	cuu1=\Eu,


#       cursor position %i increases so it is 1 based
#       %p1%d pushes row and prints as int
#       %p2%d pushes col and prints as int
        cup=\E[%i%p1%d;%p2%dH,

#	cup=\EY%p1%' '%+%c%p2%' '%+%c,

# clear to end of screen / line
	ed=\EJ, 
	el=\EK,

# delchar
	dch1=\Ex,

# backspace
	kbs=\010,

# tab
	ht=\011,

# newline
	nel=\012, 

# scrolling (down,reverse)
	ind=\ED, 
	ri=\EM, 

# keys  
	kcub1=\E<, kcud1=\Ev,
	kcuf1=\E>, kcuu1=\Ea, 

# function keys (todo: kb driver..)
##	kf1=\E[[A, 
##	kf10=\E[21~, 
##	kf11=\E[23~,
##	kf12=\E[24~, 
###	kf13=\E[25~, 
###	kf14=\E[26~, 
###	kf15=\E[28~,
###	kf16=\E[29~, 
###	kf17=\E[31~, 
###	kf18=\E[32~, 
###	kf19=\E[33~,
##	kf2=\E[[B, 
###	kf20=\E[34~, 
##	kf3=\E[[C, 
##	kf4=\E[[D, 
##	kf5=\E[[E,
##	kf6=\E[17~, 
##	kf7=\E[18~, 
##	kf8=\E[19~, 
##	kf9=\E[20~,

#colors
	setab=\E[4%p1%dm, 
	setaf=\E[3%p1%dm,
	oc=\E[37;40m,