-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 6253fea21cf04bd18a28bfc35664d10a31abc01a: path_to: revision_to:
commit 6253fea21cf04bd18a28bfc35664d10a31abc01a Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com> Date: Sun Dec 18 02:25:12 2011 +0000 Add info entries in the optList array for resource options that require special parsing so as to print the corresponding description in usage ('keysym.sym' was printed manually before). diff --git a/src/xdefaults.C b/src/xdefaults.C
--- a/src/xdefaults.C +++ b/src/xdefaults.C @@ -49,6 +49,9 @@ #define INFO(opt, arg, desc) \ {0, Optflag_Info, -1, NULL, (opt), (arg), (desc)} +#define RINFO(kw, arg) \ + {0, Optflag_Info, -1, (kw), NULL, (arg), NULL} + /* STRG () - command-line option, with/without resource */ #define STRG(rsp, kw, opt, arg, desc) \ {0, 0, (rsp), (kw), (opt), (arg), (desc)} @@ -271,11 +274,18 @@ optList[] = { #endif #ifdef HAVE_AFTERIMAGE STRG (Rs_blendtype, "blendType", "blt", "string", "background image blending type - alpha, tint, etc..."), +#endif +#ifndef NO_RESOURCES + RINFO ("xrm", "string"), +#endif +#ifdef KEYSYM_RESOURCE + RINFO ("keysym.sym", "keysym"), #endif INFO ("e", "command arg ...", "command to execute") }; #undef INFO +#undef RINFO #undef STRG #undef RSTRG #undef SWCH @@ -455,11 +465,6 @@ rxvt_usage (int type) optList[i].kw, (INDENT - strlen (optList[i].kw)), "", /* XXX */ (optList_isBool (i) ? "boolean" : optList[i].arg)); -#ifdef KEYSYM_RESOURCE - rxvt_log (" " "keysym.sym" ": %*s%s\n", - (INDENT - sizeof ("keysym.sym") + 1), "", /* XXX */ - "keysym"); -#endif rxvt_log ("\n -help to list options"); break; }
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 11:47:01 2024