Generated
-1
@@ -2,6 +2,5 @@
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/CrystalPy" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -4,13 +4,15 @@ use alloc::{string::String};
|
||||
|
||||
lazy_static! {
|
||||
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"),
|
||||
url: String::from("https://git.zxq5.dev/OsDev/Zxq5-OS")
|
||||
});
|
||||
}
|
||||
|
||||
pub struct SysInfo {
|
||||
pub os: String,
|
||||
pub version: String,
|
||||
pub url: String,
|
||||
}
|
||||
|
||||
|
||||
@@ -273,7 +273,7 @@ impl CommandHandler {
|
||||
// TODO: coloured prompt
|
||||
|
||||
pub fn prompt(&self) {
|
||||
write(format_args!("\n Crystal> "), (Color::Cyan, Color::Black));
|
||||
write(format_args!("\n <Zxq5/> "), (Color::Cyan, Color::Black));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +59,7 @@ impl Application for CrystalFetch {
|
||||
|
||||
let os = OS.lock().os.clone();
|
||||
let version = OS.lock().version.clone();
|
||||
let git_url = OS.lock().url.clone();
|
||||
|
||||
// clear screen
|
||||
Display::clear();
|
||||
@@ -67,9 +68,9 @@ impl Application for CrystalFetch {
|
||||
let info_string = format!(
|
||||
" [ OS » {}
|
||||
[ BUILD » {}
|
||||
[ Shell » CrySH
|
||||
[ Github » https://github.com/FantasyPvP/CrystalOS
|
||||
[ Author » ZXQ5", os, version);
|
||||
[ Shell » ZxqSH
|
||||
[ Git » {}
|
||||
[ Author » ZXQ5", os, version, git_url);
|
||||
|
||||
// write to output
|
||||
let spacer = "\n".repeat(25 - logo_string.lines().count() - 4 - info_string.lines().count());
|
||||
|
||||
Reference in New Issue
Block a user