mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-23 18:09:52 +08:00
More improvements to the minimal NSH when there is no file system and when print fieldwidths are suppressed
This commit is contained in:
@@ -513,7 +513,11 @@ static inline void help_cmdlist(FAR struct nsh_vtbl_s *vtbl)
|
||||
nsh_output(vtbl, " ");
|
||||
for (j = 0, k = i; j < CMDS_PER_LINE && k < NUM_CMDS; j++, k += NUM_CMD_ROWS)
|
||||
{
|
||||
#ifdef CONFIG_NOPRINTF_FIELDWIDTH
|
||||
nsh_output(vtbl, "%s\t", g_cmdmap[k].cmd);
|
||||
#else
|
||||
nsh_output(vtbl, "%-12s", g_cmdmap[k].cmd);
|
||||
#endif
|
||||
}
|
||||
|
||||
nsh_output(vtbl, "\n");
|
||||
|
Reference in New Issue
Block a user