     }
     SDL_SetRenderDrawColor(rend, 255, 255, 255, 255)
     SDL_RenderClear(rend)
-    let msgResult = SDL_RenderCopy(rend, msg, nil, &msgRect)
     drawAgain()
     SDL_RenderPresent(rend)
     invalidated = false

    self.renderer = renderer
    self.font = font
    cellHeight = TTF_FontHeight(font)
//    TTF_SizeText(font, "W", &cellWidth, &cellHeight)
  //  p("cellWidth \(cellWidth)")
//    var minx: Int32 = 0
  //  var maxx: Int32 = 0
    //var advance: Int32 = 0
//    TTF_GlyphMetrics(font, 65, &minx, &maxx, nil, nil, &cellWidth)
    TTF_GlyphMetrics(font, 65, nil, nil, nil, nil, &cellWidth)
    //p("minx \(minx), maxx \(maxx), advance \(advance)")
  }

  func move(x: Int, y: Int) {

  throw SDLError.CreateRenderer
}

if TTF_Init() == -1 {
  throw SDLError.FontInit
}

defer { TTF_Quit() }

let fontPath = "/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf"

let freeSans = TTF_OpenFont(fontPath, 12)

if freeSans == nil {
