@ -14,13 +14,24 @@ impl Prompt {
}
pub fn print(&self) -> Result<()> {
unsafe {
match std::env::current_dir() {
Ok(d) => unsafe {
let text = d.to_str().unwrap().to_owned() + " " + &self.s;
Error::check(Console::WriteConsoleA(
stdout_handle()?,
text.as_bytes(),
None,
))?;
Err(_) => unsafe {
self.s.as_bytes(),
},
Ok(())