macro_rules! fuse_sgr {
( $sgr:expr, $( $sgr2:expr ),* $(,)? ) => { ... };
}
Expand description
Combine several SGR commands into a single new SGR command.
The new SGR command preserves the order of its component commands. Upon display, it emits only one ANSI escape sequence. Upon debug, it reveals the macro’s source arguments.
Since commands in the cmd
module generally implement
Clone
, Copy
, Debug
, PartialEq
, and Eq
,
fused SGR commands do so, too.
To fuse commands other than SGR commands, use fuse!
.