@@ -20,7 +20,7 @@ use core::os;
20
20
use terminfo:: * ;
21
21
use terminfo:: searcher:: open;
22
22
use terminfo:: parser:: compiled:: parse;
23
- use terminfo:: parm:: { expand, Number , Variables } ;
23
+ use terminfo:: parm:: { expand, Number } ;
24
24
25
25
// FIXME (#2807): Windows support.
26
26
@@ -84,7 +84,7 @@ impl Terminal {
84
84
pub fn fg ( & self , color : u8 ) {
85
85
if self . color_supported {
86
86
let s = expand ( * self . ti . strings . find_equiv ( & ( "setaf" ) ) . unwrap ( ) ,
87
- [ Number ( color as int ) ] , & mut Variables :: new ( ) ) ;
87
+ [ Number ( color as int ) ] , [ ] , [ ] ) ;
88
88
if s. is_ok ( ) {
89
89
self . out . write ( s. get ( ) ) ;
90
90
} else {
@@ -95,7 +95,7 @@ impl Terminal {
95
95
pub fn bg ( & self , color : u8 ) {
96
96
if self . color_supported {
97
97
let s = expand ( * self . ti . strings . find_equiv ( & ( "setab" ) ) . unwrap ( ) ,
98
- [ Number ( color as int ) ] , & mut Variables :: new ( ) ) ;
98
+ [ Number ( color as int ) ] , [ ] , [ ] ) ;
99
99
if s. is_ok ( ) {
100
100
self . out . write ( s. get ( ) ) ;
101
101
} else {
@@ -105,8 +105,7 @@ impl Terminal {
105
105
}
106
106
pub fn reset ( & self ) {
107
107
if self . color_supported {
108
- let mut vars = Variables :: new ( ) ;
109
- let s = expand ( * self . ti . strings . find_equiv ( & ( "op" ) ) . unwrap ( ) , [ ] , & mut vars) ;
108
+ let s = expand ( * self . ti . strings . find_equiv ( & ( "op" ) ) . unwrap ( ) , [ ] , [ ] , [ ] ) ;
110
109
if s. is_ok ( ) {
111
110
self . out . write ( s. get ( ) ) ;
112
111
} else {
0 commit comments