Current section

Files

Jump to
termite include prim_tty_26_0.hrl
Raw

include/prim_tty_26_0.hrl

-record(state, {tty,
reader,
writer,
options,
unicode,
lines_before = [], %% All lines before the current line in reverse order
lines_after = [], %% All lines after the current line.
buffer_before = [], %% Current line before cursor in reverse
buffer_after = [], %% Current line after cursor not in reverse
buffer_expand, %% Characters in expand buffer
cols = 80,
rows = 24,
xn = false,
clear = <<"\e[H\e[2J">>,
up = <<"\e[A">>,
down = <<"\n">>,
left = <<"\b">>,
right = <<"\e[C">>,
%% Tab to next 8 column windows is "\e[1I", for unix "ta" termcap
tab = <<"\e[1I">>,
delete_after_cursor = <<"\e[J">>,
insert = false,
delete = false,
position = <<"\e[6n">>, %% "u7" on my Linux
position_reply = <<"\e\\[([0-9]+);([0-9]+)R">>,
ansi_regexp
}).