Commit bc56dd8
committed
Examples: Let bpfsnake draw in the terminal with --terminal
Both front ends share one Game that queues turns, drives the kernel's
tick and reads the maps back. The terminal one reads keys in cbreak mode
(an arrow's last byte is already the kernel's key code) and draws on the
alternate screen, so it needs no pygame; pygame is imported only for the
window.1 parent 851c7ef commit bc56dd8
1 file changed
Lines changed: 268 additions & 115 deletions
0 commit comments