Fixed .devcontainer to be as it is in original repo

This commit is contained in:
Chris
2026-04-10 15:29:05 +00:00
parent 1c0886c2ae
commit 4d83b36644
6 changed files with 28 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
#include <libc/stdio.h>
#include <libc/stdint.h>
#include <libc/limits.h>
#include <libc/stddef.h>
const size_t VGA_HEIGHT = 25;
const size_t VGA_WIDTH = 80;
static uint16_t* terminalBuffer = (uint16_t*) 0xB8000;
void terminalEntryAt(char c, uint8_t colour, size_t x, size_t y){
size_t index = y * VGA_WIDTH + x;
terminalBuffer[index] = vgaEntry(c, colour);
}