pub struct Terminal {
pub screen: Screen,
pub encoding: Encoding,
pub music_on_csi_m: bool,
/* private fields */
}Fields§
§screen: Screen§encoding: Encoding§music_on_csi_m: boolTreat ESC [ M with no parameter as the start of ANSI music, as
many BBS doors expect, instead of “delete one line”. ESC [ N and
ESC [ | always start music.
Implementations§
Source§impl Terminal
impl Terminal
pub fn new(cols: usize, rows: usize, scrollback: usize) -> Self
Sourcepub fn start_emulation(&mut self)
pub fn start_emulation(&mut self)
Set up the screen for the encoding: a C64 or Atari system gets that machine’s colors and font.
Sourcepub fn take_replies(&mut self) -> Vec<u8> ⓘ
pub fn take_replies(&mut self) -> Vec<u8> ⓘ
Bytes the terminal wants sent to the remote (e.g. CPR replies).
pub fn take_events(&mut self) -> Vec<TermEvent>
pub fn feed(&mut self, data: &[u8])
Auto Trait Implementations§
impl Freeze for Terminal
impl RefUnwindSafe for Terminal
impl Send for Terminal
impl Sync for Terminal
impl Unpin for Terminal
impl UnsafeUnpin for Terminal
impl UnwindSafe for Terminal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more