[prev in list] [next in list] [prev in thread] [next in thread]
List: aix-l
Subject: Re: Checking if space-bar pressed..
From: "Ing. Pavel Kafka" <Pavel.Kafka () DYTRON ! CZ>
Date: 1998-10-30 12:09:34
[Download RAW message or body]
use '\020012' instead of `\020012`
-----Původní zpráva-----
Od: David Tansley <David.Tansley@ACELONDON.CO.UK>
Komu: Multiple recipients of list AIX-L <AIX-L@PUCC.BITNET>
Datum: 30. října 1998 12:29
Předmět: Checking if space-bar pressed..
>Hi,
>
>I' trying to do a little function that'll test if the 'space-bar'
>has been pressed.
>
>According to the od command it's oct value is..
>0000000 020012
>which is..
>0200 = <space bar>
>12 = <cr>
>
>So I thought something quick & dirty like this would work...
> read carryon
> case ?carryon in
> `\020012`) echo "space bar"
> ;;
> *) echo " rubbish... ?carryon"
> ;;
> esac
>
>The oct code seems to catch 'ALL' control keys pressed ( F1 , F8 and space bar)
>!!!!
>But I get this err
>.readch[4]: 020012: not found
>
>All normal char input is ignored which is good and gets chucked out.
>
>Any idea's what I doing wrong.!..
>
>Thanks...
>Dave.T
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic