From 7b466345af0d3a7dc5622617ce443a90c64e34a4 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sat, 19 May 2012 09:23:48 +0200 Subject: Added ANSI support, minimal readline-like library. --- src/kernel/core/kmain.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/kernel/core') diff --git a/src/kernel/core/kmain.cpp b/src/kernel/core/kmain.cpp index 0aa047a..05d7966 100644 --- a/src/kernel/core/kmain.cpp +++ b/src/kernel/core/kmain.cpp @@ -61,6 +61,10 @@ extern "C" void kmain(multiboot_info_t* mbd, int32_t magic) { ke_vt->outputTo(text_display); home_vt = new vt(dot_ui, 80, 25); dot_ui->add_child("home", home_vt); + dot_ui->add_child("vt1", new vt(dot_ui, 80, 25)); + dot_ui->add_child("vt2", new vt(dot_ui, 80, 25)); + dot_ui->add_child("vt3", new vt(dot_ui, 80, 25)); + dot_ui->add_child("vt4", new vt(dot_ui, 80, 25)); // Say hello ke_vt->fgcolor = TC_LIGHTGRAY; @@ -105,6 +109,7 @@ extern "C" void kmain(multiboot_info_t* mbd, int32_t magic) { if (pr == 0) { *ke_vt << "Error loading\n"; } else { + pr->fd.set(0, ke_vt); *ke_vt << "OK, pid=" << (int)pr->pid << "\n"; } } else if (initrd_check((uint8_t*)mods[i].mod_start) == 0) { -- cgit v1.2.3