summaryrefslogtreecommitdiffstats
path: root/src/shell.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.rs')
-rw-r--r--src/shell.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/shell.rs b/src/shell.rs
index 2f8b8f7..8e4cb62 100644
--- a/src/shell.rs
+++ b/src/shell.rs
@@ -7,8 +7,8 @@ const LINE_BUF_SIZE: usize = 256;
7 7
8/// Run the shell forever. 8/// Run the shell forever.
9pub fn run() -> ! { 9pub fn run() -> ! {
10 gop_println!("raisernics v0.2 — type 'help' for commands"); 10 gop_println!("raisernics v{} — type 'help' for commands", env!("CARGO_PKG_VERSION"));
11 serial_println!("========== raisernics v0.2 =========="); 11 serial_println!("========== raisernics v{} ==========", env!("CARGO_PKG_VERSION"));
12 12
13 loop { 13 loop {
14 // Print prompt 14 // Print prompt
@@ -125,7 +125,8 @@ fn cmd_clear() {
125 125
126fn cmd_info() { 126fn cmd_info() {
127 // Test that the global allocator works: build a String on the heap 127 // Test that the global allocator works: build a String on the heap
128 let mut s = alloc::string::String::from("raisernics v0.2"); 128 let mut s = alloc::string::String::from("raisernics v");
129 s.push_str(env!("CARGO_PKG_VERSION"));
129 s.push_str(" — RNG custom kernel"); 130 s.push_str(" — RNG custom kernel");
130 gop_println!("{}", s); 131 gop_println!("{}", s);
131 gop_println!("arch: x86_64, freestanding, no userspace"); 132 gop_println!("arch: x86_64, freestanding, no userspace");