From d1c9fb08f5c29b7a01dadffe9f37c6debcf14b0e Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Thu, 7 Jul 2005 08:29:22 +0000 Subject: [PATCH] adding page break on almost all help param and on help command. svn path=/trunk/; revision=16477 --- reactos/subsys/system/cmd/alias.c | 2 +- reactos/subsys/system/cmd/attrib.c | 2 +- reactos/subsys/system/cmd/beep.c | 2 +- reactos/subsys/system/cmd/call.c | 2 +- reactos/subsys/system/cmd/chcp.c | 2 +- reactos/subsys/system/cmd/choice.c | 2 +- reactos/subsys/system/cmd/cls.c | 2 +- reactos/subsys/system/cmd/cmd.c | 2 +- reactos/subsys/system/cmd/cmd.h | 1 + reactos/subsys/system/cmd/cmdtable.c | 4 ++-- reactos/subsys/system/cmd/color.c | 7 ++----- reactos/subsys/system/cmd/console.c | 7 +++++++ reactos/subsys/system/cmd/copy.c | 2 +- reactos/subsys/system/cmd/date.c | 2 +- reactos/subsys/system/cmd/del.c | 2 +- reactos/subsys/system/cmd/delay.c | 2 +- reactos/subsys/system/cmd/echo.c | 2 +- reactos/subsys/system/cmd/for.c | 2 +- reactos/subsys/system/cmd/free.c | 2 +- reactos/subsys/system/cmd/goto.c | 5 ++--- reactos/subsys/system/cmd/if.c | 2 +- reactos/subsys/system/cmd/internal.c | 10 +++++----- reactos/subsys/system/cmd/label.c | 2 +- reactos/subsys/system/cmd/memory.c | 2 +- reactos/subsys/system/cmd/move.c | 2 +- reactos/subsys/system/cmd/msgbox.c | 2 +- reactos/subsys/system/cmd/path.c | 2 +- reactos/subsys/system/cmd/pause.c | 2 +- reactos/subsys/system/cmd/prompt.c | 6 +++--- reactos/subsys/system/cmd/ren.c | 2 +- reactos/subsys/system/cmd/screen.c | 2 +- reactos/subsys/system/cmd/set.c | 2 +- reactos/subsys/system/cmd/shift.c | 2 +- reactos/subsys/system/cmd/start.c | 2 +- reactos/subsys/system/cmd/time.c | 2 +- reactos/subsys/system/cmd/title.c | 2 +- reactos/subsys/system/cmd/type.c | 2 +- reactos/subsys/system/cmd/ver.c | 2 +- reactos/subsys/system/cmd/verify.c | 2 +- reactos/subsys/system/cmd/vol.c | 2 +- reactos/subsys/system/cmd/window.c | 4 ++-- 41 files changed, 57 insertions(+), 53 deletions(-) diff --git a/reactos/subsys/system/cmd/alias.c b/reactos/subsys/system/cmd/alias.c index 9c0d3c7124e..c4f910c2ab6 100644 --- a/reactos/subsys/system/cmd/alias.c +++ b/reactos/subsys/system/cmd/alias.c @@ -308,7 +308,7 @@ INT CommandAlias (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_ALIAS_HELP); + ConOutResPaging(TRUE,STRING_ALIAS_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/attrib.c b/reactos/subsys/system/cmd/attrib.c index 1e1c09f3e9b..62bd39b87ae 100644 --- a/reactos/subsys/system/cmd/attrib.c +++ b/reactos/subsys/system/cmd/attrib.c @@ -205,7 +205,7 @@ INT CommandAttrib (LPTSTR cmd, LPTSTR param) /* print help */ if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_ATTRIB_HELP); + ConOutResPaging(TRUE,STRING_ATTRIB_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/beep.c b/reactos/subsys/system/cmd/beep.c index e0a48ad3a3a..bf2230a3d5d 100644 --- a/reactos/subsys/system/cmd/beep.c +++ b/reactos/subsys/system/cmd/beep.c @@ -34,7 +34,7 @@ INT cmd_beep (LPTSTR cmd, LPTSTR param) { if (_tcsncmp (param, _T("/?"), 2) == 0) { - ConOutResPuts(STRING_BEEP_HELP); + ConOutResPaging(TRUE,STRING_BEEP_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/call.c b/reactos/subsys/system/cmd/call.c index 167b09a9443..c79a6bb8cc9 100644 --- a/reactos/subsys/system/cmd/call.c +++ b/reactos/subsys/system/cmd/call.c @@ -50,7 +50,7 @@ INT cmd_call (LPTSTR cmd, LPTSTR param) #endif if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_CALL_HELP); + ConOutResPaging(TRUE,STRING_CALL_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/chcp.c b/reactos/subsys/system/cmd/chcp.c index e07b046d70e..a1903e02e6c 100644 --- a/reactos/subsys/system/cmd/chcp.c +++ b/reactos/subsys/system/cmd/chcp.c @@ -28,7 +28,7 @@ INT CommandChcp (LPTSTR cmd, LPTSTR param) /* print help */ if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_CHCP_HELP); + ConOutResPaging(TRUE,STRING_CHCP_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/choice.c b/reactos/subsys/system/cmd/choice.c index 4a01855b847..a0006fb7e1d 100644 --- a/reactos/subsys/system/cmd/choice.c +++ b/reactos/subsys/system/cmd/choice.c @@ -128,7 +128,7 @@ CommandChoice (LPTSTR cmd, LPTSTR param) if (_tcsncmp (param, _T("/?"), 2) == 0) { - ConOutResPuts(STRING_CHOICE_HELP); + ConOutResPaging(TRUE,STRING_CHOICE_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/cls.c b/reactos/subsys/system/cmd/cls.c index d4b8ce96cf7..ac3ce2d23ad 100644 --- a/reactos/subsys/system/cmd/cls.c +++ b/reactos/subsys/system/cmd/cls.c @@ -39,7 +39,7 @@ INT cmd_cls (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_CLS_HELP); + ConOutResPaging(TRUE,STRING_CLS_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/cmd.c b/reactos/subsys/system/cmd/cmd.c index dccbcc1a170..dde407d6890 100644 --- a/reactos/subsys/system/cmd/cmd.c +++ b/reactos/subsys/system/cmd/cmd.c @@ -1186,7 +1186,7 @@ Initialize (int argc, TCHAR* argv[]) if (argc >= 2 && !_tcsncmp (argv[1], _T("/?"), 2)) { - ConOutResPuts(STRING_CMD_HELP8); + ConOutResPaging(TRUE,STRING_CMD_HELP8); ExitProcess(0); } SetConsoleMode (hIn, ENABLE_PROCESSED_INPUT); diff --git a/reactos/subsys/system/cmd/cmd.h b/reactos/subsys/system/cmd/cmd.h index 95a99779097..19f080c6458 100644 --- a/reactos/subsys/system/cmd/cmd.h +++ b/reactos/subsys/system/cmd/cmd.h @@ -163,6 +163,7 @@ VOID SetCursorType (BOOL, BOOL); VOID ConOutResPuts (UINT resID); VOID ConErrResPuts (UINT resID); +VOID ConOutResPaging(BOOL NewPage, UINT resID); /* Prototypes for COPY.C */ INT cmd_copy (LPTSTR, LPTSTR); diff --git a/reactos/subsys/system/cmd/cmdtable.c b/reactos/subsys/system/cmd/cmdtable.c index 6e9fa302fac..fa664223a9b 100644 --- a/reactos/subsys/system/cmd/cmdtable.c +++ b/reactos/subsys/system/cmd/cmdtable.c @@ -262,8 +262,8 @@ VOID PrintCommandList (VOID) VOID PrintCommandListDetail (VOID) { - ConOutResPuts(STRING_HELP1); - ConOutResPuts(STRING_HELP2); + ConOutResPaging(TRUE,STRING_HELP1); + ConOutResPaging(FALSE,STRING_HELP2); } /* EOF */ diff --git a/reactos/subsys/system/cmd/color.c b/reactos/subsys/system/cmd/color.c index 9541c7cb64f..2f3dfb1e85f 100644 --- a/reactos/subsys/system/cmd/color.c +++ b/reactos/subsys/system/cmd/color.c @@ -26,10 +26,7 @@ #ifdef INCLUDE_CMD_COLOR -static VOID ColorHelp (VOID) -{ - ConOutResPuts(STRING_COLOR_HELP1); -} + VOID SetScreenColor (WORD wColor, BOOL bNoFill) @@ -73,7 +70,7 @@ INT CommandColor (LPTSTR first, LPTSTR rest) if (_tcsncmp (rest, _T("/?"), 2) == 0) { - ColorHelp (); + ConOutResPaging(TRUE,STRING_COLOR_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/console.c b/reactos/subsys/system/cmd/console.c index 2c0713ffb3c..03424d32cab 100644 --- a/reactos/subsys/system/cmd/console.c +++ b/reactos/subsys/system/cmd/console.c @@ -187,6 +187,13 @@ VOID ConPuts(LPTSTR szText, DWORD nStdHandle) #endif } +VOID ConOutResPaging(BOOL NewPage, UINT resID) +{ + TCHAR szMsg[RC_STRING_MAX_SIZE]; + LoadString(CMD_ModuleHandle, resID, szMsg, RC_STRING_MAX_SIZE); + ConOutPrintfPaging(NewPage, szMsg); +} + VOID ConOutResPuts (UINT resID) { TCHAR szMsg[RC_STRING_MAX_SIZE]; diff --git a/reactos/subsys/system/cmd/copy.c b/reactos/subsys/system/cmd/copy.c index b494cb057c7..eb8e906edb8 100644 --- a/reactos/subsys/system/cmd/copy.c +++ b/reactos/subsys/system/cmd/copy.c @@ -647,7 +647,7 @@ INT cmd_copy (LPTSTR first, LPTSTR rest) if (!_tcsncmp (rest, _T("/?"), 2)) { - ConOutResPuts(STRING_COPY_HELP2); + ConOutResPaging(TRUE,STRING_COPY_HELP2); return 1; } diff --git a/reactos/subsys/system/cmd/date.c b/reactos/subsys/system/cmd/date.c index 23e47ffc61b..c398352c407 100644 --- a/reactos/subsys/system/cmd/date.c +++ b/reactos/subsys/system/cmd/date.c @@ -192,7 +192,7 @@ INT cmd_date (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_DATE_HELP4); + ConOutResPaging(TRUE,STRING_DATE_HELP4); return 0; } diff --git a/reactos/subsys/system/cmd/del.c b/reactos/subsys/system/cmd/del.c index 6f2b71ac161..198ead4382e 100644 --- a/reactos/subsys/system/cmd/del.c +++ b/reactos/subsys/system/cmd/del.c @@ -169,7 +169,7 @@ INT CommandDelete (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_DEL_HELP1); + ConOutResPaging(TRUE,STRING_DEL_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/delay.c b/reactos/subsys/system/cmd/delay.c index 9d8202fb3ec..526a7bfa26a 100644 --- a/reactos/subsys/system/cmd/delay.c +++ b/reactos/subsys/system/cmd/delay.c @@ -22,7 +22,7 @@ INT CommandDelay (LPTSTR cmd, LPTSTR param) if (_tcsncmp (param, _T("/?"), 2) == 0) { - ConOutResPuts(STRING_DELAY_HELP); + ConOutResPaging(TRUE,STRING_DELAY_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/echo.c b/reactos/subsys/system/cmd/echo.c index d03558c80e7..c12f1df75e7 100644 --- a/reactos/subsys/system/cmd/echo.c +++ b/reactos/subsys/system/cmd/echo.c @@ -40,7 +40,7 @@ INT CommandEcho (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_ECHO_HELP4); + ConOutResPaging(TRUE,STRING_ECHO_HELP4); return 0; } diff --git a/reactos/subsys/system/cmd/for.c b/reactos/subsys/system/cmd/for.c index da2d855e25b..7e442794c08 100644 --- a/reactos/subsys/system/cmd/for.c +++ b/reactos/subsys/system/cmd/for.c @@ -61,7 +61,7 @@ INT cmd_for (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_FOR_HELP1); + ConOutResPaging(TRUE,STRING_FOR_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/free.c b/reactos/subsys/system/cmd/free.c index 3514ca68665..4977e2229d5 100644 --- a/reactos/subsys/system/cmd/free.c +++ b/reactos/subsys/system/cmd/free.c @@ -135,7 +135,7 @@ INT CommandFree (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_FREE_HELP2); + ConOutResPaging(TRUE,STRING_FREE_HELP2); return 0; } diff --git a/reactos/subsys/system/cmd/goto.c b/reactos/subsys/system/cmd/goto.c index ba541366388..f0992837d01 100644 --- a/reactos/subsys/system/cmd/goto.c +++ b/reactos/subsys/system/cmd/goto.c @@ -48,9 +48,8 @@ INT cmd_goto (LPTSTR cmd, LPTSTR param) #endif if (!_tcsncmp (param, _T("/?"), 2)) - { - LoadString(CMD_ModuleHandle, STRING_GOTO_HELP1, szMsg, RC_STRING_MAX_SIZE); - ConOutResPuts(STRING_GOTO_HELP1); + { + ConOutResPaging(TRUE,STRING_GOTO_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/if.c b/reactos/subsys/system/cmd/if.c index cc69d9a589d..f875ef2ce39 100644 --- a/reactos/subsys/system/cmd/if.c +++ b/reactos/subsys/system/cmd/if.c @@ -48,7 +48,7 @@ INT cmd_if (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_IF_HELP1); + ConOutResPaging(TRUE,STRING_IF_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/internal.c b/reactos/subsys/system/cmd/internal.c index 1ebeed745b7..c1a32cd8ddd 100644 --- a/reactos/subsys/system/cmd/internal.c +++ b/reactos/subsys/system/cmd/internal.c @@ -168,7 +168,7 @@ INT cmd_chdir (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_CD_HELP); + ConOutResPaging(TRUE,STRING_CD_HELP); return 0; } @@ -351,7 +351,7 @@ INT cmd_mkdir (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_MKDIR_HELP); + ConOutResPaging(TRUE,STRING_MKDIR_HELP); return 0; } @@ -424,7 +424,7 @@ INT cmd_rmdir (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_RMDIR_HELP); + ConOutResPaging(TRUE,STRING_RMDIR_HELP); return 0; } @@ -488,7 +488,7 @@ INT cmd_rmdir (LPTSTR cmd, LPTSTR param) INT CommandExit (LPTSTR cmd, LPTSTR param) { if (!_tcsncmp (param, _T("/?"), 2)) - ConOutResPuts(STRING_EXIT_HELP); + ConOutResPaging(TRUE,STRING_EXIT_HELP); if (bc != NULL && _tcsnicmp(param,_T("/b"),2) == 0) { @@ -517,7 +517,7 @@ INT CommandRem (LPTSTR cmd, LPTSTR param) { if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_REM_HELP); + ConOutResPaging(TRUE,STRING_REM_HELP); } return 0; diff --git a/reactos/subsys/system/cmd/label.c b/reactos/subsys/system/cmd/label.c index 8610f8c1da1..bcaeb6d5cb1 100644 --- a/reactos/subsys/system/cmd/label.c +++ b/reactos/subsys/system/cmd/label.c @@ -39,7 +39,7 @@ INT cmd_label (LPTSTR cmd, LPTSTR param) /* print help */ if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_LABEL_HELP1); + ConOutResPaging(TRUE,STRING_LABEL_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/memory.c b/reactos/subsys/system/cmd/memory.c index 0ea336e2a0b..997e1b53737 100644 --- a/reactos/subsys/system/cmd/memory.c +++ b/reactos/subsys/system/cmd/memory.c @@ -68,7 +68,7 @@ INT CommandMemory (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_MEMMORY_HELP1); + ConOutResPaging(TRUE,STRING_MEMMORY_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/move.c b/reactos/subsys/system/cmd/move.c index 33ee381c18c..6d9a2275f4d 100644 --- a/reactos/subsys/system/cmd/move.c +++ b/reactos/subsys/system/cmd/move.c @@ -86,7 +86,7 @@ INT cmd_move (LPTSTR cmd, LPTSTR param) " /-Y\n" "...")); #else - ConOutResPuts(STRING_MOVE_HELP2); + ConOutResPaging(TRUE,STRING_MOVE_HELP2); #endif return 0; } diff --git a/reactos/subsys/system/cmd/msgbox.c b/reactos/subsys/system/cmd/msgbox.c index 187d02fdf42..8785f8e18f2 100644 --- a/reactos/subsys/system/cmd/msgbox.c +++ b/reactos/subsys/system/cmd/msgbox.c @@ -44,7 +44,7 @@ INT CommandMsgbox (LPTSTR cmd, LPTSTR param) if (_tcsncmp (param, _T("/?"), 2) == 0) { - ConOutResPuts(STRING_MSGBOX_HELP); + ConOutResPaging(TRUE,STRING_MSGBOX_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/path.c b/reactos/subsys/system/cmd/path.c index 41bcea18222..1b377561159 100644 --- a/reactos/subsys/system/cmd/path.c +++ b/reactos/subsys/system/cmd/path.c @@ -39,7 +39,7 @@ INT cmd_path (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_PATH_HELP1); + ConOutResPaging(TRUE,STRING_PATH_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/pause.c b/reactos/subsys/system/cmd/pause.c index a2839d0f65a..d77a58430c3 100644 --- a/reactos/subsys/system/cmd/pause.c +++ b/reactos/subsys/system/cmd/pause.c @@ -44,7 +44,7 @@ INT cmd_pause (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_PAUSE_HELP1); + ConOutResPaging(TRUE,STRING_PAUSE_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/prompt.c b/reactos/subsys/system/cmd/prompt.c index d7dbf5c55fc..985d358cbb4 100644 --- a/reactos/subsys/system/cmd/prompt.c +++ b/reactos/subsys/system/cmd/prompt.c @@ -184,12 +184,12 @@ INT cmd_prompt (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_PROMPT_HELP1); + ConOutResPaging(TRUE,STRING_PROMPT_HELP1); #ifdef FEATURE_DIRECTORY_STACK - ConOutResPuts(STRING_PROMPT_HELP2); + ConOutResPaging(FALSE,STRING_PROMPT_HELP2); #endif - ConOutResPuts(STRING_PROMPT_HELP3); + ConOutResPaging(FALSE,STRING_PROMPT_HELP3); return 0; } diff --git a/reactos/subsys/system/cmd/ren.c b/reactos/subsys/system/cmd/ren.c index 593c8aa5f6e..3dae2065e7c 100644 --- a/reactos/subsys/system/cmd/ren.c +++ b/reactos/subsys/system/cmd/ren.c @@ -62,7 +62,7 @@ INT cmd_rename (LPTSTR cmd, LPTSTR param) if (!_tcsncmp(param, _T("/?"), 2)) { - ConOutResPuts(STRING_REN_HELP1); + ConOutResPaging(TRUE,STRING_REN_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/screen.c b/reactos/subsys/system/cmd/screen.c index 335d1419160..b40e9a5f49b 100644 --- a/reactos/subsys/system/cmd/screen.c +++ b/reactos/subsys/system/cmd/screen.c @@ -24,7 +24,7 @@ INT CommandScreen (LPTSTR cmd, LPTSTR param) if (_tcsncmp (param, _T("/?"), 2) == 0) { - ConOutResPuts(STRING_SCREEN_HELP); + ConOutResPaging(TRUE,STRING_SCREEN_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/set.c b/reactos/subsys/system/cmd/set.c index b1bc3a59cd2..34522033c96 100644 --- a/reactos/subsys/system/cmd/set.c +++ b/reactos/subsys/system/cmd/set.c @@ -51,7 +51,7 @@ INT cmd_set (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_SET_HELP); + ConOutResPaging(TRUE,STRING_SET_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/shift.c b/reactos/subsys/system/cmd/shift.c index 71b5f7f2c51..339f45b3867 100644 --- a/reactos/subsys/system/cmd/shift.c +++ b/reactos/subsys/system/cmd/shift.c @@ -46,7 +46,7 @@ INT cmd_shift (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_SHIFT_HELP); + ConOutResPaging(TRUE,STRING_SHIFT_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/start.c b/reactos/subsys/system/cmd/start.c index d81e924b279..922fe5f7e7f 100644 --- a/reactos/subsys/system/cmd/start.c +++ b/reactos/subsys/system/cmd/start.c @@ -25,7 +25,7 @@ INT cmd_start (LPTSTR first, LPTSTR rest) if (_tcsncmp (rest, _T("/?"), 2) == 0) { - ConOutResPuts(STRING_START_HELP1); + ConOutResPaging(TRUE,STRING_START_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/time.c b/reactos/subsys/system/cmd/time.c index 9a315544136..04c79b10547 100644 --- a/reactos/subsys/system/cmd/time.c +++ b/reactos/subsys/system/cmd/time.c @@ -140,7 +140,7 @@ INT cmd_time (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_TIME_HELP1); + ConOutResPaging(TRUE,STRING_TIME_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/title.c b/reactos/subsys/system/cmd/title.c index 15e0db42fa2..b76f1cbf986 100644 --- a/reactos/subsys/system/cmd/title.c +++ b/reactos/subsys/system/cmd/title.c @@ -25,7 +25,7 @@ INT cmd_title (LPTSTR cmd, LPTSTR param) /* Asking help? */ if (!_tcsncmp(param, _T("/?"), 2)) { - ConOutResPuts(STRING_TITLE_HELP); + ConOutResPaging(TRUE,STRING_TITLE_HELP); return 0; } diff --git a/reactos/subsys/system/cmd/type.c b/reactos/subsys/system/cmd/type.c index 57100595427..705ffbf32cc 100644 --- a/reactos/subsys/system/cmd/type.c +++ b/reactos/subsys/system/cmd/type.c @@ -48,7 +48,7 @@ INT cmd_type (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_TYPE_HELP1); + ConOutResPaging(TRUE,STRING_TYPE_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/ver.c b/reactos/subsys/system/cmd/ver.c index 173403bad04..93a4c040db4 100644 --- a/reactos/subsys/system/cmd/ver.c +++ b/reactos/subsys/system/cmd/ver.c @@ -67,7 +67,7 @@ INT cmd_ver (LPTSTR cmd, LPTSTR param) if (_tcsstr (param, _T("/?")) != NULL) { - ConOutResPuts(STRING_VERSION_HELP1); + ConOutResPaging(TRUE,STRING_VERSION_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/verify.c b/reactos/subsys/system/cmd/verify.c index f6b7f49464b..38ac166b3a9 100644 --- a/reactos/subsys/system/cmd/verify.c +++ b/reactos/subsys/system/cmd/verify.c @@ -34,7 +34,7 @@ INT cmd_verify (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_VERIFY_HELP1); + ConOutResPaging(TRUE,STRING_VERIFY_HELP1); return 0; } diff --git a/reactos/subsys/system/cmd/vol.c b/reactos/subsys/system/cmd/vol.c index 09d7401655d..a8b57c80e7f 100644 --- a/reactos/subsys/system/cmd/vol.c +++ b/reactos/subsys/system/cmd/vol.c @@ -73,7 +73,7 @@ INT cmd_vol (LPTSTR cmd, LPTSTR param) if (!_tcsncmp (param, _T("/?"), 2)) { - ConOutResPuts(STRING_VOL_HELP4); + ConOutResPaging(TRUE,STRING_VOL_HELP4); return 0; } diff --git a/reactos/subsys/system/cmd/window.c b/reactos/subsys/system/cmd/window.c index a7a7cf6abb7..68e502e923a 100644 --- a/reactos/subsys/system/cmd/window.c +++ b/reactos/subsys/system/cmd/window.c @@ -183,7 +183,7 @@ INT CommandWindow (LPTSTR cmd, LPTSTR param) if (_tcsncmp (param, _T("/?"), 2) == 0) { - ConOutResPuts(STRING_WINDOW_HELP1); + ConOutResPaging(TRUE,STRING_WINDOW_HELP1); return 0; } @@ -200,7 +200,7 @@ INT CommandActivate (LPTSTR cmd, LPTSTR param) if (_tcsncmp (param, _T("/?"), 2) == 0) { - ConOutResPuts(STRING_WINDOW_HELP2); + ConOutResPaging(TRUE,STRING_WINDOW_HELP2); return 0; }