mirror of
https://github.com/Plexi09/Nadir-Kernel.git
synced 2026-10-20 15:07:27 +02:00
Merge origin/main into fix/issue-3-cursor-position
This commit is contained in:
commit
d84131de74
4 changed files with 0 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -13,12 +13,10 @@ compile_commands.json
|
||||||
.vscode/
|
.vscode/
|
||||||
.idea/
|
.idea/
|
||||||
*~
|
*~
|
||||||
.pyc
|
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
||||||
# QEMU / debug
|
# QEMU / debug
|
||||||
*.log
|
*.log
|
||||||
qemu*.log
|
|
||||||
*.core
|
*.core
|
||||||
|
|
||||||
# For contributors using ai agents
|
# For contributors using ai agents
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,6 @@ static void update_hw_cursor(void)
|
||||||
outb(VGA_CRT_DATA, (uint8_t)((pos >> 8) & 0xFFU));
|
outb(VGA_CRT_DATA, (uint8_t)((pos >> 8) & 0xFFU));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Move every line one row up and blank the last line */
|
|
||||||
static void scroll(void)
|
static void scroll(void)
|
||||||
{
|
{
|
||||||
for (uint8_t row = 1; row < VGA_HEIGHT; row++) {
|
for (uint8_t row = 1; row < VGA_HEIGHT; row++) {
|
||||||
|
|
|
||||||
|
|
@ -89,8 +89,6 @@ static uint8_t k_shift;
|
||||||
static uint8_t k_caps;
|
static uint8_t k_caps;
|
||||||
static uint8_t k_e0;
|
static uint8_t k_e0;
|
||||||
|
|
||||||
/* Queue helpers below; port I/O comes from io.h. */
|
|
||||||
|
|
||||||
/* Drop-newest on full: keeps the consumer's prefix intact for editing. */
|
/* Drop-newest on full: keeps the consumer's prefix intact for editing. */
|
||||||
static void enqueue(char c)
|
static void enqueue(char c)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ void serial_putchar(char c)
|
||||||
/* Spin until THR is empty; hangs only if hardware is absent/wedged,
|
/* Spin until THR is empty; hangs only if hardware is absent/wedged,
|
||||||
* which is why callers gate on serial_ok() when unsure. */
|
* which is why callers gate on serial_ok() when unsure. */
|
||||||
while ((inb(COM_LSR) & LSR_TX_EMPTY) == 0) {
|
while ((inb(COM_LSR) & LSR_TX_EMPTY) == 0) {
|
||||||
/* Poll. */
|
|
||||||
}
|
}
|
||||||
outb(COM_DATA, (uint8_t)c);
|
outb(COM_DATA, (uint8_t)c);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue