mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-23 00:50:00 +08:00
nsh: sh_main also support isctty = true
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -214,6 +214,27 @@ int platform_user_verify(FAR const char *username, FAR const char *password);
|
||||
|
||||
int nsh_system(int argc, FAR char *argv[]);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nsh_system_ctty
|
||||
*
|
||||
* Description:
|
||||
* This is the NSH-specific implementation of the standard system()
|
||||
* command.
|
||||
*
|
||||
* NOTE:
|
||||
* This difference with nsh_system: newconsole set isctty true
|
||||
*
|
||||
* Input Parameters:
|
||||
* Standard task start-up arguments. Expects argc == 2 with argv[1] being
|
||||
* the command to execute
|
||||
*
|
||||
* Returned Values:
|
||||
* EXIT_SUCCESS or EXIT_FAILURE
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int nsh_system_ctty(int argc, FAR char *argv[]);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user