2 * SCREEN.C - screen internal command.
4 * clone from 4nt msgbox command
7 * started - Paolo Pantaleo <paolopan@freemail.it>
14 #ifdef INCLUDE_CMD_SCREEN
24 INT CommandScreen (LPTSTR cmd, LPTSTR param)
27 BOOL bSkipText = FALSE;
29 if (_tcsncmp (param, _T("/?"), 2) == 0)
32 "move cursor and optionally print text\n"
34 "SCREEN row col [text]\n"
36 " row row to wich move the cursor\n"
37 " col column to wich move the cursor"));
42 while(_istspace(*param))
47 error_req_param_missing ();
52 if (y<0 || y>(maxy-1))
54 ConOutPrintf("invalid value for row");
59 if(!(param = _tcschr(param,_T(' '))))
61 error_req_param_missing ();
65 while(_istspace(*param))
70 error_req_param_missing ();
75 if (x<0 || x>(maxx-1))
77 ConErrPuts(_T("invalid value for col"));
82 if(!(param = _tcschr(param,_T(' '))))
88 while(_istspace(*param))
111 #endif /* INCLUDE_CMD_SCREEN */