Skip to content

Commit be8461c

Browse files
committed
05311054
1 parent d82a391 commit be8461c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

devices/keyboard.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ IrsCall keyboard_callback() {
9999
// tty_print(str);
100100
// tty_print("\n");
101101
if (ctrl_down && code == 18) {
102-
tty_print("\n\nTurning off cpu... Bye!\n");
102+
tty_print("\n\n> Turning off the CPU... Bye!\n");
103103
die();
104104
}
105105

kernel/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Void main() {
3434

3535
tty_print("MyOs Kernel\n");
3636
tty_print("Copyright (C) 2021 Redwan. All rights reserved.\n");
37-
tty_print("> ");
37+
tty_print("\n> ");
3838

3939

4040
return;

lib/kernel/tty.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ Void tty_print(
187187

188188
if (*stemp == 0xA || *stemp == '\n') {
189189

190-
// prev_line_cur[cur / 80] = cur;
191190
__tty_putc(' ', cur, RESET);
192191
cur += 80 - (cur % 80);
193192
continue;
@@ -197,7 +196,6 @@ Void tty_print(
197196

198197
__tty_putc(' ', cur, RESET);
199198
cur -= (cur % 80);
200-
__tty_putc(' ', cur, SET);
201199
continue;
202200
}
203201

@@ -225,6 +223,7 @@ Void tty_print(
225223
continue;
226224
}
227225

226+
__tty_putc(' ', cur, RESET);
228227
__tty_putc(*stemp, cur++, NONE);
229228

230229
}

0 commit comments

Comments
 (0)