[][src]Module bear_lib_terminal::terminal::config

Module containing BLT configuration options.

Examples

The following from the official documentation:

window: title='foobar', size=80x25; input.filter='keyboard'

Is equivalent to

use bear_lib_terminal::terminal::{self, config};
use bear_lib_terminal::geometry::Size;
terminal::set(config::Window::empty().title("foobar".to_string()).size(Size::new(80, 25)));
terminal::set(vec![config::InputFilter::Group{group: config::InputFilterGroup::Keyboard, both: false}]);

Modules

font

Module containing font changing tools.

Structs

Input

The input configuration section repr.

Log

The log configuration section repr.

Output

The output configuration section repr.

Terminal

The terminal configuration section repr.

Window

The window configuration section repr.

Enums

Cellsize

Possible cell size, Auto will make the size be selected based on the font.

InputFilter

One input filter element.

InputFilterEvent

As enumerated here

InputFilterGroup

Filter event group, from here.

LogLevel

Logging levels, as specified here.

LogMode

Log writing mode.

Traits

ConfigPart

Trait for generating BLT configuration strings.

Functions

escape_config_string

Escapes 's and wraps the strings with 's, as per this.