Fix formatting issues

This commit is contained in:
Chris Feger 2023-05-05 14:01:35 -07:00
parent 2ea1f071e6
commit b0445819cf

View File

@ -249,7 +249,7 @@ static struct
ESC_BUILDING_FORMAT_FG_NONRGB,
ESC_BUILDING_FORMAT_BG_NONRGB,
ESC_BUILDING_FORMAT_FG_RGB,
ESC_BUILDING_FORMAT_BG_RGB
ESC_BUILDING_FORMAT_BG_RGB,
} state;
} escapeSeq;
@ -461,14 +461,9 @@ static void consoleColorStateShift(void)
case ESC_BUILDING_FORMAT_FG_RGB:
case ESC_BUILDING_FORMAT_BG_RGB:
if (escapeSeq.argIdx < 3)
{
escapeSeq.argIdx++;
}
else
{
// Nothing passed here because three RGB items
consoleHandleColorEsc(0);
}
consoleHandleColorEsc(0); // Nothing passed here because three RGB items
break;
default:
break;
@ -504,13 +499,9 @@ ssize_t con_write(struct _reent *r,void *fd,const char *ptr, size_t len) {
{
case ESC_NONE:
if (chr == 0x1b)
{
escapeSeq.state = ESC_START;
}
else
{
consolePrintChar(chr);
}
break;
case ESC_START:
if (chr == '[')
@ -762,8 +753,8 @@ void consoleDebugInit(debugDevice device){
int buffertype = _IONBF;
switch(device) {
switch(device)
{
case debugDevice_SVC:
devoptab_list[STD_ERR] = &dotab_svc;
buffertype = _IOLBF;