Now this should be complete
Added basic shell and fixed various bugs...now iceos should be "complete".
This commit is contained in:
@@ -32,7 +32,7 @@ int printf(const char *format, ...) {
|
||||
kprint(buf);
|
||||
break;
|
||||
case 'c':
|
||||
s = va_arg(ap, uint8_t*);
|
||||
c = (uint8_t)va_arg(ap, uint32_t);
|
||||
kprint_c(&c, 1, WHITE, BLACK);
|
||||
break;
|
||||
case 's':
|
||||
@@ -49,6 +49,11 @@ int printf(const char *format, ...) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int printf_color(const char *format, uint8_t fg, uint8_t bg) {
|
||||
kprint_c((uint8_t*)format, strlen((uint8_t*)format), fg, bg);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void puts(const char *buf) {
|
||||
printf("%s\n", buf);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
int printf(const char *format, ...);
|
||||
int printf_color(const char *format, uint8_t fg, uint8_t bg); // Only for string for now
|
||||
void puts(const char *buf);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user