… | |
… | |
91 | SWCH ("iconic", Opt_iconic, "start iconic"), |
91 | SWCH ("iconic", Opt_iconic, "start iconic"), |
92 | SWCH ("ic", Opt_iconic, NULL), /* short form */ |
92 | SWCH ("ic", Opt_iconic, NULL), /* short form */ |
93 | BOOL (Rs_reverseVideo, "reverseVideo", "rv", Opt_reverseVideo, "reverse video"), |
93 | BOOL (Rs_reverseVideo, "reverseVideo", "rv", Opt_reverseVideo, "reverse video"), |
94 | BOOL (Rs_loginShell, "loginShell", "ls", Opt_loginShell, "login shell"), |
94 | BOOL (Rs_loginShell, "loginShell", "ls", Opt_loginShell, "login shell"), |
95 | BOOL (Rs_jumpScroll, "jumpScroll", "j", Opt_jumpScroll, "jump scrolling"), |
95 | BOOL (Rs_jumpScroll, "jumpScroll", "j", Opt_jumpScroll, "jump scrolling"), |
|
|
96 | BOOL (Rs_pastableTabs, "pastableTabs", "ptab", Opt_pastableTabs, "tab characters are pastable"), |
96 | #ifdef HAVE_SCROLLBARS |
97 | #ifdef HAVE_SCROLLBARS |
97 | BOOL (Rs_scrollBar, "scrollBar", "sb", Opt_scrollBar, "scrollbar"), |
98 | BOOL (Rs_scrollBar, "scrollBar", "sb", Opt_scrollBar, "scrollbar"), |
98 | BOOL (Rs_scrollBar_right, "scrollBar_right", "sr", Opt_scrollBar_right, "scrollbar right"), |
99 | BOOL (Rs_scrollBar_right, "scrollBar_right", "sr", Opt_scrollBar_right, "scrollbar right"), |
99 | BOOL (Rs_scrollBar_floating, "scrollBar_floating", "st", Opt_scrollBar_floating, "scrollbar without a trough"), |
100 | BOOL (Rs_scrollBar_floating, "scrollBar_floating", "st", Opt_scrollBar_floating, "scrollbar without a trough"), |
100 | #endif |
101 | #endif |
… | |
… | |
109 | #if TINTING |
110 | #if TINTING |
110 | STRG (Rs_color + Color_tint, "tintColor", "tint", "color", "tint color"), |
111 | STRG (Rs_color + Color_tint, "tintColor", "tint", "color", "tint color"), |
111 | #endif |
112 | #endif |
112 | #endif |
113 | #endif |
113 | #ifdef OFF_FOCUS_FADING |
114 | #ifdef OFF_FOCUS_FADING |
114 | STRG (Rs_fade, "fading", "fade", "%", "make colors x% darker when urxvt is losing focus."), |
115 | STRG (Rs_fade, "fading", "fade", "%", "make colors x% darker when rxvt-unicode is losing focus."), |
115 | #endif |
116 | #endif |
116 | #ifdef TINTING |
117 | #ifdef TINTING |
117 | STRG (Rs_shade, "shading", "sh", "%", "shade background by x% when tinting."), |
118 | STRG (Rs_shade, "shading", "sh", "%", "shade background by x% when tinting."), |
118 | #endif |
119 | #endif |
119 | BOOL (Rs_utmpInhibit, "utmpInhibit", "ut", Opt_utmpInhibit, "utmp inhibit"), |
120 | BOOL (Rs_utmpInhibit, "utmpInhibit", "ut", Opt_utmpInhibit, "utmp inhibit"), |
… | |
… | |
158 | RSTRG (Rs_color + minBrightCOLOR + 5, "color13", "color"), |
159 | RSTRG (Rs_color + minBrightCOLOR + 5, "color13", "color"), |
159 | RSTRG (Rs_color + minBrightCOLOR + 6, "color14", "color"), |
160 | RSTRG (Rs_color + minBrightCOLOR + 6, "color14", "color"), |
160 | RSTRG (Rs_color + minBrightCOLOR + 7, "color15", "color"), |
161 | RSTRG (Rs_color + minBrightCOLOR + 7, "color15", "color"), |
161 | #endif /* NO_BRIGHTCOLOR */ |
162 | #endif /* NO_BRIGHTCOLOR */ |
162 | #ifndef NO_BOLD_UNDERLINE_REVERSE |
163 | #ifndef NO_BOLD_UNDERLINE_REVERSE |
163 | BOOL (Rs_realBold, "realBold", "rb", Opt_realBold, "use bold fonts for bold text"), |
|
|
164 | RSTRG (Rs_color + Color_BD, "colorBD", "color"), |
164 | RSTRG (Rs_color + Color_BD, "colorBD", "color"), |
|
|
165 | RSTRG (Rs_color + Color_IT, "colorIT", "color"), |
165 | RSTRG (Rs_color + Color_UL, "colorUL", "color"), |
166 | RSTRG (Rs_color + Color_UL, "colorUL", "color"), |
166 | RSTRG (Rs_color + Color_RV, "colorRV", "color"), |
167 | RSTRG (Rs_color + Color_RV, "colorRV", "color"), |
167 | #endif /* ! NO_BOLD_UNDERLINE_REVERSE */ |
168 | #endif /* ! NO_BOLD_UNDERLINE_REVERSE */ |
168 | #ifdef KEEP_SCROLLCOLOR |
169 | #ifdef KEEP_SCROLLCOLOR |
169 | RSTRG (Rs_color + Color_scroll, "scrollColor", "color"), |
170 | RSTRG (Rs_color + Color_scroll, "scrollColor", "color"), |
… | |
… | |
179 | STRG (Rs_backgroundPixmap, "backgroundPixmap", "pixmap", "file[;geom]", "background pixmap"), |
180 | STRG (Rs_backgroundPixmap, "backgroundPixmap", "pixmap", "file[;geom]", "background pixmap"), |
180 | #endif /* XPM_BACKGROUND */ |
181 | #endif /* XPM_BACKGROUND */ |
181 | #if (MENUBAR_MAX) |
182 | #if (MENUBAR_MAX) |
182 | RSTRG (Rs_menu, "menu", "name[;tag]"), |
183 | RSTRG (Rs_menu, "menu", "name[;tag]"), |
183 | #endif |
184 | #endif |
|
|
185 | /* fonts: command-line option = resource name */ |
184 | STRG (Rs_font, "font", "fn", "fontname", "normal text font"), |
186 | STRG (Rs_font, "font", "fn", "fontname", "normal text font"), |
185 | /* fonts: command-line option = resource name */ |
187 | #if ENABLE_STYLES |
|
|
188 | STRG (Rs_boldFont, "boldFont", "fb", "fontname", "bold font"), |
|
|
189 | STRG (Rs_italicFont, "italicFont", "fi", "fontname", "italic font"), |
|
|
190 | STRG (Rs_boldItalicFont, "boldItalicFont", "fbi", "fontname", "bold italic font"), |
|
|
191 | #endif |
186 | #ifdef USE_XIM |
192 | #ifdef USE_XIM |
187 | STRG (Rs_inputMethod, "inputMethod", "im", "name", "name of input method"), |
193 | STRG (Rs_inputMethod, "inputMethod", "im", "name", "name of input method"), |
188 | STRG (Rs_preeditType, "preeditType", "pt", "style", "input style: style = OverTheSpot|OffTheSpot|Root"), |
194 | STRG (Rs_preeditType, "preeditType", "pt", "style", "input style: style = OverTheSpot|OffTheSpot|Root"), |
189 | #if defined(HAVE_XSETLOCALE) || defined(HAVE_SETLOCALE) |
195 | #if defined(HAVE_XSETLOCALE) || defined(HAVE_SETLOCALE) |
190 | STRG (Rs_imLocale, "imLocale", "imlocale", "string", "locale to use for input method"), |
196 | STRG (Rs_imLocale, "imLocale", "imlocale", "string", "locale to use for input method"), |
… | |
… | |
249 | #undef RSTRG |
255 | #undef RSTRG |
250 | #undef SWCH |
256 | #undef SWCH |
251 | #undef BOOL |
257 | #undef BOOL |
252 | /*}}} */ |
258 | /*}}} */ |
253 | |
259 | |
254 | static const char releasestring[] = "Rxvt v" VERSION " - released: " DATE "\n"; |
260 | static const char releasestring[] = "rxvt-unicode (" RXVTNAME ") v" VERSION " - released: " DATE "\n"; |
255 | static const char optionsstring[] = "options: " |
261 | static const char optionsstring[] = "options: " |
256 | #if XFT |
262 | #if XFT |
257 | "xft," |
263 | "xft," |
258 | #endif |
264 | #endif |
|
|
265 | #if ENABLE_STYLES |
|
|
266 | "styles," |
|
|
267 | #endif |
|
|
268 | #if ENABLE_COMBINING |
|
|
269 | "combining," |
|
|
270 | #endif |
|
|
271 | #if TEXT_BLINK |
|
|
272 | "blink," |
|
|
273 | #endif |
|
|
274 | #if ISO_14755 |
|
|
275 | "iso14755," |
|
|
276 | #endif |
259 | #if UNICODE_3 |
277 | #if UNICODE_3 |
260 | "unicode3," |
278 | "unicode3," |
261 | #endif |
279 | #endif |
262 | "encodings=eu+vn" |
280 | "encodings=eu+vn" |
263 | #if ENCODING_JP |
281 | #if ENCODING_JP |
… | |
… | |
267 | "+jp-ext" |
285 | "+jp-ext" |
268 | #endif |
286 | #endif |
269 | #if ENCODING_KR |
287 | #if ENCODING_KR |
270 | "+kr" |
288 | "+kr" |
271 | #endif |
289 | #endif |
272 | #if ENCODING_CN |
290 | #if ENCODING_ZH |
273 | "+cn" |
291 | "+zh" |
274 | #endif |
292 | #endif |
275 | #if ENCODING_CN_EXT |
293 | #if ENCODING_ZH_EXT |
276 | "+cn-ext" |
294 | "+zh-ext" |
277 | #endif |
295 | #endif |
278 | "," |
296 | "," |
279 | #if ENABLE_COMBINING |
|
|
280 | "combining," |
|
|
281 | #endif |
|
|
282 | #if TEXT_BLINK |
|
|
283 | "blink," |
|
|
284 | #endif |
|
|
285 | #if OFF_FOCUS_FADING |
297 | #if OFF_FOCUS_FADING |
286 | "fade," |
298 | "fade," |
287 | #endif |
299 | #endif |
288 | #if defined(XPM_BACKGROUND) |
300 | #if defined(XPM_BACKGROUND) |
289 | "XPM," |
301 | "XPM," |
… | |
… | |
361 | "slipwheel," |
373 | "slipwheel," |
362 | #endif |
374 | #endif |
363 | #if defined(SMART_RESIZE) |
375 | #if defined(SMART_RESIZE) |
364 | "smart-resize," |
376 | "smart-resize," |
365 | #endif |
377 | #endif |
366 | #if defined(TTY_256COLOR) |
|
|
367 | "256colour," |
|
|
368 | #endif |
|
|
369 | #if defined(CURSOR_BLINK) |
378 | #if defined(CURSOR_BLINK) |
370 | "cursorBlink," |
379 | "cursorBlink," |
371 | #endif |
380 | #endif |
372 | #if defined(POINTER_BLANK) |
381 | #if defined(POINTER_BLANK) |
373 | "pointerBlank," |
382 | "pointerBlank," |
… | |
… | |
845 | database = XrmGetStringDatabase (displayResource); |
854 | database = XrmGetStringDatabase (displayResource); |
846 | |
855 | |
847 | # ifdef HAVE_EXTRA_XRESOURCE_FILES |
856 | # ifdef HAVE_EXTRA_XRESOURCE_FILES |
848 | /* Add in ~/.Xdefaults or ~/.Xresources */ |
857 | /* Add in ~/.Xdefaults or ~/.Xresources */ |
849 | { |
858 | { |
850 | char *ptr; |
859 | char *ptr; |
851 | |
860 | |
852 | if ((ptr = (char *)getenv ("HOME")) == NULL) |
861 | if ((ptr = (char *)getenv ("HOME")) == NULL) |
853 | ptr = "."; |
862 | ptr = "."; |
854 | |
863 | |
855 | for (i = 0; i < (sizeof (xnames) / sizeof (xnames[0])); i++) |
864 | for (i = 0; i < (sizeof (xnames) / sizeof (xnames[0])); i++) |