aboutsummaryrefslogtreecommitdiff
path: root/src/io.rs
diff options
context:
space:
mode:
authorTianhao Wang <shrik3@mailbox.org>2024-04-18 03:11:41 +0200
committerTianhao Wang <shrik3@mailbox.org>2024-06-11 15:16:34 +0200
commit6f236a7dfbbd74284fec216361f30813998397d3 (patch)
treed76a5621c42f53a7bb5b96ef7b36fdac5779c93f /src/io.rs
parent35d1a6ef41fa716503925226837cf0f0b8894a90 (diff)
chore
Diffstat (limited to 'src/io.rs')
-rw-r--r--src/io.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/io.rs b/src/io.rs
index 664fda2..27be847 100644
--- a/src/io.rs
+++ b/src/io.rs
@@ -27,10 +27,18 @@ pub fn _print(args: fmt::Arguments) {
CGASCREEN_GLOBAL.lock().write_fmt(args).unwrap();
}
-pub fn clear() {
+pub fn clear_screen() {
CGASCREEN_GLOBAL.lock().clear();
}
pub fn set_attr(attr: u8) {
CGASCREEN_GLOBAL.lock().setattr(attr);
}
+
+pub fn print_welcome() {
+ println!("--RuStuBs--");
+ println!(" _._ _,-'\"\"`-._ ~Meow");
+ println!(" (,-.`._,'( |\\`-/|");
+ println!(" `-.-' \\ )-`( , o o)");
+ println!(" `- \\`_`\"'-");
+}