Lines Matching refs:shellBufOffset
198 if (shellCB->shellBufOffset == 0) { in ParseEnterKey()
199 shellCB->shellBuf[shellCB->shellBufOffset] = '\n'; in ParseEnterKey()
200 shellCB->shellBuf[shellCB->shellBufOffset + 1] = '\0'; in ParseEnterKey()
204 if (shellCB->shellBufOffset <= (SHOW_MAX_LEN - 1)) { in ParseEnterKey()
205 shellCB->shellBuf[shellCB->shellBufOffset] = '\0'; in ParseEnterKey()
208 shellCB->shellBufOffset = 0; in ParseEnterKey()
218 if (shellCB->shellBufOffset <= (SHOW_MAX_LEN - 1)) { in ParseCancelKey()
223 shellCB->shellBufOffset = 0; in ParseCancelKey()
233 if ((shellCB->shellBufOffset > 0) && (shellCB->shellBufOffset <= (SHOW_MAX_LEN - 1))) { in ParseDeleteKey()
234 shellCB->shellBuf[shellCB->shellBufOffset - 1] = '\0'; in ParseDeleteKey()
235 shellCB->shellBufOffset--; in ParseDeleteKey()
248 if ((shellCB->shellBufOffset > 0) && (shellCB->shellBufOffset < (SHOW_MAX_LEN - 1))) { in ParseTabKey()
249 ret = OsTabCompletion(shellCB->shellBuf, &shellCB->shellBufOffset); in ParseTabKey()
262 if ((ch != '\0') && (shellCB->shellBufOffset < (SHOW_MAX_LEN - 1))) { in ParseNormalChar()
263 shellCB->shellBuf[shellCB->shellBufOffset] = ch; in ParseNormalChar()
264 shellCB->shellBufOffset++; in ParseNormalChar()
276 if ((shellCB->shellBufOffset == 0) && (ch != '\n') && (ch != CHAR_CTRL_C) && (ch != '\0')) { in ShellCmdLineParse()