mirror of
https://github.com/cowmonk/cowos.git
synced 2025-10-27 22:43:26 +00:00
Improved (more like fixed) a couple things
This commit is contained in:
parent
16103b0011
commit
4a6c2e2656
2 changed files with 4 additions and 4 deletions
|
|
@ -37,7 +37,7 @@ term_putentryat(char c, uint8_t color, size_t x, size_t y)
|
|||
void
|
||||
term_putchar(char c)
|
||||
{
|
||||
term_putentryat(c, term_color, term_row);
|
||||
term_putentryat(c, term_color, term_col, term_row);
|
||||
if (++term_col == VGA_WIDTH) {
|
||||
term_col = 0;
|
||||
if (++term_row == VGA_HEIGHT) {
|
||||
|
|
@ -49,7 +49,7 @@ term_putchar(char c)
|
|||
void
|
||||
term_writestr(const char* data)
|
||||
{
|
||||
for (size_t i = 0; i < strlen(data); i++) {
|
||||
for (size_t i = 0; data[i] != '\0'; i++) {
|
||||
term_putchar(data[i]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue