Help for this page

Select Code to Download


  1. or download this
    use Win32::CONSOLE::ANSI;        # (This is only required in Windows)
    print "\e[H\e[J\n";              # Escape-H "homes" the cursor
                                     # Escape-J clears to end-of-screen
    
  2. or download this
    print "\e[K";                    # Clear to end-of-line
    printf "\e[%d;%dH", $row, $col;  # Positions cursor at given row & col
    +umn