made a default for vterm
This commit is contained in:
parent
4dc0b92778
commit
2780afd1e1
|
@ -115,8 +115,8 @@ pub struct Vterm {
|
||||||
pub cursor_visible: bool,
|
pub cursor_visible: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Vterm {
|
impl Default for Vterm {
|
||||||
pub fn new() -> Self {
|
fn default() -> Self {
|
||||||
Vterm {
|
Vterm {
|
||||||
characters: [[VtermCharacter {
|
characters: [[VtermCharacter {
|
||||||
character: ' ',
|
character: ' ',
|
||||||
|
@ -142,7 +142,9 @@ impl Vterm {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Vterm {
|
||||||
/// Set the vterm cursor to the given position
|
/// Set the vterm cursor to the given position
|
||||||
pub fn set_cursor_position(&mut self, x: u32, y: u32) {
|
pub fn set_cursor_position(&mut self, x: u32, y: u32) {
|
||||||
if x > VTERM_WIDTH {
|
if x > VTERM_WIDTH {
|
||||||
|
|
Loading…
Reference in a new issue