consolidate some arg processing

Unix and Windows had diverged significantly for command line
options handling.

This:
   1. uses the the Unix processing as a baseline.
   2. consolidates the code in earlyarg.c, where it can
      be a common copy to be shared.
   3. start converting the Windows command line argument
      processing to the Unix code that now resides in earlyarg.c.
This commit is contained in:
nhmall
2026-04-04 13:44:23 -04:00
parent 9c8c17b70c
commit 92340a6827
8 changed files with 480 additions and 402 deletions

View File

@@ -817,6 +817,7 @@ struct sinfo {
interface to suppress menu commands in similar conditions;
readchar() always resets it to 'otherInp' prior to returning */
int input_state; /* whether next key pressed will be entering a command */
int early_options; /* inside early_options processing */
#ifdef TTY_GRAPHICS
/* resize_pending only matters when handling a SIGWINCH signal for tty;
getting_char is used along with that and also separately for UNIX;