From adfa12d69c0b102a1123cd7fb5a771f85348580c Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 28 Jan 2018 11:04:56 -0500 Subject: Add color.c --- bin/Makefile | 2 ++ bin/color.c | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 bin/color.c (limited to 'bin') diff --git a/bin/Makefile b/bin/Makefile index 7c4f2c8d..1cd8a5e6 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -13,6 +13,8 @@ atch: dtch pbcopy pbpaste: pbd ln -f pbd $@ +color: color.o fb.o + clean: rm -f $(BINS) diff --git a/bin/color.c b/bin/color.c new file mode 100644 index 00000000..3e6c3b5a --- /dev/null +++ b/bin/color.c @@ -0,0 +1,13 @@ +#include + +static uint32_t color; + +void draw(uint32_t *buf, uint32_t xres, uint32_t yres) { + for (uint32_t i = 0; i < xres * yres; ++i) { + buf[i] = color; + } +} + +void input(char c) { + color = color << 4 | (c & 0xF); +} -- cgit 1.4.1 > libtls for OpenSSL
summary refs log tree commit diff
Commit message (Expand)Author
2021-04-18Import LibreSSL 3.3.2June McEnroe
2021-03-05Bump version to 3.3.1p1 3.3.1p1June McEnroe
2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe
2020-12-15Import LibreSSL 3.3.1June McEnroe
2020-11-24Import LibreSSL 3.3.0June McEnroe
2020-10-22Import LibreSSL 3.2.2June McEnroe
2020-09-29Import LibreSSL 3.2.1June McEnroe
2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe
2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe
2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe