We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e62bc9d commit 4515a06Copy full SHA for 4515a06
src/aero_kernel/src/rendy.rs
@@ -55,6 +55,8 @@ const DEFAULT_FONT_HEIGHT: usize = 16;
55
56
const DEFAULT_MARGIN: usize = 64 / 2;
57
58
+const TAB_SIZE: usize = 4;
59
+
60
/// The amount of VGA font glyphs.
61
const VGA_FONT_GLYPHS: usize = 256;
62
@@ -723,6 +725,16 @@ impl<'this> DebugRendy<'this> {
723
725
fn write_character(&mut self, char: char) {
724
726
match char {
727
'\n' => self.newline(),
728
729
+ '\t' => {
730
+ if (self.x_pos / TAB_SIZE + 1) >= self.cols {
731
+ self.set_cursor_position(self.cols - 1, self.y_pos);
732
+ return;
733
+ }
734
735
+ self.set_cursor_position((self.x_pos / TAB_SIZE + 1) * TAB_SIZE, self.y_pos);
736
737
738
'\r' => {}
739
740
_ => {
0 commit comments