MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / main

Function main

user/src/bin/gui_uart.rs:111–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109const CR: u8 = 0x0du8;
110#[no_mangle]
111pub fn main() -> i32 {
112 // let fb_ptr = framebuffer() as *mut u8;
113 let mut board = DrawingBoard::new();
114 let _ = board.disp.clear(Rgb888::BLACK).unwrap();
115 for i in 0..20 {
116 let c=getchar();
117 if c == LF || c == CR {
118 break;
119 }
120 board.latest_pos.x += i;
121 board.latest_pos.y += i;
122 board.paint();
123 }
124 0
125}

Callers

nothing calls this directly

Calls 3

getcharFunction · 0.85
clearMethod · 0.80
paintMethod · 0.45

Tested by

no test coverage detected