summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-11-01 22:15:15 +0000
committerjhb <jhb@FreeBSD.org>2004-11-01 22:15:15 +0000
commita9860ec891d255363fab82ffc00c1be83f7d857c (patch)
tree2d51ddc5baf115819b8b07497742acacc8965e22 /sys/pc98
parent28f5ed05c5d8e2b6e4fbadf576613fdcc0f27676 (diff)
downloadFreeBSD-src-a9860ec891d255363fab82ffc00c1be83f7d857c.zip
FreeBSD-src-a9860ec891d255363fab82ffc00c1be83f7d857c.tar.gz
- Change the ddb paging "support" to use a variable (db_lines_per_page) to
control the number of lines per page rather than a constant. The variable can be examined and changed in ddb as '$lines'. Setting the variable to 0 will effectively turn off paging. - Change db_putchar() to force out pending whitespace before outputting newlines and carriage returns so that one can rub out content on the current line via '\r \r' type strings. - Change the simple pager to rub out the --More-- prompt explicitly when the routine exits. - Add some aliases to the simple pager to make it more compatible with more(1): 'e' and 'j' do a single line. 'd' does half a page, and 'f' does a full page. MFC after: 1 month Inspired by: kris
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/i386/machdep.c2
-rw-r--r--sys/pc98/pc98/machdep.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index e13d506..83abbb3 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -1496,7 +1496,7 @@ DB_SHOW_COMMAND(idt, db_show_idt)
uintptr_t func;
ip = idt;
- db_setup_paging(db_simple_pager, &quit, DB_LINES_PER_PAGE);
+ db_setup_paging(db_simple_pager, &quit, db_lines_per_page);
for (idx = 0, quit = 0; idx < NIDT; idx++) {
func = (ip->gd_hioffset << 16 | ip->gd_looffset);
if (func != (uintptr_t)&IDTVEC(rsvd)) {
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index e13d506..83abbb3 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -1496,7 +1496,7 @@ DB_SHOW_COMMAND(idt, db_show_idt)
uintptr_t func;
ip = idt;
- db_setup_paging(db_simple_pager, &quit, DB_LINES_PER_PAGE);
+ db_setup_paging(db_simple_pager, &quit, db_lines_per_page);
for (idx = 0, quit = 0; idx < NIDT; idx++) {
func = (ip->gd_hioffset << 16 | ip->gd_looffset);
if (func != (uintptr_t)&IDTVEC(rsvd)) {
OpenPOWER on IntegriCloud