Re: /dev/vsc* permissions (was: Re: Spawn_Console)

Harvey Fishman (fishman@panix.com)
Sun, 18 Feb 1996 10:58:42 -0500 (EST)


Since the topic of print-screen seems to be a continuing topic here among
"the pros", I don't feel too guilty about asking some more questions. I
have it working using the vcsa and keytable facilities, but still have at
least two rough edges.

First, and probably quite easy, how can I tell what character set the
console screen is currently using so that I can direct my printer (HP 5MP)
to use that for this job? I have the printer set to CP437 by default, but
it has lots of other choices.

Second, and much more of a thorn - using the keytable to marry a script to
a key causes the scriptname to appear and scroll the screen one line before
the print job takes place. This loses the top line of the original screen
image that I wanted to print. Is there any way for the script to be called
from a hot-key without this? One way that occurs to me is to dig into that
vcsa code and replicate the parts of it that grab the screen image in my
code, but move the window up one line. This certainly seems possible to me
at a distance, but it sure doesn't sound efficient or particularly portable.
Is there a better way? Thanks.

Harvey

----------------------------------------------------------------------------
Harvey Fishman |
fishman@panix.com | Sum, ergo cogito.
718-258-7276 |