title: Simple python curses-application uses 100% CPU while running. Is this normal?
body: <p>Im building this simple application and i noticed that while curses is running the CPU-load in "top" is 100%.. this seems bad. Can anyone explain this?</p>
  
  <pre><code>def Run(self, stdscr):
  
      self.screen = stdscr
  
      curs_set(0)
      self.screen.nodelay(1)
      self.y_max = self.screen.getmaxyx()[0]
      self.x_max = self.screen.getmaxyx()[1] 
  
      for e in self.Inv:
          self.Create_Win(self.Inv.index(e), e)
  
      self.test_win = self.screen.derwin(1, self.x_max, 10, 0)
      self.test_win.addstr(self.TargetDict["Target_1"]["Obj"].Name)
  
      running = True
      while running:
          self.screen.refresh()
          q = self.screen.getch()
  
  
          #Press q to exit program
          if q == ord("q"):
              running = False
  </code></pre>
  
  <h2><img src="https://i.stack.imgur.com/Hw9os.jpg" alt="enter image description here"></h2>
  
  <p><img src="https://i.stack.imgur.com/eKCxm.jpg" alt="enter image description here"></p>
  
  <p>This is how the program looks while its running. As soon as i terminate the programwith 'q' it goes down to normal. </p>