class_docstr: Implements a 'write()' method which, on Windows, will strip ANSI character
  sequences from the text, and if outputting to a tty, will convert them into
  win32 function calls.
code: def extract_params(self, command, paramstring):
      if command in "Hf":
          params = tuple(
              int(p) if len(p) != 0 else 1
              for p in paramstring.split(";")
          )
          while len(params) < 2:
              # defaults:
              params = params + (1,)
      else:
          params = tuple(
              int(p) for p in paramstring.split(";") if len(p) != 0
          )
          if len(params) == 0:
              # defaults:
              if command in "JKm":
                  params = (0,)
              elif command in "ABCD":
                  params = (1,)
  
      return params
  
imports: import re
  import sys
  import os
  from .ansi import AnsiFore, AnsiBack, AnsiStyle, Style, BEL
  from .winterm import enable_vt_processing, WinTerm, WinColor, WinStyle
  from .win32 import windll, winapi_test
label_desc: Use image node_id 9 for calling the AnsiToWin32 obj's underlying member method code with example usage: obj.extract_params(command, paramstring) and returns: params