comparison old/framebuffer/cp_vt.c @ 982:b29547a5b85b

avoid WAIT in virtual console
author root@henri.cr.ie.u-ryukyu.ac.jp
date Fri, 01 Oct 2010 00:26:02 +0900
parents e0c254a9a865
children
comparison
equal deleted inserted replaced
981:a193a851b5e3 982:b29547a5b85b
163 const int activate_tty_error = ioctl( vt->tty, VT_ACTIVATE, vt->tty_ndx ); 163 const int activate_tty_error = ioctl( vt->tty, VT_ACTIVATE, vt->tty_ndx );
164 const char* activate_tty_error_str = "Could not activate tty"; 164 const char* activate_tty_error_str = "Could not activate tty";
165 165
166 error_str = select_error_str( error, error_str, activate_tty_error, activate_tty_error_str ); 166 error_str = select_error_str( error, error_str, activate_tty_error, activate_tty_error_str );
167 error = error | activate_tty_error; 167 error = error | activate_tty_error;
168 168 #if 0
169 const int waitactive_tty_error = ioctl( vt->tty, VT_WAITACTIVE, vt->tty_ndx ); 169 const int waitactive_tty_error = ioctl( vt->tty, VT_WAITACTIVE, vt->tty_ndx );
170 const char* waitactive_tty_error_str = "Could not switch to tty"; 170 const char* waitactive_tty_error_str = "Could not switch to tty";
171 171
172 error_str = select_error_str( error, error_str, waitactive_tty_error, waitactive_tty_error_str ); 172 error_str = select_error_str( error, error_str, waitactive_tty_error, waitactive_tty_error_str );
173 error = error | waitactive_tty_error; 173 error = error | waitactive_tty_error;
174 #endif
174 175
175 // From: http://opensolaris.org/os/project/vconsole/vt.7i.txt 176 // From: http://opensolaris.org/os/project/vconsole/vt.7i.txt
176 // (Close enough to Linux and a pretty good source of documentation.) 177 // (Close enough to Linux and a pretty good source of documentation.)
177 // 178 //
178 // "KDSETMODE 179 // "KDSETMODE