     @canvas.translate @view[0], @view[1]
     @_drawLayers()
 
+    unless @lastDrawAt
+      @_clearScreen()
+
     @output.write "\x1B[?6h"
     @output.write @canvas.frame()
 
     @isDrawing = false
+    @lastDrawAt = Date.now()
 
   featuresAt: (x, y) ->
     @labelBuffer.featuresAt x, y
 
+  _clearScreen: ->
+    @output.write "\x1B[2J"
+
   _write: (output) ->
-    process.stdout.write output
+    @output.write output
 
   _drawLayers: ->
     for layer in @config.drawOrder

  draw: (@view, @zoom, @degree) ->
    return if @isDrawing
    @isDrawing = true
    @lastDrawAt = Date.now()

    @notify "rendering..."


    language: 'de'

    labelMargin: 5

    tileSize: 4096
    projectSize: 256

    #"poi_label", "water",
    drawOrder: [
