Isolate termbox dependency
Closed this issue · 0 comments
isbadawi commented
There are references to termbox sprinkled throughout the code. Could imagine a struct terminal
with function pointers wrapping the termbox api.
One advantage would be that we could set up a mock terminal for testing. This would let us test the code in draw.c
, and also clean this up:
Lines 351 to 357 in 63feceb