static void renderStatusField_time (unsigned char *cells) { time_t now = time(NULL); struct tm *local = localtime(&now); renderNumberUpper(cells, local->tm_hour); renderNumberLower(cells, local->tm_min); }
static void renderStatusField_time (unsigned char *cells) { TimeValue value; TimeComponents components; getCurrentTime(&value); scheduleUpdateIn("time status field", millisecondsTillNextMinute(&value)); expandTimeValue(&value, &components); renderNumberUpper(cells, components.hour); renderNumberLower(cells, components.minute); }
static void renderCoordinatesVertical (unsigned char *cells, int column, int row) { renderNumberUpper(&cells[0], row); renderNumberLower(&cells[0], column); }
static void renderStatusField_cursorAndWindowRow (unsigned char *cells) { renderNumberUpper(cells, SCR_ROW_NUMBER(scr.posy)); renderNumberLower(cells, SCR_ROW_NUMBER(ses->winy)); }
static void renderStatusField_cursorAndWindowColumn (unsigned char *cells) { renderNumberUpper(cells, SCR_COLUMN_NUMBER(scr.posx)); renderNumberLower(cells, SCR_COLUMN_NUMBER(ses->winx)); }