Function zellij_server::os_input_output::spawn_terminal [−][src]
pub fn spawn_terminal(
terminal_action: Option<TerminalAction>,
orig_termios: Termios
) -> (RawFd, Pid)
Expand description
If a [TerminalAction::OpenFile(file)
] is given, the text editor specified by environment variable EDITOR
(or VISUAL
, if EDITOR
is not set) will be started in the new terminal, with the given
file open.
If [TerminalAction::RunCommand(RunCommand)
] is given, the command will be started
in the new terminal.
If None is given, the shell specified by environment variable SHELL
will
be started in the new terminal.
Panics
This function will panic if both the EDITOR
and VISUAL
environment variables are not
set.