made a default for vterm

uefi
Elfein Landers 2022-02-04 22:25:42 -08:00
parent 50fda8bbaa
commit f1113bdbd2
1 changed files with 4 additions and 2 deletions

View File

@ -115,8 +115,8 @@ pub struct Vterm {
pub cursor_visible: bool,
}
impl Vterm {
pub fn new() -> Self {
impl Default for Vterm {
fn default() -> Self {
Vterm {
characters: [[VtermCharacter {
character: ' ',
@ -142,7 +142,9 @@ impl Vterm {
},
}
}
}
impl Vterm {
/// Set the vterm cursor to the given position
pub fn set_cursor_position(&mut self, x: u32, y: u32) {
if x > VTERM_WIDTH {