2 * SCREEN.C - screen internal command.
4 * clone from 4nt msgbox command
7 * started - Paolo Pantaleo <paolopan@freemail.it>
9 * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
10 * Remove all hardcoded strings in En.rc
16 #ifdef INCLUDE_CMD_SCREEN
18 INT
CommandScreen(LPTSTR param
)
22 BOOL bSkipText
= FALSE
;
24 if (_tcsncmp(param
, _T("/?"), 2) == 0)
26 ConOutResPaging(TRUE
,STRING_SCREEN_HELP
);
32 /* Retrieve the screen dimensions */
33 GetScreenSize(&maxx
, &maxy
);
36 while (_istspace(*param
))
41 error_req_param_missing();
46 if (y
< 0 || y
> (maxy
-1))
48 ConOutResPuts(STRING_SCREEN_ROW
);
53 if (!(param
= _tcschr(param
, _T(' '))))
55 error_req_param_missing();
59 while (_istspace(*param
))
64 error_req_param_missing();
69 if (x
< 0 || x
> (maxx
-1))
71 ConErrResPuts(STRING_SCREEN_COL
);
76 if (!(param
= _tcschr(param
, _T(' '))))
82 while (_istspace(*param
))
102 #endif /* INCLUDE_CMD_SCREEN */