HISTORY_SIZE
static char sLineBuffer[HISTORY_SIZE][LINE_BUFFER_SIZE] = { "", };
historyLine = HISTORY_SIZE - 1;
if (historyLine >= HISTORY_SIZE)
+ HISTORY_SIZE) % HISTORY_SIZE;
previousLine = HISTORY_SIZE - 1;
if (++sCurrentLine >= HISTORY_SIZE)