def is_bare_console():
 if (platform.system() == 'Windows'):
  try:
   import ctypes
   GetConsoleProcessList = ctypes.windll.kernel32.GetConsoleProcessList
   num = GetConsoleProcessList(ctypes.byref(ctypes.c_int(0)), ctypes.c_int(1))
   if (num == 1):
    return True
  except Exception:
   pass
 return False

def is_bare_console ( ) : if ( platform . system ( ) == 'Windows' ) : try : import ctypes GetConsoleProcessList = ctypes . windll . kernel32 . GetConsoleProcessList num = GetConsoleProcessList ( ctypes . byref ( ctypes . c_int ( 0 ) ) , ctypes . c_int ( 1 ) ) if ( num == 1 ) : return True except Exception : pass return False
returns true if overviewer is running in a bare console in windows .