ansicon: handle the disabled case properly
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 20 Mar 2009 20:43:11 +0000 (13:43 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 20 Mar 2009 20:43:11 +0000 (13:43 -0700)
commit22cd4e378e3aafd402f43030941d6f6b300d0cea
treeed4ed22984b4d82fd652f6a4580ff8288b52c9bf
parentec90083cc6f7513d68807e19f893dbb27d2a45aa
ansicon: handle the disabled case properly

Even when disabled, we need to set the screen size, because the
downstream code depends on it.  Set it to 25x80 (maybe we should
swtich this is 24x80) in this case.

Furthermore, when disabled, we should return success == bytes
"written", not zero.
com32/lib/sys/ansicon_write.c