Re: Terminal Emulation program for Linux

H. Peter Anvin (hpa@freya.yggdrasil.com)
13 Feb 1996 23:25:47 GMT


Followup to: <Pine.SUN.3.91.960213102655.15942D-100000@panix.com>
By author: Harvey Fishman <fishman@panix.com>
In newsgroup: linux.dev.kernel
>=20
> Yup, that is exactly what I meant. Reading the discussion here that =
this
> engendered (and some ancillary threads) has shown me much of how to d=
o this
> (THANKS guys!!!!) - a script to pipe /dev/vcsax through a suitable fi=
lter
> to lpr - but there are still two points that I do not see. The first
> should be real easy - how can I tell which is the current virtual con=
sole?
>=20

Don't bother. Access /dev/vcsa which is the current virtual console.

> The second is probably a bit more difficult - how do I bind my script=
to a
> "Hot-Key" - the Print-Screen key? I have done some things with KeyMa=
ps - I
> added about 60 more bindable keys to my emacs with some real kluges, =
so I
> do understand a little bit what is happening there, but I do not see =
how to
> tie a key-press to a program. Thanks for any pointers here.

I think you can use the Spawn_Console feature as was explained a
little while ago here.

-hpa
--=20
PGP public key available - finger hpa@terminus.storm.net
"The earth is but one country, and mankind its citizens." -- Bah=E1'u=
'll=E1h
I don't work for Yggdrasil, but they sponsor the linux.* hierarchy.