Generated
-1
@@ -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>
|
||||||
@@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user