Module: Doing::PromptSTD

Included in:
Prompt
Defined in:
lib/doing/prompt/std.rb

Overview

STDOUT and STDERR methods

Instance Method Summary collapse

Instance Method Details

#clear_screen(msg = nil) ⇒ Object

Clear the terminal screen

#restore_stdObject

Restore silenced STDOUT and STDERR

#silence_std(file = '/dev/null') ⇒ Object

Redirect STDOUT and STDERR to /dev/null or file

Parameters:

  • file (String) (defaults to: '/dev/null')

    a file path to redirect to