made changes to some stuff
Rust / build (push) Has been cancelled

This commit is contained in:
2025-02-18 01:50:21 +00:00
parent 2e66cf646c
commit a8b8d61112
4 changed files with 8 additions and 6 deletions
Generated
-1
View File
@@ -2,6 +2,5 @@
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" /> <mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$/CrystalPy" vcs="Git" />
</component> </component>
</project> </project>
+3 -1
View File
@@ -4,13 +4,15 @@ use alloc::{string::String};
lazy_static! { lazy_static! {
pub static ref OS: Mutex<SysInfo> = Mutex::new(SysInfo { pub static ref OS: Mutex<SysInfo> = Mutex::new(SysInfo {
os: String::from("CrystalOS Alpha"), os: String::from("Zxq5-OS"),
version: String::from("0.2.2"), version: String::from("0.2.2"),
url: String::from("https://git.zxq5.dev/OsDev/Zxq5-OS")
}); });
} }
pub struct SysInfo { pub struct SysInfo {
pub os: String, pub os: String,
pub version: String, pub version: String,
pub url: String,
} }
+1 -1
View File
@@ -273,7 +273,7 @@ impl CommandHandler {
// TODO: coloured prompt // TODO: coloured prompt
pub fn prompt(&self) { pub fn prompt(&self) {
write(format_args!("\n Crystal> "), (Color::Cyan, Color::Black)); write(format_args!("\n <Zxq5/> "), (Color::Cyan, Color::Black));
} }
} }
+4 -3
View File
@@ -59,6 +59,7 @@ impl Application for CrystalFetch {
let os = OS.lock().os.clone(); let os = OS.lock().os.clone();
let version = OS.lock().version.clone(); let version = OS.lock().version.clone();
let git_url = OS.lock().url.clone();
// clear screen // clear screen
Display::clear(); Display::clear();
@@ -67,9 +68,9 @@ impl Application for CrystalFetch {
let info_string = format!( let info_string = format!(
" [ OS » {} " [ OS » {}
[ BUILD » {} [ BUILD » {}
[ Shell » CrySH [ Shell » ZxqSH
[ Github » https://github.com/FantasyPvP/CrystalOS [ Git » {}
[ Author » ZXQ5", os, version); [ Author » ZXQ5", os, version, git_url);
// write to output // write to output
let spacer = "\n".repeat(25 - logo_string.lines().count() - 4 - info_string.lines().count()); let spacer = "\n".repeat(25 - logo_string.lines().count() - 4 - info_string.lines().count());