|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Is there a way to clear the screen? |
Date: | Tue, 27 May 2014 18:40:11 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi,
in immediate execution mode you can do: )HOST tput clear which is rather portable. In programs, you can do the same: 'lib_file_io.so' ⎕FX 'FILE_IO' ◊ FILE_IO[25] FILE_IO[24] 'tput clear > /dev/tty' Interestingly the ^L (aka ⎕AV[13]) is printed:: address@hidden:~/projects/juergen/apl-1.3/src$ ./apl > x ... typing blindly ... address@hidden:~/projects/juergen/apl-1.3/src$ vi x ______ _ __ __ __ ___ ____ __ / ____// | / // / / / / | / __ \ / / / / __ / |/ // / / / / /| | / /_/ // / / /_/ // /| // /_/ / / ___ | / ____// /___ \____//_/ |_/ \____/ /_/ |_|/_/ /_____/ Welcome to GNU APL version 1.3 / 6786 Copyright (C) 2008-2014 Dr. Jürgen Sauermann Banner by FIGlet: www.figlet.org This program comes with ABSOLUTELY NO WARRANTY; for details run: ./apl --gpl. This program is free software, and you are welcome to redistribute it according to the GNU Public License (GPL) version 3 or later. ^[[30m^[[47m^[[K ⎕AV[13] ^[[30m^[[48m^[[K^L ^[[30m^[[47m^[[K )off ^[[m^[(B^[[K^[[30m^[[48m^[[K Goodbye. "x" 23L, 1104C 11,24 All If I "cat" the same file then the screen is not cleared. On 05/27/2014 02:46 AM, Elias Mårtenson wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |