crmode

crmode()
Class Public methods

Put the terminal into cbreak mode.

Normally, the tty driver buffers typed characters until a newline or carriage return is typed. The ::cbreak routine disables line buffering and erase/kill character-processing (interrupt and flow control characters are unaffected), making characters typed by the user immediately available to the program.

The ::nocbreak routine returns the terminal to normal (cooked) mode.

Initially the terminal may or may not be in cbreak mode, as the mode is inherited; therefore, a program should call ::cbreak or ::nocbreak explicitly. Most interactive programs using curses set the cbreak mode. Note that ::cbreak overrides ::raw.

see also ::raw

doc_ruby_on_rails
2015-04-02 06:11:10
Comments
Leave a Comment

Please login to continue.