Browse Source

introduce -A param for default to alt text

master
René Wagner 2 months ago
parent
commit
d06c4cda5c
  1. 3
      doc/cgmnlm.scd
  2. 5
      src/gmnlm.c

3
doc/cgmnlm.scd

@ -28,3 +28,6 @@ cgmnlm - colored Gemini line-mode browser
*-W* _width_
Sets the maximum width, in columns, of Gemtext pages.
*-A*
Enables alternate text instead of preformatted text by default.

5
src/gmnlm.c

@ -1269,7 +1269,7 @@ main(int argc, char *argv[])
};
int c;
while ((c = getopt(argc, argv, "hj:PUW:")) != -1) {
while ((c = getopt(argc, argv, "hj:PAUW:")) != -1) {
switch (c) {
case 'h':
usage(argv[0]);
@ -1286,6 +1286,9 @@ main(int argc, char *argv[])
return 1;
}
break;
case 'A':
browser.alttext = true;
break;
case 'P':
browser.pagination = false;
break;

Loading…
Cancel
Save