pub(crate) fn execute_fmt(f: &mut impl fmt::Write, command: impl Command) -> fmt::Result {
    #[cfg(windows)]
    if !command.is_ansi_code_supported() {
        return command.execute_winapi().map_err(|_| fmt::Error);
    }

    command.write_ansi(f)
}
/// Executes the ANSI representation of a command, using the given `fmt::Write`.
Executes the ANSI representation of a command, using the given `fmt::Write`.
Executes the ANSI representation of a command using the given ` fmt :: Write ` .
pub(crate) fn execute_fmt(f: &mut impl fmt::Write, command: impl Command) -> fmt::Result {
    #[cfg(windows)]
    if !command.is_ansi_code_supported() {
        return command.execute_winapi().map_err(|_| fmt::Error);
    }
    command.write_ansi(f)
}
pub ( crate ) fn execute_fmt ( f : & mut impl fmt :: Write , command : impl Command ) -> fmt :: Result { # [ cfg ( windows ) ] if ! command . is_ansi_code_supported ( ) { return command . execute_winapi ( ) . map_err ( | _ | fmt :: Error ) ; } command . write_ansi ( f ) }
Executes the ANSI representation of a command, using the given `fmt::Write`.
Executes the ANSI representation of a command using the given ` fmt :: Write ` .
f
&mut impl fmt::Write
command
impl Command
f
&mut impl fmt::Write
command
impl Command