docs: function _setEnv(env) {
      let defaults = {
          scheme: "16",
          isBrowser: false,
          debug: false
      };
  
      if(env.TINTER_TEST === undefined) {
  
          //"darwin", "freebsd", "linux", "sunos", "win32"
  
          // if(env.CLICOLOR === "1") {
          //     // No need to do anything
          // } else {console.warn("Warning: Environment variable CLICOLOR is missing or set to zero/no color.");}
  
          switch(env.TERM) {
              case "xterm":
                  defaults.scheme = "16";
                  break; // In theory, just 8!
              case "xterm-color":
                  defaults.scheme = "16";
                  break;
              case "xterm-16color":
                  defaults.scheme = "16";
                  break;
              case "xterm-256color":
                  switch(env.TERM_PROGRAM) {
                      case "Apple_Terminal":
                          defaults.scheme = "16M";
                          break;
                      case "iTerm.app":
                          defaults.scheme = "16M";
                          break;
                      default:
                          if(env.FORCE_COLOR === "true") {
                              defaults.scheme = "16";
                          } else {
                              defaults.scheme = "256";
                          }
                      // Programs like WS have no TERM_PROGRAM VALUE... assume 8/16-color only
                  }
                  break;
          }
  
          // TODO - implement smart color selection if COLORFGBG is set.
          // if(env.COLORFGBG !== undefined) {
          //     let [fg, bg] = env.COLORFGBG.split(";");
          //     console.log(`setEnv: FG: ${fg}`);
          //     console.log(`setEnv: BG: ${bg}`);
          // }
      } else if(schemes.includes(env.TINTER_TEST)) {
          defaults.scheme = env.TINTER_TEST;
      }
      return defaults;
  }