This commit is contained in:
able 2022-08-06 08:16:08 -05:00
parent 4518e7ef5e
commit e8221f8513
2 changed files with 5 additions and 2 deletions

View file

@ -58,7 +58,7 @@ impl log::Log for SimpleLogger {
record.args(),
);
println!("{msg}");
// println!("{msg}");
if KERNEL_CONF.logging.log_to_serial {
serial_println!(

View file

@ -10,6 +10,7 @@ use crate::devices::pci::brute_force_scan;
use crate::image::mono_bitmap::bruh;
use crate::systeminfo::{KERNEL_VERSION, RELEASE_TYPE};
use crate::time::fetch_time;
use crate::KERNEL_STATE;
use crate::{
arch::shutdown, filesystem::FILE_SYSTEM, rhai_shell::KEYBUFF, vterm::VTerm,
wasm_jumploader::run_program,
@ -82,6 +83,7 @@ pub fn scratchpad() {
disable();
let tick_time = fetch_time();
let hostname = &KERNEL_STATE.lock().hostname;
let allocator = ALLOCATOR.lock();
let size = allocator.size();
@ -92,7 +94,7 @@ pub fn scratchpad() {
println!(
"{}
,-------. OS: \0BLUE\0AbleOS\0RESET\0
,'\\ _ _`. Host: None
,'\\ _ _`. Host: \0PINK\0{}\0RESET\0
/ \\)_)-)_)-\\ Kernel: \0RED\0AKern-{}-v{}\0RESET\0
: : Uptime: \0GREEN\0{}\0RESET\0
\\ / Packages: None
@ -106,6 +108,7 @@ pub fn scratchpad() {
// include_str!("../assets/balloon.txt"),
// kstate.hostname,
BANNER_WIDTH,
hostname,
RELEASE_TYPE,
KERNEL_VERSION,
tick_time,