pub struct Xterm {
pub element: Element,
/* private fields */
}
Expand description
§Xterm
Wrapper around XtermJS - https://github.com/xtermjs/xterm.js
TODO enhance API to match https://github.com/xtermjs/xterm.js/blob/4.14.1/typings/xterm.d.ts
Fields§
§element: Element
Implementations§
Source§impl Xterm
impl Xterm
pub fn try_new() -> Result<Self>
pub fn try_new_with_options(options: &Options) -> Result<Self>
pub fn try_new_with_element(parent: &Element, options: &Options) -> Result<Self>
pub fn xterm(&self) -> RefMut<'_, Option<XtermImpl>>
pub fn update_theme(&self) -> Result<()>
pub fn set_theme(&self, theme: Theme) -> Result<()>
pub async fn init(self: &Arc<Self>, terminal: &Arc<Terminal>) -> Result<()>
pub fn set_option(&self, name: &str, option: JsValue) -> Result<()>
pub fn get_option(&self, name: &str) -> Result<JsValue>
pub fn refresh(&self, start: u32, stop: u32)
pub fn paste(&self, text: Option<String>) -> Result<()>
pub fn terminal(&self) -> Arc<Terminal>
pub async fn run(self: &Arc<Self>) -> Result<()>
pub async fn intake(self: &Arc<Self>, terminate: &Arc<AtomicBool>) -> Result<()>
pub fn exit(&self)
pub fn write<S>(&self, s: S)where
S: ToString,
pub fn measure(&self) -> Result<()>
pub fn resize(&self) -> Result<()>
pub fn get_font_size(&self) -> Result<Option<f64>>
pub fn set_font_size(&self, font_size: f64) -> Result<()>
pub fn cols(&self) -> Option<usize>
pub fn rows(&self) -> Option<usize>
pub fn increase_font_size(&self) -> Result<Option<f64>>
pub fn decrease_font_size(&self) -> Result<Option<f64>>
pub fn clipboard_copy(&self) -> Result<()>
pub fn clipboard_paste(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Xterm
impl !RefUnwindSafe for Xterm
impl Unpin for Xterm
impl !UnwindSafe for Xterm
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