Allow pressing 'p' to disable paging during boot debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29169 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -125,7 +125,7 @@ next_line(void)
|
|||||||
// output
|
// output
|
||||||
const char *text = in_command_invocation()
|
const char *text = in_command_invocation()
|
||||||
? "Press key to continue, Q to quit, S to skip output"
|
? "Press key to continue, Q to quit, S to skip output"
|
||||||
: "Press key to continue, Q or S to skip output";
|
: "Press key to continue, S to skip output, P to disable paging";
|
||||||
int32 length = strlen(text);
|
int32 length = strlen(text);
|
||||||
if (sScreen.x + length > sScreen.columns) {
|
if (sScreen.x + length > sScreen.columns) {
|
||||||
// make sure we don't overwrite too much
|
// make sure we don't overwrite too much
|
||||||
@@ -142,10 +142,11 @@ next_line(void)
|
|||||||
char c = blue_screen_getchar();
|
char c = blue_screen_getchar();
|
||||||
if (c == 's') {
|
if (c == 's') {
|
||||||
sScreen.ignore_output = true;
|
sScreen.ignore_output = true;
|
||||||
} else if (c == 'q') {
|
} else if (c == 'q' && in_command_invocation()) {
|
||||||
abortCommand = in_command_invocation();
|
abortCommand = true;
|
||||||
sScreen.ignore_output = true;
|
sScreen.ignore_output = true;
|
||||||
}
|
} else if (c == 'p' && !in_command_invocation())
|
||||||
|
sScreen.paging = false;
|
||||||
|
|
||||||
// remove on screen text again
|
// remove on screen text again
|
||||||
sModule->fill_glyph(sScreen.columns - length, sScreen.y, length,
|
sModule->fill_glyph(sScreen.columns - length, sScreen.y, length,
|
||||||
|
|||||||
Reference in New Issue
Block a user