Sha256: f2f440e93141a157bbfc9b2119c6082c9d023d05d4eb0bec0756b18825a8c241
Contents?: true
Size: 279 Bytes
Versions: 7
Compression:
Stored size: 279 Bytes
Contents
# to input secretly [ruby-list:15968] require 'termios' $stdin.extend Termios oldt = $stdin.tcgetattr newt = oldt.dup newt.lflag &= ~Termios::ECHO $stdin.tcsetattr(Termios::TCSANOW, newt) print "noecho> " a = $stdin.gets $stdin.tcsetattr(Termios::TCSANOW, oldt) print "\n" p a
Version data entries
7 entries across 7 versions & 3 rubygems