password-style input on the command-line in haskell

An interesting and potentially useful bit of haskell: read input from the user on the command line and emit only "*", in the password style.

The screen will be cleared immediately after the pw is written to stdout... I just included these functions as a way of illustrating the use of the ANSI console functions.

gist

last update 2011-05-08