wm: teppich

Download patch

ref: 8b4726ff2f15028c71b93aafb02b378898edb802
parent: 9a0c908fe3529afac4914d54e28ae152cb53dd45
author: mkf <mkf@cloud9p.org>
date: Tue Nov 28 21:28:05 EST 2023

pc/vga: fix \b and remove uneeded mem.h

--- a/pc/vga.c
+++ b/pc/vga.c
@@ -1,7 +1,6 @@
 #include <u.h>
 #include <libc.h>
 #include <vga.h>
-#include <mem.h>
 
 static inline uint8
 vga_gencolor(int fg, int bg)
@@ -93,7 +92,7 @@
 			return;
 		case '\b':
 			if(vga_col > 0)
-				vga_writeto(' ', vga_color, vga_row, --vga_col);
+				vga_writeto(' ', vga_color, --vga_col, vga_row);
 
 			return;
 		default: