code: def trap_ctrl_c_ctrl_break() -> None:
        # noqa
  
      signal.signal(signal.SIGINT, ctrl_c_trapper)
      signal.signal(signal.SIGTERM, sigterm_trapper)
      if platform.system() == 'Windows':
          # SIGBREAK isn't in the Linux signal module
          # noinspection PyUnresolvedReferences
          signal.signal(signal.SIGBREAK, ctrl_break_trapper)
docs: Prevent ``CTRL-C``, ``CTRL-BREAK``, and similar signals from doing
      anything.
      
      See
      
      - https://docs.python.org/3/library/signal.html#signal.SIG_IGN
      - https://msdn.microsoft.com/en-us/library/xdkz3x12.aspx
      - https://msdn.microsoft.com/en-us/library/windows/desktop/ms682541(v=vs.85).aspx
  
      Under Windows, the only options are:
      
        =========== ======================= =====================================
        Signal      Meaning                 Comment
        =========== ======================= =====================================
        SIGABRT     abnormal termination
        SIGFPE      floating-point error
        SIGILL      illegal instruction
        SIGINT      CTRL+C signal           -- trapped here
        SIGSEGV     illegal storage access
        SIGTERM     termination request     -- trapped here
        SIGBREAK    CTRL+BREAK              -- trapped here under Windows
        =========== ======================= =====================================
  
      In Linux, you also find:
  
        =========== =============================
        Signal      Meaning
        =========== =============================
        SIGBUS      bus error / unaligned access
        =========== =============================
  
      To ignore, can do:
      
      .. code-block:: python
      
        signal.signal(signal.SIGINT, signal.SIG_IGN)  # SIG_IGN = "ignore me"
        
      or pass a specified handler, as in the code here.