Get password Or no echo

I looked at the IOConsole.tar that was posted last time, I don't think
i can change every computer I would want to use this on. I have tried
to come up with code in ruby that i could just include, but it looks
like the get calls are limiting me. Is there any one that knows ruby
well enough to produce ruby code to not output what a user types, or
to mask it with * like a password field?

Make this a ruby quiz!!

Thank you :slight_smile:
Becker

http://raa.ruby-lang.org/project/ruby-password/

-a

路路路

On Thu, 28 Oct 2004, ruby talk wrote:

I looked at the IOConsole.tar that was posted last time, I don't think
i can change every computer I would want to use this on. I have tried
to come up with code in ruby that i could just include, but it looks
like the get calls are limiting me. Is there any one that knows ruby
well enough to produce ruby code to not output what a user types, or
to mask it with * like a password field?

Make this a ruby quiz!!

Thank you :slight_smile:
Becker

--

EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
PHONE :: 303.497.6469
When you do something, you should burn yourself completely, like a good
bonfire, leaving no trace of yourself. --Shunryu Suzuki

===============================================================================

sorry, cant get termios.h to be found on my windows system. Is this
file linux only?
Becker

路路路

On Thu, 28 Oct 2004 08:44:04 +0900, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:

On Thu, 28 Oct 2004, ruby talk wrote:

> I looked at the IOConsole.tar that was posted last time, I don't think
> i can change every computer I would want to use this on. I have tried
> to come up with code in ruby that i could just include, but it looks
> like the get calls are limiting me. Is there any one that knows ruby
> well enough to produce ruby code to not output what a user types, or
> to mask it with * like a password field?
>
> Make this a ruby quiz!!
>
> Thank you :slight_smile:
> Becker

http://raa.ruby-lang.org/project/ruby-password/

-a
--

> EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
> PHONE :: 303.497.6469
> When you do something, you should burn yourself completely, like a good
> bonfire, leaving no trace of yourself. --Shunryu Suzuki

sorry, cant get termios.h to be found on my windows system. Is this
file linux only?
Becker

probably - as far as i know that is no portable way to manipulate the terminal
- hopefully i am wrong

-a

I looked at the IOConsole.tar that was posted last time, I don't think
i can change every computer I would want to use this on. I have tried
to come up with code in ruby that i could just include, but it looks
like the get calls are limiting me. Is there any one that knows ruby
well enough to produce ruby code to not output what a user types, or
to mask it with * like a password field?

Make this a ruby quiz!!

Thank you :slight_smile:
Becker

http://raa.ruby-lang.org/project/ruby-password/

-a
--

> EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
> PHONE :: 303.497.6469
> When you do something, you should burn yourself completely, like a good
> bonfire, leaving no trace of yourself. --Shunryu Suzuki

-a

路路路

On Thu, 28 Oct 2004, ruby talk wrote:

On Thu, 28 Oct 2004 08:44:04 +0900, ara.t.howard@noaa.gov > <ara.t.howard@noaa.gov> wrote:

On Thu, 28 Oct 2004, ruby talk wrote:

--

EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
PHONE :: 303.497.6469
When you do something, you should burn yourself completely, like a good
bonfire, leaving no trace of yourself. --Shunryu Suzuki

===============================================================================

ruby talk <rubytalk@gmail.com> wrote in message news:<25094bf70410271920ca89b14@mail.gmail.com>...

sorry, cant get termios.h to be found on my windows system. Is this
file linux only?
Becker

try this for windows: (im sure I got some of this code from this list,
so thanks to whoever posted it originaly)

require 'Win32API'

kbhit = Win32API.new("crtdll", "_kbhit", [], 'L')
getch = Win32API.new("crtdll", "_getch", [], 'L')

while (1)
聽聽聽聽a = getch.Call if kbhit.Call != 0
聽聽聽聽if a
聽聽聽聽聽聽聽聽print '*'
聽聽聽聽聽聽聽聽a = nil
聽聽聽聽end
聽聽聽聽sleep 0.1
end