[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ProgSoc] seeking another perl of wisdom or wisdom of perl




`stty raw`;
getc;
`stty cooked`;

THat should turn off buffering for the getc command. There's prolly a
nicer way to do it using some environment commands but I can't remmeber
them or be bothered to work them out.

> Quoting James Wan <jwan@nospam.sandpit.law.uts.edu.au>:
> 
> > print "press y to continue\n";
> > getc;
> > 
> doesn't work, getc uses buffered stream so requires Enter to be pressed as well. 
> I guess I am looking for some way to get around the buffering of STDIN
> 
> --
> Adam Greaves,
>   adamg@nospam.techie.com   **   www.dot.net.au/~theos   **   ICQ: 43630472
> 
> "And when the centurion, who stood there in front of Jesus, heard his cry and
> saw how he died, he said 'Surely this man was the Son of God'" - Mark 15:39
> --
> You are subscribed to the progsoc mailing list. To unsubscribe, send a
> message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
> If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.
> 
> This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>
> 

\/|<

Victor Rajewski

vik@nospam.progsoc.uts.edu.au
http://www.progsoc.uts.edu.au/~vik
PGP: http://www.progsoc.uts.edu.au/~vik/pgp.txt


--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.

This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>