Skip to main content

terminal_command

Function terminal_command 

Source
pub fn terminal_command(program: impl AsRef<OsStr>) -> Command
Expand description

A Command for a child that must inherit the user’s terminal.

The editor lev run opens is the only one: it draws in the terminal it inherits, and starting vim without a console leaves it nowhere to draw and nothing to read from. Named rather than reached for with a bare Command::new so the exception is a decision in the source instead of an omission, and so the lint has something to point at.