@@ -36,7 +36,6 @@ pub const STDERR_HANDLE: Handle = &HandleWrapper {
36
36
37
37
#[ cfg( not( test) ) ]
38
38
pub extern "win64" fn stdin_reset ( _: * mut SimpleTextInputProtocol , _: Boolean ) -> Status {
39
- crate :: log!( "EFI_STUB: stdin_reset\n " ) ;
40
39
Status :: UNSUPPORTED
41
40
}
42
41
@@ -50,8 +49,7 @@ pub extern "win64" fn stdin_read_key_stroke(
50
49
51
50
#[ cfg( not( test) ) ]
52
51
pub extern "win64" fn stdout_reset ( _: * mut SimpleTextOutputProtocol , _: Boolean ) -> Status {
53
- crate :: log!( "EFI_STUB: stdout_reset\n " ) ;
54
- Status :: UNSUPPORTED
52
+ Status :: SUCCESS
55
53
}
56
54
57
55
#[ cfg( not( test) ) ]
@@ -91,29 +89,38 @@ pub extern "win64" fn stdout_test_string(
91
89
#[ cfg( not( test) ) ]
92
90
pub extern "win64" fn stdout_query_mode (
93
91
_: * mut SimpleTextOutputProtocol ,
94
- _ : usize ,
95
- _ : * mut usize ,
96
- _ : * mut usize ,
92
+ mode : usize ,
93
+ columns : * mut usize ,
94
+ rows : * mut usize ,
97
95
) -> Status {
98
- crate :: log!( "EFI_STUB: stdout_query_mode\n " ) ;
99
- Status :: UNSUPPORTED
96
+ if mode == 0 {
97
+ unsafe {
98
+ * columns = 80 ;
99
+ * rows = 25 ;
100
+ }
101
+ Status :: SUCCESS
102
+ } else {
103
+ Status :: UNSUPPORTED
104
+ }
100
105
}
101
106
102
107
#[ cfg( not( test) ) ]
103
- pub extern "win64" fn stdout_set_mode ( _: * mut SimpleTextOutputProtocol , _: usize ) -> Status {
104
- crate :: log!( "EFI_STUB: stdout_set_mode\n " ) ;
105
- Status :: UNSUPPORTED
108
+ pub extern "win64" fn stdout_set_mode ( _: * mut SimpleTextOutputProtocol , mode : usize ) -> Status {
109
+ if mode == 0 {
110
+ Status :: SUCCESS
111
+ } else {
112
+ Status :: UNSUPPORTED
113
+ }
106
114
}
107
115
108
116
#[ cfg( not( test) ) ]
109
117
pub extern "win64" fn stdout_set_attribute ( _: * mut SimpleTextOutputProtocol , _: usize ) -> Status {
110
- crate :: log! ( "EFI_STUB: stdout_set_attribute \n " ) ;
111
- Status :: UNSUPPORTED
118
+ // Accept all attribute changes but ignore them
119
+ Status :: SUCCESS
112
120
}
113
121
114
122
#[ cfg( not( test) ) ]
115
123
pub extern "win64" fn stdout_clear_screen ( _: * mut SimpleTextOutputProtocol ) -> Status {
116
- crate :: log!( "EFI_STUB: stdout_clear_screen\n " ) ;
117
124
Status :: UNSUPPORTED
118
125
}
119
126
@@ -123,13 +130,11 @@ pub extern "win64" fn stdout_set_cursor_position(
123
130
_: usize ,
124
131
_: usize ,
125
132
) -> Status {
126
- crate :: log!( "EFI_STUB: stdout_set_cursor_position\n " ) ;
127
133
Status :: UNSUPPORTED
128
134
}
129
135
130
136
#[ cfg( not( test) ) ]
131
137
pub extern "win64" fn stdout_enable_cursor ( _: * mut SimpleTextOutputProtocol , _: Boolean ) -> Status {
132
- crate :: log!( "EFI_STUB: stdout_enable_cursor\n " ) ;
133
138
Status :: UNSUPPORTED
134
139
}
135
140
0 commit comments