pub struct TerminalBuilder { /* fields omitted */ }
A builder for the Terminal
. Includes some settings that can be set before building.
See terminal mod for examples and more detailed documentation.
Creates a new terminal builder with default settings.
Sets the title for the Terminal
.
Sets the dimensions the Terminal
is to be opened with.
Sets the clear color of the terminal.
Changes the font that the terminal uses.
Changes the visibility that the terminal will be opened with. If headless, visibility will not matter.
Changes the visibility that the terminal will be opened with
Changes whether the aspect ratio should be retrieved from TextBuffer instead of the original resolution of the screen.
If set to false, the aspect ratio used to make black bars for the screen will be fetched from the original resolution of the screen;
This will cause the fonts to strech a bit though.
If set to true (default), the aspect ratio will be fetched from the TextBuffer, causing almost any resolution
to have black bars to make up for the missing spaces.
Enable/Disable vsync. Enabled by default.
Builds the actual terminal and opens the window
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static