Re: how to "wait for any key"
From: Derk Gwen (derkgwen_at_HotPOP.com)
Date: 03/07/04
- Next message: Derk Gwen: "Re: string concatenation"
- Previous message: osmium: "Re: how to "wait for any key""
- In reply to: Alexander Malkis: "how to "wait for any key""
- Next in thread: Alexander Malkis: "Re: how to "wait for any key""
- Reply: Alexander Malkis: "Re: how to "wait for any key""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 07 Mar 2004 16:53:45 -0000
Alexander Malkis <alexloeschediesmalk@line.cs.uni-sb.de> wrote:
# What is the most portable way of "waiting for any key", i.e. the user
# who runs a program from the console should observe the following:
(1) No portable way.
(2) Confuses the hell out of some people. (Where's the ANY key?)
(3) Doesn't invariably work. SHIFT or CTRL, for example, might not send
any codes to the computer. ESC or CTRL-C can break your program.
Just say "Hit enter (or return)" and use fgets. Clear, simple, direct,
portable, and easy enough for nearly everyone.
-- Derk Gwen http://derkgwen.250free.com/html/index.html I think that's kinda of personal; I don't think I should answer that.
- Next message: Derk Gwen: "Re: string concatenation"
- Previous message: osmium: "Re: how to "wait for any key""
- In reply to: Alexander Malkis: "how to "wait for any key""
- Next in thread: Alexander Malkis: "Re: how to "wait for any key""
- Reply: Alexander Malkis: "Re: how to "wait for any key""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|