generate termbox window sizes dynamically.