Re: Programmstart nach Login

From: Alexander Langer <alex(at)big.endian.de>
Date: Sat, 23 Dec 2000 18:01:47 +0100

Thus spake Udo Erdelhoff (ue(at)nathan.ruhr.de):

> > - Wie kann ich Tasten(-kombinationen) wie ctrl-c oder den Affengriff
> > per Skript oder in einem C-Programm abstellen ??
> Für ctrl-c würde mal auf stty setzen - es gibt da ignbrk (ignore break)
> und brkint (send break on interrupt). Das sollte helfen, ich habe es
> allerdings nicht ausprobiert.

Ah, wieder was gelernt. =)
Ich hatte stty immer nur fuer noecho benutzt, aber den Weg, über stty
das im Shell-Programm zu disablen finde ich cool :)

alex:~ $ stty -isig
alex:~ $ sleep 10
^C^C^C^C^C^C^C^C^C^C^C^C
^C
alex:~ $

alex:~ $ stty isig
alex:~ $ sleep 10
^C
alex:~ $

Alex

-- 
cat: /home/alex/.sig: No such file or directory
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sat 23 Dec 2000 - 18:02:25 CET

search this site