File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,17 +70,17 @@ pub impl Terminal {
70
70
71
71
let mut inf = ti. get ( ) ;
72
72
let cs = * inf. numbers . find_or_insert ( ~"colors", 0 ) >= 16 && inf. strings . find ( & ~"setaf") . is_some ( )
73
- && inf. strings . find ( & ~ "setab") . is_some ( ) ;
73
+ && inf. strings . find_equiv ( & ( "setab" ) ) . is_some ( ) ;
74
74
75
75
return Ok ( Terminal { out : out, ti : inf, color_supported : cs} ) ;
76
76
}
77
77
fn fg ( & self , color : u8 ) {
78
- self . out . write ( expand ( * self . ti . strings . find ( & ~ "setaf") . unwrap ( ) , [ Number ( color as int ) ] , [ ] , [ ] ) ) ;
78
+ self . out . write ( expand ( * self . ti . strings . find_equiv ( & ( "setaf" ) ) . unwrap ( ) , [ Number ( color as int ) ] , [ ] , [ ] ) ) ;
79
79
}
80
80
fn bg ( & self , color : u8 ) {
81
- self . out . write ( expand ( * self . ti . strings . find ( & ~ "setab") . unwrap ( ) , [ Number ( color as int ) ] , [ ] , [ ] ) ) ;
81
+ self . out . write ( expand ( * self . ti . strings . find_equiv ( & ( "setab" ) ) . unwrap ( ) , [ Number ( color as int ) ] , [ ] , [ ] ) ) ;
82
82
}
83
83
fn reset ( & self ) {
84
- self . out . write ( expand ( * self . ti . strings . find ( & ~ "op") . unwrap ( ) , [ ] , [ ] , [ ] ) ) ;
84
+ self . out . write ( expand ( * self . ti . strings . find_equiv ( & ( "op" ) ) . unwrap ( ) , [ ] , [ ] , [ ] ) ) ;
85
85
}
86
86
}
You can’t perform that action at this time.
0 commit comments