… | |
… | |
4 | * |
4 | * |
5 | * All portions of code are copyright by their respective author/s. |
5 | * All portions of code are copyright by their respective author/s. |
6 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
6 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
7 | * - original version |
7 | * - original version |
8 | * Copyright (c) 1997,1998 mj olesen <olesen@me.queensu.ca> |
8 | * Copyright (c) 1997,1998 mj olesen <olesen@me.queensu.ca> |
9 | * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com> |
9 | * Copyright (c) 2003-2006 Marc Lehmann <pcg@goof.com> |
10 | * |
10 | * |
11 | * This program is free software; you can redistribute it and/or modify |
11 | * This program is free software; you can redistribute it and/or modify |
12 | * it under the terms of the GNU General Public License as published by |
12 | * it under the terms of the GNU General Public License as published by |
13 | * the Free Software Foundation; either version 2 of the License, or |
13 | * the Free Software Foundation; either version 2 of the License, or |
14 | * (at your option) any later version. |
14 | * (at your option) any later version. |
… | |
… | |
225 | STRG (Rs_saveLines, "saveLines", "sl", "number", "number of scrolled lines to save"), |
225 | STRG (Rs_saveLines, "saveLines", "sl", "number", "number of scrolled lines to save"), |
226 | #if ENABLE_XEMBED |
226 | #if ENABLE_XEMBED |
227 | STRG (Rs_embed, NULL, "embed", "windowid", "window id to embed terminal in"), |
227 | STRG (Rs_embed, NULL, "embed", "windowid", "window id to embed terminal in"), |
228 | #endif |
228 | #endif |
229 | #if ENABLE_FRILLS |
229 | #if ENABLE_FRILLS |
|
|
230 | RSTRG (Rs_transient_for, "transient-for", "windowid"), |
230 | STRG (Rs_pty_fd, NULL, "pty-fd", "fileno", "file descriptor of pty to use"), |
231 | STRG (Rs_pty_fd, NULL, "pty-fd", "fileno", "file descriptor of pty to use"), |
231 | BOOL (Rs_hold, "hold", "hold", Opt_hold, "retain window after shell exit"), |
232 | BOOL (Rs_hold, "hold", "hold", Opt_hold, "retain window after shell exit"), |
232 | STRG (Rs_ext_bwidth, "externalBorder", "w", "number", "external border in pixels"), |
233 | STRG (Rs_ext_bwidth, "externalBorder", "w", "number", "external border in pixels"), |
233 | STRG (Rs_ext_bwidth, NULL, "bw", NULL, NULL), |
234 | STRG (Rs_ext_bwidth, NULL, "bw", NULL, NULL), |
234 | STRG (Rs_ext_bwidth, NULL, "borderwidth", NULL, NULL), |
235 | STRG (Rs_ext_bwidth, NULL, "borderwidth", NULL, NULL), |
… | |
… | |
572 | { /* boolean value */ |
573 | { /* boolean value */ |
573 | #ifdef DEBUG_RESOURCES |
574 | #ifdef DEBUG_RESOURCES |
574 | fprintf (stderr, "boolean (%s,%s) = %s\n", |
575 | fprintf (stderr, "boolean (%s,%s) = %s\n", |
575 | optList[entry].opt, optList[entry].kw, flag); |
576 | optList[entry].opt, optList[entry].kw, flag); |
576 | #endif |
577 | #endif |
577 | if (flag == On) |
|
|
578 | SET_OPTION (optList[entry].flag & Optflag_mask); |
578 | set_option (optList[entry].flag & Optflag_mask, flag == On); |
579 | else |
|
|
580 | CLR_OPTION (optList[entry].flag & Optflag_mask); |
|
|
581 | |
579 | |
582 | if (optList[entry].doff != -1) |
580 | if (optList[entry].doff != -1) |
583 | rs[optList[entry].doff] = flag; |
581 | rs[optList[entry].doff] = flag; |
584 | } |
582 | } |
585 | } |
583 | } |
… | |
… | |
866 | || strcmp (str, "1") == 0; |
864 | || strcmp (str, "1") == 0; |
867 | |
865 | |
868 | if (optList_isReverse (entry)) |
866 | if (optList_isReverse (entry)) |
869 | s = !s; |
867 | s = !s; |
870 | |
868 | |
871 | if (s) |
|
|
872 | SET_OPTION (optList[entry].flag & Optflag_mask); |
869 | set_option (optList[entry].flag & Optflag_mask, s); |
873 | else |
|
|
874 | CLR_OPTION (optList[entry].flag & Optflag_mask); |
|
|
875 | } |
870 | } |
876 | } |
871 | } |
877 | |
872 | |
878 | break; |
873 | break; |
879 | } |
874 | } |
… | |
… | |
1038 | || strcasecmp (p, "1") == 0; |
1033 | || strcasecmp (p, "1") == 0; |
1039 | |
1034 | |
1040 | if (optList_isReverse (entry)) |
1035 | if (optList_isReverse (entry)) |
1041 | s = !s; |
1036 | s = !s; |
1042 | |
1037 | |
1043 | if (s) |
|
|
1044 | SET_OPTION (optList[entry].flag & Optflag_mask); |
1038 | set_option (optList[entry].flag & Optflag_mask, s); |
1045 | else |
|
|
1046 | CLR_OPTION (optList[entry].flag & Optflag_mask); |
|
|
1047 | } |
1039 | } |
1048 | } |
1040 | } |
1049 | } |
1041 | } |
1050 | |
1042 | |
1051 | /* |
1043 | /* |