diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-12 16:59:17 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-12 16:59:17 +0000 |
commit | e4ccbe7508fd31b76790986fc654dc588efb9dfe (patch) | |
tree | 48b3a447e4756a3cc3ee0e5d7ff61f637c59bc1d /apps/nshlib/nsh_parse.c | |
parent | 8de1d1d182bed68c075f279541c32a7493aef0bc (diff) | |
download | px4-firmware-e4ccbe7508fd31b76790986fc654dc588efb9dfe.tar.gz px4-firmware-e4ccbe7508fd31b76790986fc654dc588efb9dfe.tar.bz2 px4-firmware-e4ccbe7508fd31b76790986fc654dc588efb9dfe.zip |
You can now configure a login for Telnet NSH session -- from Darcy Gong
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5231 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/nshlib/nsh_parse.c')
-rw-r--r-- | apps/nshlib/nsh_parse.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/nshlib/nsh_parse.c b/apps/nshlib/nsh_parse.c index ba597a062..df2f7c3e3 100644 --- a/apps/nshlib/nsh_parse.c +++ b/apps/nshlib/nsh_parse.c @@ -395,6 +395,17 @@ const char g_nshgreeting[] = "\nNuttShell (NSH) NuttX-" CONFIG_VERSION_STR const char g_nshgreeting[] = "\nNuttShell (NSH)\n"; #endif +/* Telnet login prompts */ + +#if defined(CONFIG_NSH_TELNET_LOGIN) && defined(CONFIG_NSH_TELNET) +const char g_telnetgreeting[] = "\nWelcome to NuttShell(NSH) Telnet Server...\n"; +const char g_userprompt[] = "login: "; +const char g_passwordprompt[] = "password: "; +const char g_loginsuccess[] = "\nUser Logged-in!\n"; +const char g_badcredentials[] = "\nInvalid username or password\n"; +const char g_loginfailure[] = "Login failed!\n"; +#endif + /* The NSH prompt */ const char g_nshprompt[] = "nsh> "; |