MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / new_line

Method new_line

kernel/src/vga_buffer.rs:79–88  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

77 }
78
79 fn new_line(&mut self) {
80 for row in 1..BUFFER_HEIGHT {
81 for col in 0..BUFFER_WIDTH {
82 let character = self.buffer.chars[row][col].read();
83 self.buffer.chars[row - 1][col].write(character);
84 }
85 }
86 self.clear_row(BUFFER_HEIGHT - 1);
87 self.column_position = 0;
88 }
89
90 fn clear_row(&mut self, row: usize) {
91 let blank = ScreenChar {

Callers 1

write_byteMethod · 0.80

Calls 3

clear_rowMethod · 0.80
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected