small software-rendered rust tty
Diffstat (limited to 'src/term.rs')
| -rw-r--r-- | src/term.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/term.rs b/src/term.rs index e2831f0..87192bd 100644 --- a/src/term.rs +++ b/src/term.rs @@ -75,8 +75,9 @@ impl Terminal { x.params .iter() .map(|x| match x { - ctlfun::Parameter::Default => 0, - ctlfun::Parameter::Value(x) => *x, + ctlfun::Parameter::Default => + "default".to_string(), + ctlfun::Parameter::Value(x) => x.to_string(), }) .collect::<Vec<_>>(), String::from_utf8_lossy(&x.bytes), |