fastredraw option
[k8sterm.git] / .sterm.rc
blob9a2139418e344ab7e08136c1de2e190a91c4d93f
1 # select one of two predefined terminals below
2 #term  xterm
3 term  rxvt
5 title  sterm
6 class  sterm
8 doubleclicktimeout  300
9 tripleclicktimeout  600
11 drawtimeout  20
12 maxdrawtimeout 3000  # 100..60000, milliseconds
13 fastredraw no  # don't set this to yes, it actually will SLOWDOWN redraw
15 audiblebell  1
17 # set 'urgent' flag on '\a' if terminal window is inactive
18 urgentbell  1
21 # set to 1 if you want sterm to ignore WM close requests
22 # set to 0 if you want close query
23 # set to -1 if you want sterm to die silently
24 ignoreclose 0
27 #visiblebell  0  # not yet
29 ptrblank 1500
30 #tabcount 2
31 #tabposition 1
33 fontnorm  "-*-terminus-bold-*-*-*-20-*-*-*-*-*-*-*"
34 fontbold  "-*-terminus-bold-*-*-*-20-*-*-*-*-*-*-*"
35 #fonttab   "-*-andale mono-*-*-*-*-17-*-*-*-*-*-*-*"
36 fonttab   "-*-calibri-medium-r-*-*-17-*-*-*-*-*-*-*"
38 tabsize  8
40 # default shell to use if SHELL is not set in the env
41 shell /bin/sh
43 # 8 normal colors
44 color.0   "#000000"
45 color.1   "#b21818"
46 color.2   "#18b218"
47 color.3   "#b26818"
48 color.4   "#1818b2"
49 color.5   "#b218b2"
50 color.6   "#18b2b2"
51 color.7   "#b2b2b2"
52 # 8 bright colors
53 color.8   "#686868"
54 color.9   "#ff5454"
55 color.10  "#54ff54"
56 color.11  "#ffff54"
57 color.12  "#5454ff"
58 color.13  "#ff54ff"
59 color.14  "#54ffff"
60 color.15  "#ffffff"
63 # xterm colors
64 ## color.0   "#000000"
65 ## color.1   "#cd0000"
66 ## color.2   "#00cd00"
67 ## color.3   "#cdcd00"
68 ## color.4   "#0000ee"
69 ## color.5   "#cd00cd"
70 ## color.6   "#00cdcd"
71 ## color.7   "#e5e5e5"
72 ## color.8   "#7f7f7f"
73 ## color.9   "#ff0000"
74 ## color.10  "#00ff00"
75 ## color.11  "#ffff00"
76 ## color.12  "#5c5cff"
77 ## color.13  "#ff00ff"
78 ## color.14  "#00ffff"
79 ## color.15  "#ffffff"
82 # more colors can be added after 255 to use with DefaultXX
83 color.256  "#cccccc"
84 color.257  "#333333"
85 # root terminal fg and bg
86 color.258  "#809a70"
87 color.259  "#002000"
88 # bold and underline
89 color.260  "#00afaf"
90 color.261  "#00af00"
92 defaultFG        7
93 defaultBG        0
94 defaultCursorFG  0
95 defaultCursorBG  256
96 defaultInactiveCursorFG  0
97 defaultInactiveCursorBG  -1
99 defaultBoldFG       260
100 defaultUnderlineFG  261
101 drawunderline  0  # heh; draw 'underline underline'?
103 normalTabFG  258
104 normalTabBG  257
105 activeTabFG  258
106 activeTabBG  0
109 #cursorBlink 0 -- turn off; time in milliseconds
110 #cursorBlink  800
111 #cursorBlinkInactive  1  # boolean
114 maxhistory 512
117 # unicode --> linedrawing
118 # TODO: double-frames (160-190)
119 # 'alt' means 'alternate (line drawing) charset'
120 # '0' is special value: 'inverted space'
121 #unimap 0x2000 0x3F
122 #unimap 0x2592 0x61 alt
123 #unimap 0x2588 0x00 alt
124 #unimap 0x2589 0x00 alt
126 unimap 0x2518 0x6a alt
127 unimap 0x2510 0x6b alt
128 unimap 0x250c 0x6c alt
129 unimap 0x2514 0x6d alt
130 unimap 0x253c 0x6e alt
131 unimap 0x2500 0x71 alt
132 unimap 0x251c 0x74 alt
133 unimap 0x2524 0x75 alt
134 unimap 0x2534 0x76 alt
135 unimap 0x252c 0x77 alt
136 unimap 0x2502 0x78 alt
138 unimap 0x2580 0x8b
139 unimap 0x2584 0x8c
140 unimap 0x258c 0x8e
141 unimap 0x2590 0x8f
143 unimap 0x2588 0x8d
144 unimap 0x25a0 0x8d
145 unimap 0x2591 0x90
146 unimap 0x2592 0x91
147 unimap 0x2593 0x92
150 # key bindings
151 keybind reset
153 # X11 clipboards
154 keybind shift+Insert      PastePrimary
155 keybind alt+Insert        PasteClipboard
156 keybind alt+shift+Insert  PasteSecondary
158 # new tab
159 keybind ctrl+alt+t  NewTab
160 keybind ctrl+alt+m  NewTab; exec mc
162 # new utf-8 tab
163 keybind ctrl+alt+u  NewTab; UTF8Locale tan
165 # new root tab
166 #keybind ctrl+alt+r  NewTab; defaultFG 258; defaultBG 259; exec su -
167 keybind ctrl+alt+r  NewTab; mono 2; defaultBG 259; exec su -
168 keybind ctrl+alt+p  NewTab; defaultFG 258; defaultBG 259; exec su -l -c mc
170 # on-the-fly switching between UTF-8 and default locale
171 keybind win+alt+8  UTF8Locale tan
172 keybind win+alt+1  UTF8Locale ona
174 keybind win+alt+b  AudibleBell toggle
176 # press win+c to enter 'command mode'
177 keybind win+c  CommandMode
179 keybind ctrl+win+q  CloseTab
180 keybind ctrl+win+k  KillTab
182 keybind ctrl+alt+Left   SwitchToTab prev nowrap
183 keybind ctrl+alt+Right  SwitchToTab next nowrap
184 keybind ctrl+alt+Home   SwitchToTab first
185 keybind ctrl+alt+End    SwitchToTab last
187 keybind ctrl+alt+1      SwitchToTab 1
188 keybind ctrl+alt+2      SwitchToTab 2
189 keybind ctrl+alt+3      SwitchToTab 3
190 keybind ctrl+alt+4      SwitchToTab 4
191 keybind ctrl+alt+5      SwitchToTab 5
192 keybind ctrl+alt+6      SwitchToTab 6
193 keybind ctrl+alt+7      SwitchToTab 7
194 keybind ctrl+alt+8      SwitchToTab 8
195 keybind ctrl+alt+9      SwitchToTab 9
196 keybind ctrl+alt+0      SwitchToTab 0
198 keybind alt+shift+Left   MoveTabTo prev nowrap
199 keybind alt+shift+Right  MoveTabTo next nowrap
201 keybind alt+Up     ScrollHistoryLineUp
202 keybind alt+Down   ScrollHistoryLineDown
203 keybind alt+Prior  ScrollHistoryPageUp
204 keybind alt+Next   ScrollHistoryPageDown
205 keybind alt+Home   ScrollHistoryTop
206 keybind alt+End    ScrollHistoryBottom
208 # keypad translation for keymap (only!)
209 keytrans reset
210 keytrans KP_Home    Home
211 keytrans KP_Left    Left
212 keytrans KP_Up      Up
213 keytrans KP_Right   Right
214 keytrans KP_Down    Down
215 keytrans KP_Prior   Prior
216 keytrans KP_Next    Next
217 keytrans KP_End     End
218 keytrans KP_Begin   Begin
219 keytrans KP_Insert  Insert
220 keytrans KP_Delete  Delete
223 # keycodes
224 # modificators: ctrl, shift, alt, win, any
225 keymap reset
226 keymap BackSpace  \177
227 keymap Insert     \e[2~
228 keymap Delete     \e[3~
229 ifterm "rxvt"
230   keymap Home       \e[7~
231   keymap End        \e[8~
232 else
233   keymap Home       \e[1~
234   keymap End        \e[4~
235 endif
236 keymap Prior      \e[5~
237 keymap Next       \e[6~
239 keymap ctrl+Home    \e[1^
240 keymap ctrl+Insert  \e[2^
241 keymap ctrl+Delete  \e[3^
242 keymap ctrl+End     \e[4^
243 keymap ctrl+Prior   \e[5^
244 keymap ctrl+Next    \e[6^
246 ifterm "xterm"
247   # xterm
248   keymap F1   \eOP
249   keymap F2   \eOQ
250   keymap F3   \eOR
251   keymap F4   \eOS
252 else
253   # rxvt
254   keymap F1   \e[11~
255   keymap F2   \e[12~
256   keymap F3   \e[13~
257   keymap F4   \e[14~
258 endif
259 keymap F5   \e[15~
260 keymap F6   \e[17~
261 keymap F7   \e[18~
262 keymap F8   \e[19~
263 keymap F9   \e[20~
264 keymap F10  \e[21~
265 keymap F11  \e[23~
266 keymap F12  \e[24~
268 keymap shift+F1   \e[23~
269 keymap shift+F2   \e[24~
270 keymap shift+F3   \e[25~
271 keymap shift+F4   \e[26~
272 keymap shift+F5   \e[28~
273 keymap shift+F6   \e[29~
274 keymap shift+F7   \e[31~
275 keymap shift+F8   \e[32~
276 keymap shift+F9   \e[33~
277 keymap shift+F10  \e[34~
279 keymap ctrl+F1   \e[11^
280 keymap ctrl+F2   \e[12^
281 keymap ctrl+F3   \e[13^
282 keymap ctrl+F4   \e[14^
283 keymap ctrl+F5   \e[15^
284 keymap ctrl+F6   \e[17^
285 keymap ctrl+F7   \e[18^
286 keymap ctrl+F8   \e[19^
287 keymap ctrl+F9   \e[20^
288 keymap ctrl+F10  \e[21^
290 keymap ctrl+shift+F1   \e[11@
291 keymap ctrl+shift+F2   \e[12@
292 keymap ctrl+shift+F3   \e[13@
293 keymap ctrl+shift+F4   \e[14@
294 keymap ctrl+shift+F5   \e[15@
295 keymap ctrl+shift+F6   \e[17@
296 keymap ctrl+shift+F7   \e[18@
297 keymap ctrl+shift+F8   \e[19@
298 keymap ctrl+shift+F9   \e[20@
299 keymap ctrl+shift+F10  \e[21@
301 ifterm "xterm"
302  # xterm
303  keymap Up     \eOA
304  keymap Down   \eOB
305  keymap Right  \eOC
306  keymap Left   \eOD
307 else
308  # rxvt
309   keymap Up     \e[A
310   keymap Down   \e[B
311   keymap Right  \e[C
312   keymap Left   \e[D
313 endif
315 ### keymap kpad+Up     \eOA
316 ### keymap kpad+Down   \eOB
317 ### keymap kpad+Right  \eOC
318 ### keymap kpad+Left   \eOD
320 keymap shift+Up     \e[1;2A
321 keymap shift+Down   \e[1;2B
322 keymap shift+Right  \e[1;2C
323 keymap shift+Left   \e[1;2D
325 keymap alt+Up     \e[1;3A
326 keymap alt+Down   \e[1;3B
327 keymap alt+Right  \e[1;3C
328 keymap alt+Left   \e[1;3D
330 keymap shift+alt+Up     \e[1;4A
331 keymap shift+alt+Down   \e[1;4B
332 keymap shift+alt+Right  \e[1;4C
333 keymap shift+alt+Left   \e[1;4D
335 keymap ctrl+Up     \e[1;5A
336 keymap ctrl+Down   \e[1;5B
337 keymap ctrl+Right  \e[1;5C
338 keymap ctrl+Left   \e[1;5D
340 keymap ctrl+shift+Up     \e[1;6A
341 keymap ctrl+shift+Down   \e[1;6B
342 keymap ctrl+shift+Right  \e[1;6C
343 keymap ctrl+shift+Left   \e[1;6D
345 keymap ctrl+alt+Up     \e[1;7A
346 keymap ctrl+alt+Down   \e[1;7B
347 keymap ctrl+alt+Right  \e[1;7C
348 keymap ctrl+alt+Left   \e[1;7D
350 keymap ctrl+alt+shift+Up     \e[1;8A
351 keymap ctrl+alt+shift+Down   \e[1;8B
352 keymap ctrl+alt+shift+Right  \e[1;8C
353 keymap ctrl+alt+shift+Left   \e[1;8D
355 #keymap alt+Return  \e\x0a
358 ifterm "rxvt"
359   keymap Ctrl+Prior  \e\133\065\136
360   keymap Ctrl+Next   \e\133\066\136
361   keymap Ctrl+Home   \e\133\067\136
362   keymap Ctrl+End    \e\133\070\136
363   keymap Shift+Home  \e\133\067\044
364   keymap Shift+End   \e\133\070\044
365   keymap Shift+F1    \e\133\062\063\176
366   keymap Shift+F2    \e\133\062\064\176
367   keymap Shift+F3    \e\133\062\065\176
368   keymap Shift+F4    \e\133\062\066\176
369   keymap Shift+F5    \e\133\062\070\176
370   keymap Shift+F6    \e\133\062\071\176
371   keymap Shift+F7    \e\133\063\061\176
372   keymap Shift+F8    \e\133\063\062\176
373   keymap Shift+F9    \e\133\063\063\176
374   keymap Shift+F10   \e\133\063\064\176
375   #keymap Alt+Return  \e\012
376   #keymap Alt+Tab     \e\t
377 endif