home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!vnet.ibm.com
- From: pmuellr@vnet.ibm.com (Pat Mueller)
- Message-ID: <19921217.074053.65@almaden.ibm.com>
- Date: Thu, 17 Dec 92 10:37:44 EST
- Newsgroups: comp.lang.rexx
- Subject: Prompt for invisible input
- Lines: 23
-
- >to do a pull to read the imput from the keyboard
- >and i don't want that imput appears on the screen.
- >can you help me?
- >thanks.
-
- On OS/2 you can cheat with ANSI control codes - make the foreground
- and background the same before prompting the user - the stuff they
- type in will be 'invisible' (blocks of arbitrary color). Here's an
- example:
-
- /* */
- whiteOnWhite = d2c(27) || "[47;37m"
- whiteOnBlack = d2c(27) || "[47;30m"
-
- call charout , "Enter a line: " || whiteOnWhite
- line = linein("STDIN:")
- say whiteOnBlack || "received ->" line
-
- In case they don't translate well, | is vertical bar, [ is left bracket
-
- Patrick Mueller
- Programming Systems
- IBM Cary, NC
-