summaryrefslogtreecommitdiff
path: root/rawcon.inc
diff options
context:
space:
mode:
authorhpa <hpa>2005-01-04 22:17:17 +0000
committerhpa <hpa>2005-01-04 22:17:17 +0000
commit0f5815800c602279e8a764441a16fd5478c0f387 (patch)
treec920ee4220350d5f721f34241a0cf002c32e94d1 /rawcon.inc
parent10ae4b4ddda70fd165620864591886a8810d4be0 (diff)
downloadsyslinux-0f5815800c602279e8a764441a16fd5478c0f387.tar.gz
New CONSOLE directive to enable/disable the video console.syslinux-3.02-pre3
Diffstat (limited to 'rawcon.inc')
-rw-r--r--rawcon.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/rawcon.inc b/rawcon.inc
index 87e69fa8..9f02e4f2 100644
--- a/rawcon.inc
+++ b/rawcon.inc
@@ -13,6 +13,9 @@ writechr:
pop ds
call write_serial ; write to serial port if needed
pushfd
+ test byte [DisplayCon],01h ; Write to screen?
+ jz .nothing
+
pushad
mov bh,[BIOS_page]
push ax
@@ -43,6 +46,7 @@ writechr:
mov ah,02h ; Set cursor position
int 10h
.ret: popad
+.nothing:
popfd
pop ds
ret