Changeset 899bdfd in mainline for uspace/app/tetris/screen.c


Ignore:
Timestamp:
2024-09-12T13:14:20Z (4 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
4c2339b
Parents:
dd50aa19
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2024-09-12 11:47:56)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2024-09-12 13:14:20)
Message:

Terminal scrolling and resizing support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tetris/screen.c

    rdd50aa19 r899bdfd  
    7979static usec_t timeleft = 0;
    8080
     81bool size_changed;
    8182console_ctrl_t *console;
    8283
     
    217218
    218219        fprintf(stderr, "aborting: %s", why);
    219         abort();
     220        exit(1);
    220221}
    221222
     
    410411                        exit(1);
    411412
     413                if (event.type == CEV_RESIZE)
     414                        size_changed = true;
     415
    412416                if (event.type == CEV_KEY && event.ev.key.type == KEY_PRESS)
    413417                        c = event.ev.key.c;
Note: See TracChangeset for help on using the changeset viewer.