summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-04-15 14:57:53 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-04-15 14:57:53 +0000
commit3f55b3ef4d7bf0782a7d87ebb73eb985a6a9c18f (patch)
tree4a5128533aa866afa19719584a764f0f83b9d165 /apps
parent61d99ee51bb3c6ebfaab8464d84759bcc6b25efb (diff)
Add time and uptime
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3506 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'apps')
-rw-r--r--apps/nshlib/nsh_parse.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/nshlib/nsh_parse.c b/apps/nshlib/nsh_parse.c
index fe7423f66d..a4c3c893dc 100644
--- a/apps/nshlib/nsh_parse.c
+++ b/apps/nshlib/nsh_parse.c
@@ -52,6 +52,8 @@
#include <errno.h>
#include <debug.h>
+#include <nuttx/version.h>
+
#ifndef CONFIG_NSH_DISABLEBG
# include <pthread.h>
#endif
@@ -341,8 +343,22 @@ static const struct cmdmap_s g_cmdmap[] =
* Public Data
****************************************************************************/
+/* If NuttX versioning information is available, Include that information
+ * in the NSH greeting.
+ */
+
+#if CONFIG_VERSION_MAJOR != 0 || CONFIG_VERSION_MINOR != 0
+const char g_nshgreeting[] = "\nNuttShell (NSH) NuttX-" CONFIG_VERSION_STRING "\n
+#else
const char g_nshgreeting[] = "\nNuttShell (NSH)\n";
+#endif
+
+/* The NSH prompt */
+
const char g_nshprompt[] = "nsh> ";
+
+/* Common, message formats */
+
const char g_nshsyntax[] = "nsh: %s: syntax error\n";
const char g_fmtargrequired[] = "nsh: %s: missing required argument(s)\n";
const char g_fmtarginvalid[] = "nsh: %s: argument invalid\n";