feat: exit on ESC

This commit is contained in:
shokre 2021-09-16 15:30:17 +02:00
parent d0fa03fce4
commit 127e77b190

View file

@ -39,6 +39,10 @@ while running:
orao_kbd_listener(event, cpu)
if event.type in [pygame.KEYDOWN, pygame.KEYUP]:
if pygame.key.get_pressed()[pygame.K_ESCAPE]:
running = False
if event.type == pygame.USEREVENT + 1:
screen.blit(background, [0, 0])
screen.blit(pygame.transform.smoothscale(terminal, (512, 512)), [150, 140])