removed unwanted newlines.

This commit is contained in:
puckoprutt 2026-07-13 10:19:01 +02:00
parent ac0227b7c6
commit 8f99bbdd6c

View File

@ -296,28 +296,26 @@ impl Terminal {
pub fn pp_debug(data: &[u8]) {
Self::write(b"[puckoprutt] <- ");
Self::write(data);
Self::write(b"\r\n");
}
/// prints a info message.
pub fn pp_info(data: &[u8]) {
Self::write(b"\x1B[1;34m[puckoprutt]\x1B[0m <- ");
Self::write(data);
Self::write(b"\r\n");
}
/// prints a warning message.
pub fn pp_warning(data: &[u8]) {
Self::write(b"\x1B[43m\x1B[4;37m[puckoprutt]\x1B[0m <- \x1B[4;33m");
Self::write(data);
Self::write(b"\r\n\x1B[0m");
Self::write(b"\x1B[0m");
}
/// prints a danger/error message.
pub fn pp_danger(data: &[u8]) {
Self::write(b"\x1B[41m\x1B[1;37m[puckoprutt]\x1B[0m !!DANGER!! \x1B[1;31m");
Self::write(data);
Self::write(b"\r\n\x1B[0m");
Self::write(b"\x1B[0m");
}
/// clears the screen with a simple ANSI sequence.