diff options
author | hm <hm@FreeBSD.org> | 2001-06-05 15:31:47 +0000 |
---|---|---|
committer | hm <hm@FreeBSD.org> | 2001-06-05 15:31:47 +0000 |
commit | 38bd0a538496efabbc16bb3bc52ace9c34ff056f (patch) | |
tree | 0ddc6d0c083ed1e46db1176fe7ece0ac0aae234d /sys/i386/isa/pcvt | |
parent | 308fe00e395bdd996cf7377c77e490e6a4837352 (diff) | |
download | FreeBSD-src-38bd0a538496efabbc16bb3bc52ace9c34ff056f.zip FreeBSD-src-38bd0a538496efabbc16bb3bc52ace9c34ff056f.tar.gz |
PR: i386/26347
Submitted by: Nicola Vitale <nivit@libero.it>
Reviewed by: hm
Fix screen number display in HP mode in case PCVT_NSCREENS > 10
Diffstat (limited to 'sys/i386/isa/pcvt')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_out.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_out.c b/sys/i386/isa/pcvt/pcvt_out.c index c2dc492..e891b4c 100644 --- a/sys/i386/isa/pcvt/pcvt_out.c +++ b/sys/i386/isa/pcvt/pcvt_out.c @@ -42,7 +42,7 @@ * pcvt_out.c VT220 Terminal Emulator * --------------------------------------- * - * Last Edit-Date: [Sun Mar 26 10:43:40 2000] + * Last Edit-Date: [Tue Jun 5 17:27:48 2001] * * $FreeBSD$ * @@ -1903,7 +1903,8 @@ update_hp(struct video_state *svsp) *((svsp->Crtat + ((svsp->screen_rows + 2) * svsp->maxcol)) + svsp->maxcol - 3) = user_attr | '['; *((svsp->Crtat + ((svsp->screen_rows + 2) * svsp->maxcol)) - + svsp->maxcol - 2) = user_attr | (current_video_screen + '0'); + + svsp->maxcol - 2) = user_attr | (current_video_screen + + (current_video_screen < 10 ? '0' : ('a' - 10))); *((svsp->Crtat + ((svsp->screen_rows + 2) * svsp->maxcol)) + svsp->maxcol - 1) = user_attr | ']'; } |