Base Shell Class (xonsh.base_shell)
The base class for xonsh shell
-
class
xonsh.base_shell.BaseShell(execer, ctx, **kwargs)[source]
The xonsh shell.
-
color_style()[source]
Returns the current color map.
-
color_style_names()[source]
Returns an iterable of all available style names.
-
default(line)[source]
Implements code execution.
-
emptyline()[source]
Called when an empty line has been entered.
-
format_color(string, **kwargs)[source]
Formats the colors in a string. This base implmentation does not
actually do any coloring, but just returns the string directly.
-
precmd(line)[source]
Called just before execution of line.
-
print_color(string, **kwargs)[source]
Prints a string in color. This base implmentation does not actually
do any coloring, but just prints the string directly.
-
push(line)[source]
Pushes a line onto the buffer and compiles the code in a way that
enables multiline input.
-
reset_buffer()[source]
Resets the line buffer.
-
settitle()[source]
Sets terminal title.
-
singleline(**kwargs)[source]
Reads a single line of input from the shell.
-
prompt
Obtains the current prompt string.
-
class
xonsh.base_shell.Tee(*args, **kwargs)[source]
Class that merges tee’d stdout and stderr into a single buffer.
This represents what a user would actually see on the command line.
-
close()[source]
Closes the buffer as well as the stdout and stderr tees.