* Set up the display to start a new toggle-option command. */
| 187 | * Set up the display to start a new toggle-option command. |
| 188 | */ |
| 189 | static void |
| 190 | mca_opt_toggle(VOID_PARAM) |
| 191 | { |
| 192 | int no_prompt; |
| 193 | int flag; |
| 194 | char *dash; |
| 195 | |
| 196 | no_prompt = (optflag & OPT_NO_PROMPT); |
| 197 | flag = (optflag & ~OPT_NO_PROMPT); |
| 198 | dash = (flag == OPT_NO_TOGGLE) ? "_" : "-"; |
| 199 | |
| 200 | set_mca(A_OPT_TOGGLE); |
| 201 | cmd_putstr(dash); |
| 202 | if (optgetname) |
| 203 | cmd_putstr(dash); |
| 204 | if (no_prompt) |
| 205 | cmd_putstr("(P)"); |
| 206 | switch (flag) |
| 207 | { |
| 208 | case OPT_UNSET: |
| 209 | cmd_putstr("+"); |
| 210 | break; |
| 211 | case OPT_SET: |
| 212 | cmd_putstr("!"); |
| 213 | break; |
| 214 | } |
| 215 | forw_prompt = 0; |
| 216 | set_mlist(NULL, 0); |
| 217 | } |
| 218 | |
| 219 | /* |
| 220 | * Execute a multicharacter command. |
no test coverage detected
searching dependent graphs…