Internals
Documentation for TermLayouts.jl
's internal types and functions.
TermLayouts.ColoredChar
— TypeCharacter struct that is used to parse ANSI strings.
TermLayouts.EditableString
— TypeString structure to represent any string that can be manipulated using ANSI escape codes.
TermLayouts.TermLayoutsState
— TypeA struct to describe the state of TermLayouts
TermLayouts.Wrapper
— TypeWorkaround for https://github.com/julia-vscode/julia-vscode/issues/1940
TermLayouts.carriage_return
— MethodEnter a carriage return in the EditableString.
TermLayouts.cursor_down
— MethodMove cursor down in the EditableString.
TermLayouts.cursor_horizontal_absolute
— MethodSet the absolute horizontal position of the cursor in the EditableString.
TermLayouts.cursor_left
— MethodMove cursor left in the EditableString.
TermLayouts.cursor_next_line
— MethodMove the cursor to the next line in the EditableString.
TermLayouts.cursor_position
— MethodSet the absolute position of the cursor in the EditableString.
TermLayouts.cursor_prev_line
— MethodMove the cursor to the previous line in the EditableString.
TermLayouts.cursor_right
— MethodMove cursor right in the EditableString.
TermLayouts.cursor_up
— MethodMove cursor up in the EditableString.
TermLayouts.enterchar
— MethodAdd one character to the EditableString.
TermLayouts.entercolor
— MethodBegin typing in a color into the EditableString.
TermLayouts.erase_in_display
— MethodDelete parts of the display in the EditableString.
TermLayouts.erase_in_line
— MethodErase parts of the line the cursor is in inside the EditableString.
TermLayouts.loadprefs
— MethodLoads TermLayouts preferences from the environment
TermLayouts.newline
— MethodInsert a newline in the EditableString. Equivalent to printing a \n
.
TermLayouts.parseANSI
— MethodParse ANSI text, and update the state of the EditableString.
TermLayouts.read_key
— FunctionRead input from keyboard and handle relevant ANSI codes
TermLayouts.run
— MethodActivate TermLayouts, and spawn a new REPL session
TermLayouts.scroll_down
— MethodScroll down by n
lines in the EditableString.
TermLayouts.scroll_up
— MethodScroll up by n
lines in the EditableString.
TermLayouts.simplifyANSI
— MethodSimplify an ANSI string into what ends up being displayed in the terminal.
TermLayouts.start_eval_backend
— MethodStart the backend that will evaluate our expressions
TermLayouts.to_string
— MethodGet the current state of the EditableString as a string.