ansi_clear_screen Function

public pure function ansi_clear_screen() result(seq)

Clear the whole screen and home the cursor.

Arguments

None

Return Value character(len=:), allocatable


Source Code

   pure function ansi_clear_screen() result(seq)
      !! Clear the whole screen and home the cursor.
      character(len=:), allocatable :: seq

      seq = CSI//"2J"//CSI//"H"
   end function ansi_clear_screen