chickadee » stty » with-stty

with-stty '(setting ...) thunkprocedure

Sets the terminal attributes with STTY, evaluates THUNK, then restores the original attributes and returns the value from THUNK.

Example:

  (define (read-password prompt)
    (display prompt)
    (with-stty '(not echo) read-line))