summaryrefslogtreecommitdiffstats
path: root/src/screen.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "src/screen.c: Drop unneeded #include"Patrick McDermott2019-10-191-0/+1
| | | | | | This reverts commit 1235a5c62e606a16937c832c7b676d7aeb4e70e7. Needed for STDIN_FILENO.
* src/screen.c: Drop unneeded #includePatrick McDermott2019-10-191-1/+0
| | | | sleep() was removed in 0c8ff11.
* screen_main(): Poll inputPatrick McDermott2019-10-191-2/+10
|
* screen_main(): Handle KEY_RESIZEPatrick McDermott2019-10-181-0/+6
|
* Fix GPL versionPatrick McDermott2019-10-141-2/+2
| | | | | I don't know how or why I ended up applying GPLv2. I must have copied from one of my GPLv2-or-later projects and not noticed the error.
* screen_main(): Exit on Esc keyPatrick McDermott2019-10-141-0/+9
|
* screen_main(): Filter out multi-char keysPatrick McDermott2019-10-131-0/+1
| | | | For example, "ESC [ A" is the up key.
* screen_new(): Draw in red on blackPatrick McDermott2019-10-131-0/+5
|
* screen_main(): Implement basic event loopPatrick McDermott2019-10-131-5/+23
|
* screen_draw(): Rename to screen_main()Patrick McDermott2019-10-131-3/+10
|
* clock_*(): New functionsPatrick McDermott2019-10-131-1/+17
| | | | And create and draw the clock on the screen.
* screen_new(): Free screen on errorPatrick McDermott2019-10-101-0/+1
|
* screen_destroy(): Restore terminal mode, free windowPatrick McDermott2019-10-081-0/+3
|
* screen_*(): New functionsPatrick McDermott2019-10-081-0/+67