Skip to main content

at_prompt

Function at_prompt 

Source
pub(super) fn at_prompt(text: &str, family: ShellFamily) -> bool
Expand description

Whether the last non-empty line looks like the shell’s prompt: cmd’s C:\path>, PowerShell’s PS C:\path>, or a Unix prompt ending in $ # % > ❯.