Method: CLI::UI.enable_cursor?
- Defined in:
- lib/cli/ui.rb
.enable_cursor? ⇒ Boolean
Check whether cursor control is enabled in Formatter, Frame, and Spinner output. By default, cursor control is enabled when STDOUT is a TTY; that is, when output has not been directed to another program or to a file.
: -> bool
312 313 314 |
# File 'lib/cli/ui.rb', line 312 def enable_cursor? @enable_cursor end |