pub struct Terminal {
pub screen: Screen,
pub encoding: Encoding,
pub music_on_csi_m: bool,
pub sixel_display_mode: bool,
pub syncterm: SyncTerm,
/* 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.
sixel_display_mode: boolCSI ? 80 h (DECSDM): sixel pictures go at the top left of the
screen and don’t scroll it.
syncterm: SyncTermSyncTERM’s file cache, pictures and pixel buffers.
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.
pub fn rip_mut(&mut self) -> Option<&mut Rip>
pub fn igs_mut(&mut self) -> Option<&mut Igs>
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])
Sourcepub fn poll(&mut self, now: Instant)
pub fn poll(&mut self, now: Instant)
Time passing: sound reports the BBS asked for, and reading again after a wait for a sound.
Sourcepub fn next_poll(&self) -> Option<Instant>
pub fn next_poll(&self) -> Option<Instant>
When Terminal::poll has something to do.
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