@ -26,7 +26,7 @@ fn main() {
let wide_mode = gfx.top_screen.borrow().get_wide_mode();
gfx.top_screen.borrow_mut().set_wide_mode(!wide_mode);
_console = Console::init(gfx.top_screen.borrow_mut());
println!("Press A to enable/disable wide screen mode.");
}
@ -41,4 +41,4 @@ fn main() {
//Wait for VBlank
gfx.wait_for_vblank();
@ -23,10 +23,7 @@ fn main() {
let server = TcpListener::bind("0.0.0.0:80").unwrap();
server.set_nonblocking(true).unwrap();
println!(
"Point your browser to http://{}/\n",
soc.host_address()
);
println!("Point your browser to http://{}/\n", soc.host_address());
while apt.main_loop() {
@ -19,10 +19,7 @@ impl<'screen> Console<'screen> {
unsafe { consoleInit(screen.as_raw(), context.as_mut()) };
Console {
context,
screen,
Console { context, screen }
/// Select this console as the current target for stdout