Re: pasting arbitrary input to consoles

Brian Craft (bcboy@thecraftstudio.com)
Thu, 27 Dec 2001 16:28:41 -0800


On Thu, Dec 27, 2001 at 03:51:57PM -0700, Andreas Dilger wrote:
> Well, you could also make the voice-aware shell as the default shell for
> a given user

Interesting idea, though you'd need to auto login one of the consoles (since
the shell won't be up at the login prompt).

> For X you could also make the voice recognition system an input method

We're currently using the XTest extension, which works well. There are a number
of techniques you can use for X.

I just wrote a proof-of-concept for a truly hideous console solution:

o Read the first line of /dev/vcs0
o Write the to-be-pasted text to /dev/vcs0
o Select the text via ioctl on /dev/tty0
o Restore the first line of /dev/vcs0
o Paste via ioctl on /dev/tty0

Hehehe. It works. And it's good just for the gross-out value.

Thanks,
b.c.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/