Output.redirected

Is this device redirected?

  1. bool redirected()
    class Output
    final
    bool
    redirected
    ()
  2. Output redirected(bool yes)

Return Value

Type: bool

True if redirected, false otherwise.

Remarks: Reflects the console redirection status.

Meta