title: How to make this output faster?
body: <pre><code>import time
  import sys
  try:                                                                        
      shell = sys.stdout.shell
  except AttributeError:
      raise RuntimeError("you must run this program in IDLE")
  
  Grid=[[0,0,0,0,0,1,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,],[0,0,0,0,0,0,0,0,0,0,]]
  counterX=0
  counterY=0
  while (counterX&lt;=10 and counterY&lt;=19):
      if(Grid[counterY-1][counterX-1]==0):
          if (counterX!=10):
              shell.write("⬛")
          else:
              shell.write("⬛\n")
      if(Grid[counterY-1][counterX-1]==1):
          if (counterX!=10):
              print("⬛", end="")
          else:
              print("⬛")
      if(counterX!=10):
          counterX+=1
      else:
          counterX=0
          counterY+=1
  i=0
  for i in range (0,44):
      print("")
      i+=1
  </code></pre>
  
  <p>I set myself the challenge of creating a GUI game using ASCII- and in doing so I print out the game grid every single game state (I print it so that it looks like it has replaced the last game state when really it has been printed enough lines down so it looks to be in the same place).I print each tile individually because I need my object to take up a different colour to differentiate background and object. (I haven't yet added the 'if value 1 make the colour red")</p>
  
  <p>Anyway- when printing this out, you can see it print row by row. It's fast- but noticeable. How do I print it all at once?</p>
  
  <p>The new code is to be tested on a fullscreen shell window</p>