Home
last modified time | relevance | path

Searched refs:shellBufOffset (Results 1 – 7 of 7) sorted by relevance

/kernel/liteos_a/apps/shell/src/
Dshmsg.c198 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()
[all …]
Dshcmd.c567 while (shellCB->shellBufOffset--) { in OsShellHistoryShow()
571 shellCB->shellBufOffset = strlen(cmdMask->cmdString); in OsShellHistoryShow()
573 ret = memcpy_s(shellCB->shellBuf, SHOW_MAX_LEN, cmdMask->cmdString, shellCB->shellBufOffset); in OsShellHistoryShow()
/kernel/liteos_a/shell/full/src/base/
Dshmsg.c157 if ((shellCB->shellBufOffset == 0) && (ch != '\n') && (ch != '\0')) { in ShellCmdLineParse()
162 if (shellCB->shellBufOffset < (SHOW_MAX_LEN - 1)) { in ShellCmdLineParse()
163 shellCB->shellBuf[shellCB->shellBufOffset] = '\0'; in ShellCmdLineParse()
165 shellCB->shellBufOffset = 0; in ShellCmdLineParse()
172 if ((shellCB->shellBufOffset > 0) && (shellCB->shellBufOffset < (SHOW_MAX_LEN - 1))) { in ShellCmdLineParse()
173 shellCB->shellBuf[shellCB->shellBufOffset - 1] = '\0'; in ShellCmdLineParse()
174 shellCB->shellBufOffset--; in ShellCmdLineParse()
179 if ((shellCB->shellBufOffset > 0) && (shellCB->shellBufOffset < (SHOW_MAX_LEN - 1))) { in ShellCmdLineParse()
180 ret = OsTabCompletion(shellCB->shellBuf, &shellCB->shellBufOffset); in ShellCmdLineParse()
194 if (shellCB->shellBufOffset < (SHOW_MAX_LEN - 1)) { in ShellCmdLineParse()
[all …]
Dshcmd.c719 while (shellCB->shellBufOffset--) { in OsShellHistoryShow()
723 shellCB->shellBufOffset = strlen(cmdMask->cmdString); in OsShellHistoryShow()
725 ret = memcpy_s(shellCB->shellBuf, SHOW_MAX_LEN, cmdMask->cmdString, shellCB->shellBufOffset); in OsShellHistoryShow()
/kernel/liteos_a/apps/shell/include/
Dshell.h78 unsigned int shellBufOffset; member
/kernel/liteos_m/components/shell/include/
Dshell.h92 UINT32 shellBufOffset; member
/kernel/liteos_a/shell/full/include/
Dshell.h93 UINT32 shellBufOffset; member