@@ -57,7 +57,7 @@ pub struct Terminal {
5757}
5858
5959#[ cfg( not( target_os = "win32" ) ) ]
60- pub impl Terminal {
60+ impl Terminal {
6161 pub fn new ( out : @io:: Writer ) -> Result < Terminal , ~str > {
6262 let term = os:: getenv ( "TERM" ) ;
6363 if term. is_none ( ) {
@@ -81,7 +81,7 @@ pub impl Terminal {
8181
8282 return Ok ( Terminal { out : out, ti : inf, color_supported : cs} ) ;
8383 }
84- fn fg ( & self , color : u8 ) {
84+ pub fn fg ( & self , color : u8 ) {
8585 if self . color_supported {
8686 let s = expand ( * self . ti . strings . find_equiv ( & ( "setaf" ) ) . unwrap ( ) ,
8787 [ Number ( color as int ) ] , [ ] , [ ] ) ;
@@ -92,7 +92,7 @@ pub impl Terminal {
9292 }
9393 }
9494 }
95- fn bg ( & self , color : u8 ) {
95+ pub fn bg ( & self , color : u8 ) {
9696 if self . color_supported {
9797 let s = expand ( * self . ti . strings . find_equiv ( & ( "setab" ) ) . unwrap ( ) ,
9898 [ Number ( color as int ) ] , [ ] , [ ] ) ;
@@ -103,7 +103,7 @@ pub impl Terminal {
103103 }
104104 }
105105 }
106- fn reset ( & self ) {
106+ pub fn reset ( & self ) {
107107 if self . color_supported {
108108 let s = expand ( * self . ti . strings . find_equiv ( & ( "op" ) ) . unwrap ( ) , [ ] , [ ] , [ ] ) ;
109109 if s. is_ok ( ) {
@@ -116,17 +116,17 @@ pub impl Terminal {
116116}
117117
118118#[ cfg( target_os = "win32" ) ]
119- pub impl Terminal {
119+ impl Terminal {
120120 pub fn new ( out : @io:: Writer ) -> Result < Terminal , ~str > {
121121 return Ok ( Terminal { out : out, color_supported : false } ) ;
122122 }
123123
124- fn fg ( & self , color : u8 ) {
124+ pub fn fg ( & self , color : u8 ) {
125125 }
126126
127- fn bg ( & self , color : u8 ) {
127+ pub fn bg ( & self , color : u8 ) {
128128 }
129129
130- fn reset ( & self ) {
130+ pub fn reset ( & self ) {
131131 }
132132}
0 commit comments