Skip to content

Releases: lscalese/IO-Redirect

IO-Redirect V1.0.0

10 Oct 07:57

Choose a tag to compare

Added feature

Echo to the current device

Echo feature allows redirecting the output AND duplicates the write to the current device.
For example, in a terminal :

Do ##class(IORedirect.Redirect).ToString(1)
Write "this an echo test"
Do ##class(IORedirect.Redirect).RestoreIO()
Set outputString = ##class(IORedirect.Redirect).Get()
Write "Var outputString : ", outputString

Redirect the write to a string variable and also write the text in the terminal.
This feature is available with :

  • Do ##class(IORedirect.Redirect).ToString(1)
  • Do ##class(IORedirect.Redirect).ToStream(stream, 1)
  • Do ##class(IORedirect.Redirect).ToFileCharacter(filename, 1)
  • Do ##class(IORedirect.Redirect).ToGlobal($Name(^||IORedirect), 1)

Echo is enabled with the value 1 on the last argument.

IO-Redirect-V0.4.0

27 Mar 17:09

Choose a tag to compare

v0.4.0

sources xml