Compare commits

..

No commits in common. "2cbe9c949254fa5abf8bae77c20ff93e7d6e8b51" and "6fe18b35722c0cf2cfd7bbaf7233b5ae66d3babf" have entirely different histories.

3 changed files with 0 additions and 15 deletions

View File

@ -9,9 +9,7 @@ int isdigit(int c);
/* /*
int isgraph(int c); int isgraph(int c);
int islower(int c); int islower(int c);
*/
int isprint(int c); int isprint(int c);
/*
int ispunct(int c); int ispunct(int c);
int isspace(int c); int isspace(int c);
int isupper(int c); int isupper(int c);

View File

@ -1,4 +0,0 @@
int isprint(int c)
{
return (32 <= c && c < 127);
}

View File

@ -1,6 +1,5 @@
#include "terminal.h" #include "terminal.h"
#include "string.h" #include "string.h"
#include "ctype.h"
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h> #include <stddef.h>
@ -51,14 +50,6 @@ void terminal_putentryat(char c, uint8_t color, size_t x, size_t y)
int terminal_putchar(char c) int terminal_putchar(char c)
{ {
if (c == '\r')
terminal_row = 0;
else if (c == '\n') {
terminal_column = 0;
terminal_row++;
}
if (!isprint(c))
return 1;
terminal_putentryat(c, terminal_color, terminal_column, terminal_row); terminal_putentryat(c, terminal_color, terminal_column, terminal_row);
if (++terminal_column == VGA_WIDTH) { if (++terminal_column == VGA_WIDTH) {
terminal_column = 0; terminal_column = 0;