pub fn exit() -> ! {
    if g_get_altscreen() {
        p!("{}", termion::screen::ToMainScreen);
    }

    process::exit(0)
}
// Centralized function to exit the program
// Switches back to main screen before exiting
Centralized function to exit the program
Switches back to main screen before exiting
Centralized function to exit the program Switches back to main screen before exiting
pub fn exit() -> ! {
    if g_get_altscreen() {
        p!("{}", termion::screen::ToMainScreen);
    }
    process::exit(0)
}
pub fn exit ( ) -> ! { if g_get_altscreen ( ) { p ! ( " " termion screen ToMainScreen ) ; } process :: exit ( 0 ) }
Centralized function to exit the program
Switches back to main screen before exiting
Centralized function to exit the program Switches back to main screen before exiting