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