diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-17 00:51:46 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-17 00:51:46 -0400 |
commit | f3e6838b44a5b37ce7664db5b8662e3d02e5f539 (patch) | |
tree | e97eeeabab78ba2c84d3b0069c8db9911cd021b2 /kernel/lib | |
parent | fmt (diff) | |
download | comus-f3e6838b44a5b37ce7664db5b8662e3d02e5f539.tar.gz comus-f3e6838b44a5b37ce7664db5b8662e3d02e5f539.tar.bz2 comus-f3e6838b44a5b37ce7664db5b8662e3d02e5f539.zip |
font rending in framebuffer yay!!
Diffstat (limited to 'kernel/lib')
-rw-r--r-- | kernel/lib/isprint.c | 6 | ||||
-rw-r--r-- | kernel/lib/kprintf.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/kernel/lib/isprint.c b/kernel/lib/isprint.c new file mode 100644 index 0000000..e5582dc --- /dev/null +++ b/kernel/lib/isprint.c @@ -0,0 +1,6 @@ +#include <lib.h> + +int isprint(int c) +{ + return ((unsigned)(c - 0x20) <= (0x7e - 0x20)); +} diff --git a/kernel/lib/kprintf.c b/kernel/lib/kprintf.c index 269318f..452e45c 100644 --- a/kernel/lib/kprintf.c +++ b/kernel/lib/kprintf.c @@ -1,7 +1,7 @@ #include "lib/kio.h" #include <lib.h> +#include <comus/term.h> #include <comus/drivers/uart.h> -#include <comus/drivers/term.h> #define PRINTF_NUMERIC_BUF_LEN 50 |