got some of the pty actually working in userspace

This commit is contained in:
2026-07-12 03:56:25 -05:00
parent 992ffd1f6b
commit 3c6fd8cb65
16 changed files with 140 additions and 147 deletions

View File

@@ -77,4 +77,15 @@ void vga_putchar(char c) {
if (++terminal_row == VGA_HEIGHT)
terminal_row = 0;
}
}
uint32_t vga_write(vfs_node_t* node, uint32_t offset, uint32_t size, uint8_t* buf) {
terminal_row = offset / VGA_WIDTH;
terminal_column = offset % VGA_WIDTH;
for (uint32_t i = 0; i < size; i++) {
vga_putchar((char)buf[i]);
}
return size;
}