pub struct Options {
pub prompt: Option<String>,
pub element: TargetElement,
pub disable_clipboard_handling: bool,
pub font_family: Option<String>,
pub font_size: Option<f64>,
pub scrollback: Option<u32>,
}
Expand description
Terminal options
Fields§
§prompt: Option<String>
Default prompt (string such as "$ "
)
element: TargetElement
Target DOM element (when running under WASM)
disable_clipboard_handling: bool
Disable internal clipboard handling (useful when using clipboard API calls externally)
font_family: Option<String>
Default font family (xterm.js only)
font_size: Option<f64>
Default font size (xterm.js only)
scrollback: Option<u32>
Default scrollback limit (xterm.js only)
Implementations§
Source§impl Options
impl Options
Sourcepub fn with_prompt(self, prompt: &str) -> Self
pub fn with_prompt(self, prompt: &str) -> Self
Set prompt string
Sourcepub fn with_scrollback(self, scrollback: u32) -> Self
pub fn with_scrollback(self, scrollback: u32) -> Self
Set scrollback limit
Sourcepub fn with_element(self, element: TargetElement) -> Self
pub fn with_element(self, element: TargetElement) -> Self
Set target element
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl !Send for Options
impl !Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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