Base Shell Class (xonsh.base_shell
)¶
The base class for xonsh shell
-
class
xonsh.base_shell.
BaseShell
(execer, ctx, **kwargs)[source]¶ The xonsh shell.
-
compile
(src)[source]¶ Compiles source code and returns the (possibly modified) source and a valid code object.
-
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.
-
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.
-
prompt
¶ Obtains the current prompt string.
-
styler
¶
-
-
class
xonsh.base_shell.
Tee
(buffer=None, encoding=None, errors=None, newline=None, line_buffering=False, write_through=False)[source]¶ Class that merges tee’d stdout and stderr into a single strea,.
This represents what a user would actually see on the command line. This class as the same interface as io.TextIOWrapper, except that the buffer is optional.
-
line_buffering
¶
-