removed unwanted newlines.
This commit is contained in:
parent
ac0227b7c6
commit
8f99bbdd6c
@ -296,28 +296,26 @@ impl Terminal {
|
|||||||
pub fn pp_debug(data: &[u8]) {
|
pub fn pp_debug(data: &[u8]) {
|
||||||
Self::write(b"[puckoprutt] <- ");
|
Self::write(b"[puckoprutt] <- ");
|
||||||
Self::write(data);
|
Self::write(data);
|
||||||
Self::write(b"\r\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// prints a info message.
|
/// prints a info message.
|
||||||
pub fn pp_info(data: &[u8]) {
|
pub fn pp_info(data: &[u8]) {
|
||||||
Self::write(b"\x1B[1;34m[puckoprutt]\x1B[0m <- ");
|
Self::write(b"\x1B[1;34m[puckoprutt]\x1B[0m <- ");
|
||||||
Self::write(data);
|
Self::write(data);
|
||||||
Self::write(b"\r\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// prints a warning message.
|
/// prints a warning message.
|
||||||
pub fn pp_warning(data: &[u8]) {
|
pub fn pp_warning(data: &[u8]) {
|
||||||
Self::write(b"\x1B[43m\x1B[4;37m[puckoprutt]\x1B[0m <- \x1B[4;33m");
|
Self::write(b"\x1B[43m\x1B[4;37m[puckoprutt]\x1B[0m <- \x1B[4;33m");
|
||||||
Self::write(data);
|
Self::write(data);
|
||||||
Self::write(b"\r\n\x1B[0m");
|
Self::write(b"\x1B[0m");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// prints a danger/error message.
|
/// prints a danger/error message.
|
||||||
pub fn pp_danger(data: &[u8]) {
|
pub fn pp_danger(data: &[u8]) {
|
||||||
Self::write(b"\x1B[41m\x1B[1;37m[puckoprutt]\x1B[0m !!DANGER!! \x1B[1;31m");
|
Self::write(b"\x1B[41m\x1B[1;37m[puckoprutt]\x1B[0m !!DANGER!! \x1B[1;31m");
|
||||||
Self::write(data);
|
Self::write(data);
|
||||||
Self::write(b"\r\n\x1B[0m");
|
Self::write(b"\x1B[0m");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// clears the screen with a simple ANSI sequence.
|
/// clears the screen with a simple ANSI sequence.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user