diff --git a/src/main.rs b/src/main.rs index 7e8f974..41dab8e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,7 @@ use crate::{ return_to_main::return_to_main, utilities::{ cursor_to_origin::cursor_to_origin, - format_md::{inline, paragraph}, + format_md::paragraph, truncate_note::truncate_note, }, }; @@ -57,16 +57,16 @@ fn display_about() -> Result<(), Box> { println!("{}", paragraph(&skin, &format!("# About Notabena"))); println!( "{}", - inline( + paragraph( &skin, - "**Notabena** is a FOSS note-taking CLI tool, written in Rust.\n" + "**Notabena** is a FOSS note-taking CLI tool, written in Rust.\nDonations are always a great way to help us keeping the project alive. It can be done here: https://paypal.me/Notabena (ctrl+click to follow link)." ) ); println!( "version: v{}, licensed under: GPL v3", env!("CARGO_PKG_VERSION") ); - println!("COPYRIGHT (c) 2023-PRESENT NOTABENA ORGANISATION\nPROJECT LEADS @ThatFrogDev, @MrSerge01, GITHUB CONTRIBUTORS\n"); + println!("COPYRIGHT (c) 2023-PRESENT NOTABENA ORGANISATION\nPROJECT LEADS @ThatFrogDev, @MrSerge01, GITHUB CONTRIBUTORS\n\n(scroll up if you can't read everything)"); Ok(()) } diff --git a/src/utilities/cursor_to_origin.rs b/src/utilities/cursor_to_origin.rs index 2508638..3b7e74f 100644 --- a/src/utilities/cursor_to_origin.rs +++ b/src/utilities/cursor_to_origin.rs @@ -1,11 +1,13 @@ use std::process::Command; +#[cfg(target_os = "windows")] pub fn cursor_to_origin() -> Result<(), Box> { - if cfg!(target_os = "windows") { - Command::new("cmd").args(["/c", "cls"]).spawn()?.wait()?; - Ok(()) - } else { - Command::new("clear").spawn()?.wait()?; - Ok(()) - } + Command::new("cmd").args(["/c", "cls"]).spawn()?.wait()?; + Ok(()) +} + +#[cfg(not(target_os = "windows"))] +pub fn cursor_to_origin() -> Result<(), Box> { + Command::new("clear").spawn()?.wait()?; + Ok(()) }