[][src]Crate iterm2

iTerm2

A Rust crate to allow easy access to the various escape codes in iTerm2.

Usage

extern crate iterm2;
use iterm2::*;

clear_scrollback().unwrap();
anchor("https://google.com", "google").unwrap();
attention(AttentionType::Firework).unwrap();

Structs

Annotation

A builder for terminal annotations

Enums

AttentionType

The possible types of attention actions

CursorShape

The possible cusor shpaes

Functions

anchor

Display a clickable link with custom display text

attention

Trigger a dock bounce notification or fireworks

clear_scrollback

Clear the terminals scroll history

cursor_guide

Set the visibility of the cursor guide

download_file

Download a file. Accepts raw file contents and option arguments

get_cell_size

Gets the size of a cell in points as a floating point number

get_terminal_variable

Gets the value of a session variable

pop_current_touchbar_labels

Pop the current key labels

pop_touchbar_label

Pop a specific touchbar key label by name

push_current_touchbar_labels

Push the current key labels

push_touchbar_label

Push a specific touchbar key label by name

restore_tab_colors

Restore the tab colors to defaults

send_notification

Send a system wide Growl notification

set_background_image

Set the terminal background to the image at a path

set_clipboard

Sets the clipboard

set_color_palette

Sets the terminal color palette

set_current_dir

Sets the terminals current working directory

set_cursor_shape

Set the shape of the cursor

set_mark

Set a mark at the current line

set_tab_colors

Sets the tab colors to a custom rgb value

set_touchbar_key_label

Configures touchbar key lables

set_unicode_version

Sets the terminals unicode version

steal_focus

Attempt to make iTerm the focused application

Type Definitions

TerminalError