2006-02-16 23:23:37 +00:00
|
|
|
/*
|
|
|
|
* CLS.C - clear screen internal command.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* History:
|
|
|
|
*
|
|
|
|
* 07/27/1998 (John P. Price)
|
|
|
|
* started.
|
|
|
|
*
|
|
|
|
* 27-Jul-1998 (John P Price <linux-guru@gcfl.net>)
|
|
|
|
* added config.h include
|
|
|
|
*
|
2007-05-05 11:32:25 +00:00
|
|
|
* 04-Dec-1998 (Eric Kohl)
|
2006-02-16 23:23:37 +00:00
|
|
|
* Changed to Win32 console app.
|
|
|
|
*
|
2007-05-05 11:32:25 +00:00
|
|
|
* 08-Dec-1998 (Eric Kohl)
|
2006-02-16 23:23:37 +00:00
|
|
|
* Added help text ("/?").
|
|
|
|
*
|
2007-05-05 11:32:25 +00:00
|
|
|
* 14-Jan-1998 (Eric Kohl)
|
2006-02-16 23:23:37 +00:00
|
|
|
* Unicode ready!
|
|
|
|
*
|
2007-05-05 11:32:25 +00:00
|
|
|
* 20-Jan-1998 (Eric Kohl)
|
2006-02-16 23:23:37 +00:00
|
|
|
* Redirection ready!
|
|
|
|
*
|
2013-06-30 13:23:30 +00:00
|
|
|
* 02-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
|
2013-06-30 00:08:43 +00:00
|
|
|
* Remove all hardcoded strings in En.rc
|
2006-02-16 23:23:37 +00:00
|
|
|
*/
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include "precomp.h"
|
2006-02-16 23:23:37 +00:00
|
|
|
|
|
|
|
#ifdef INCLUDE_CMD_CLS
|
|
|
|
|
2017-09-30 14:04:24 +00:00
|
|
|
INT cmd_cls(LPTSTR param)
|
2006-02-16 23:23:37 +00:00
|
|
|
{
|
2017-09-30 14:04:24 +00:00
|
|
|
if (!_tcsncmp(param, _T("/?"), 2))
|
2013-06-30 00:08:43 +00:00
|
|
|
{
|
2017-09-30 14:04:24 +00:00
|
|
|
ConOutResPaging(TRUE, STRING_CLS_HELP);
|
2013-06-30 00:08:43 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2006-02-16 23:23:37 +00:00
|
|
|
|
2017-10-01 16:30:39 +00:00
|
|
|
ConClearScreen(&StdOutScreen);
|
2013-06-30 00:08:43 +00:00
|
|
|
return 0;
|
2006-02-16 23:23:37 +00:00
|
|
|
}
|
2017-09-30 14:04:24 +00:00
|
|
|
|
2006-02-16 23:23:37 +00:00
|
|
|
#endif
|