Modula-2 || Compiler & Tools || Library || Search Engine


Ulm's Modula-2 Library:
GetPass


NAME

GetPass - read a password

SYNOPSIS

PROCEDURE GetPass(prompt: ARRAY OF CHAR; VAR passwd: ARRAY OF CHAR);

DESCRIPTION

If the stdin is a terminal, Getpass reads a passwd from it; otherwise, the file /dev/tty is opened for this purpose. The string prompt is prompted before the password is read into the array passwd. Normal echoing is disabled. Instead, for each typed character, some random garbage is echoed.

FILES

/dev/tty
Edited by: borchert, last change: 1997/02/25, revision: 1.2, converted to HTML: 1997/04/28

Modula-2 || Compiler & Tools || Library || Search Engine