home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / informix / 2756 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!emory!not-for-mail
  2. From: jparker@hpbs2776.boi.hp.com (Jack Parker)
  3. Newsgroups: comp.databases.informix
  4. Subject: Invisible entry
  5. Date: 18 Dec 1992 12:48:13 -0500
  6. Organization: Mailing List Gateway
  7. Lines: 50
  8. Sender: walt@mathcs.emory.edu
  9. Distribution: world
  10. Message-ID: <1gt2stINN6c0@emory.mathcs.emory.edu>
  11. Reply-To: jparker@hpbs2776.boi.hp.com (Jack Parker)
  12. NNTP-Posting-Host: emory.mathcs.emory.edu
  13. X-Informix-List-ID: <list.1724>
  14.  
  15. > I couldn't think of a better way to phase this. I have a form that
  16. > is basically an opening screen that asks for Employee Id and password.
  17. > In 4gl 4.0 how do I make it so the user DOESN'T see what they type as the enter
  18. > their password. I like to be able to do it in the form. 
  19. > I try setting color attribute = invisible. I think I am may be confused as
  20. > to what that attribute does. What does invisible mean? It is available
  21. > attribute for display and prompt.
  22. >                 Thanks,
  23. >                     Ceci
  24.  
  25. in the form:
  26.  
  27. f001=passwd, invisible;
  28.  
  29. OR in 4gl:
  30.  
  31. INPUT passwd FROM screen.passwd ATTRIBUTE(INVISIBLE) or (BLACK)
  32.  
  33. But all of this is pointless if the terminal in question does not have
  34. a supporting termcap entry that defines invisible.  This would be the entry
  35. for 'mk' in termcap or 'invis' in terminfo.  If you're code still doesn't
  36. work, check those.  You can check terminfo from the command line by doing:
  37.  
  38. a=`tput invis`
  39. echo $a"this is a test"
  40. you should get a blank line.  (to see if that works do the same thing)
  41.                   (with smso (a=`tput smso`) this should give)
  42.                   (a highlighted (maybe reversed) string, all)
  43.                   (depends on your terminfo)
  44.  
  45. To check what you are currently using as a terminfo $TERM do:
  46.  
  47. untic    (prints definition for your current $TERM)
  48.  
  49. To use terminfo instead of termcap (warning terminfo doesn't do color),
  50. set INFORMIXTERM=terminfo. (default is termcap).
  51.  
  52. Write bAck with questIons, i'm sure I've conFused me.
  53.  
  54. lotsa luck,
  55.     j.
  56. _____________________________________________________________________________
  57. Jack Parker - Contractor               | 
  58. Hewlett Packard, BSMC Boise, Idaho, USA|     I've forgotten more than
  59. jparker@hpbs2651.boi.hp.com            |           I ever knew
  60. (208) 323-5388 (W)  (208) 384-1623 (H) |
  61. _____________________________________________________________________________
  62.