apps/system/cle/cle.c: This commit modifies the cle to use the streams file interface more consistently and has removed the observed race conditions. It was previously a mix of streams and fileio. It also simplifies the VT100 cursor position handling.

This commit is contained in:
Dave Marples
2019-11-04 11:35:18 -06:00
committed by Gregory Nutt
parent af6719d78d
commit dbd4e67241
2 changed files with 63 additions and 105 deletions

View File

@@ -149,7 +149,7 @@ int nsh_session(FAR struct console_stdio_s *pstate)
{
fprintf(pstate->cn_errstream, g_fmtcmdfailed, "nsh_session",
"cle", NSH_ERRNO_OF(-ret));
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
continue;
}
#else
/* Display the prompt string */