-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yang Zhang wrote:
| Thanks for prompting me to provide some context.  getpass() is a
| standard POSIX function, described here:
|
| http://www.opengroup.org/pubs/online/7908799/xsh/getpass.html

In that case, you'll need a C extension.

RubyInline is one library that provides that functionality (I assume
portability to non-UNICES is not really a concern ;).

Here are some presentations to using C with Ruby from Ruby conferences:

http://rubyhoedown2007.confreaks.com/session08.html
http://rubyconf2007.confreaks.com/d1t1p6_avoiding_pitfalls_in_c_extensions.html

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan

~ - You know you've been hacking too long when...
...you send E-mail and end each line with \n.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf+5jcACgkQbtAgaoJTgL/0BACdG40D0Q4eI1CgMkXfBmmn92aC
XYwAnAlRdaxQzIJAnV9Visz4MRhPzvTK
=2K16
-----END PGP SIGNATURE-----