Re: OT: Debian for infants

2001-04-09 Thread Scott_Patterson
It's a little off-topic, but, the orginial request was made on this list and
several people were interested in it. So, I created it. It's called babytouch
and you can get it at http://members.accesstoledo.com/patterson. It's only
available as source so you'll need C and SDL development stuff to compile it.
Runs fullscreen!

Scott



I would like to write a little program or two for the entertainment of my 18
month old daughter as she really likes banging around on the keyboard (or
sometimes playing with the trackball mouse.

Can anybody tell me how to get keyboard input onto the root window to be
re-directed into the stdin for a shell script, as I want to start up by
making the screen change colours depending on what key she presses.

Thanks in anticipation




Re: Debian for infants.

2001-04-08 Thread Felix Natter
Kieren Diment [EMAIL PROTECTED] writes:

 I would like to write a little program or two for the entertainment of my 18
 month old daughter as she really likes banging around on the keyboard (or
 sometimes playing with the trackball mouse.
 
 Can anybody tell me how to get keyboard input onto the root window to be
 re-directed into the stdin for a shell script, as I want to start up by
 making the screen change colours depending on what key she presses.

there is a debian-junior project. you might want to contribute your program.


-- 
Felix Natter



Re: Debian for infants.

2001-04-06 Thread Sebastiaan
Hi,

On Fri, 6 Apr 2001, Kieren Diment wrote:

 I would like to write a little program or two for the entertainment of my 18
 month old daughter as she really likes banging around on the keyboard (or
 sometimes playing with the trackball mouse.
 
 Can anybody tell me how to get keyboard input onto the root window to be
 re-directed into the stdin for a shell script, as I want to start up by
 making the screen change colours depending on what key she presses.
 
Is it not easy to write a simple C program? stdin and stdout are the main
parts. Just wait for a keypress, then with a case statement you can fill
the screen with blank (coloured) characters?

Maybe not the trivial way, though.


Greetz,
Sebastiaan

 Thanks in anticipation
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 
 



Re: Debian for infants.

2001-04-06 Thread Tiarnan O'Corrain
Sounds like a really cool idea... perhaps you could assign
events to key presses and mouse movements in your window
manager, though redirecting to stdin is a more elegant idea.

Could you make the program available when you've finished it?

Cheers

Tiarnan


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: Debian for infants

2001-04-06 Thread Tiarnan O'Corrain
XGrabKeyboard, according to its description, actively
grabs control of the keyboard and generates FocusIn and
FocusOut events. Further key events are reported only
to the grabbing client... 

Might be some help

Tiarnan





__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: Debian for infants

2001-04-06 Thread Scott_Patterson



I would like to write a little program or two for the entertainment of my 18
month old daughter as she really likes banging around on the keyboard (or
sometimes playing with the trackball mouse.

Can anybody tell me how to get keyboard input onto the root window to be
re-directed into the stdin for a shell script, as I want to start up by
making the screen change colours depending on what key she presses.

Thanks in anticipation

Good idea.

Here's two approaches I can think of...

1. Use curses to read each character without hitting ENTER. Then, run a
system(xsetroot color) to switch the root windows color.

2. A much better method would be to use SDL (http://www.libsdl.org). Start the
program in fullscreen and key presses will change the screen color. It should
run much faster with this method and that's all your little girl will see is one
color on the monitor (no window manager stuff). You could even display images
depending on the character input (ex: A=apple, ant) or play sounds. Of course
what would you use for non-character keys (space bar, enter, brackets)?!?

Hey, I really like this idea; so much, that I'm going to write it myself!

Scott





Debian for infants.

2001-04-05 Thread Kieren Diment
I would like to write a little program or two for the entertainment of my 18
month old daughter as she really likes banging around on the keyboard (or
sometimes playing with the trackball mouse.

Can anybody tell me how to get keyboard input onto the root window to be
re-directed into the stdin for a shell script, as I want to start up by
making the screen change colours depending on what key she presses.

Thanks in anticipation