From d2aebee488b71e6f28b8728e7473b63f412ca897 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Thu, 11 Jul 2013 22:38:20 +0200 Subject: Added direct acces to video memory from userland. Next : same for keyboard ; move VT handling to userland. Consequence : a foreground app has total control over I/O. Next : implement sockets & a userland console multiplexer. --- src/user/app/yosh/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/user/app/yosh/main.c') diff --git a/src/user/app/yosh/main.c b/src/user/app/yosh/main.c index f7ee7e7..e989dc1 100644 --- a/src/user/app/yosh/main.c +++ b/src/user/app/yosh/main.c @@ -80,7 +80,11 @@ void ls_dir(int fd) { printf("\t"); if (info.type & FT_TERMINAL) { printf("%ix%i", info.size >> 16, info.size & 0xFFFF); - } else if ((info.type & FT_DEV) == 0) { + } else if (info.type & FT_DEV) { + if (info.dev_type == DT_VGATXT) { + printf("%ix%i", info.size >> 16, info.size & 0xFFFF); + } + } else { printf("%i", info.size); } -- cgit v1.2.3