FreeBSD Bugzilla – Attachment 16057 Details for
Bug 29601
doscmd INT 10, FNs 0x09,0x0A cause wrong output
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.43 KB, created by
Nils M Holm
on 2001-08-10 12:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Nils M Holm
Created:
2001-08-10 12:40:01 UTC
Size:
1.43 KB
patch
obsolete
>--- /usr/src/usr.bin/doscmd/doscmd.h.org Fri Aug 10 13:28:30 2001 >+++ /usr/src/usr.bin/doscmd/doscmd.h Fri Aug 10 13:26:09 2001 >@@ -278,7 +278,7 @@ > void tty_move(int, int); > void tty_report(int *, int *); > void tty_flush(); >-void tty_index(); >+void tty_index(int); > void tty_pause(); > int tty_peek(REGISTERS, int); > int tty_state(); >--- /usr/src/usr.bin/doscmd/tty.c.org Thu Aug 9 19:03:25 2001 >+++ /usr/src/usr.bin/doscmd/tty.c Fri Aug 10 13:25:35 2001 >@@ -1586,7 +1586,7 @@ > } > > void >-tty_index() >+tty_index(int scroll) > { > int i; > >@@ -1594,9 +1594,11 @@ > row = 0; > else if (++row >= height) { > row = height - 1; >- memcpy(vmem, &vmem[width], 2 * width * (height - 1)); >- for (i = 0; i < width; ++i) >- vmem[(height - 1) * width + i] = vattr | ' '; >+ if (scroll) { >+ memcpy(vmem, &vmem[width], 2 * width * (height - 1)); >+ for (i = 0; i < width; ++i) >+ vmem[(height - 1) * width + i] = vattr | ' '; >+ } > } > SetVREGCur(); > } >@@ -1639,19 +1641,19 @@ > col = (col + 8) & ~0x07; > if (col > width) { > col = 0; >- tty_index(); >+ tty_index(1); > } > break; > case '\r': > col = 0; > break; > case '\n': >- tty_index(); >+ tty_index(1); > break; > default: > if (col >= width) { > col = 0; >- tty_index(); >+ tty_index(1); > } > if (row > (height - 1)) > row = 0; >@@ -1676,7 +1678,7 @@ > while (n--) { > if (col >= width) { > col = 0; >- tty_index(); >+ tty_index(0); > } > if (row > (height - 1)) > row = 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 29601
: 16057