Open-source Languages & Tools for z/OS

 View Only
  • 1.  Clear and TPUT Clear fail

    Posted 06-22-2023 08:24

    The Rocket port of clear fails as does tput clear under TN3270 OMVS yet the IBM provided versions in /bin do work.

    Am I missing something with the Rocket versions?



    ------------------------------
    LionelDyck <><
    https://github.com/zigi
    https://github.com/lbdyck
    ------------------------------


  • 2.  RE: Clear and TPUT Clear fail

    Posted 06-22-2023 08:31

    Hi Lionel, 

    Which version of ncurses are you using? 



    ------------------------------
    Tatiana Balaburkina
    Engineering Manager
    Rocket Internal - All Brands
    ------------------------------



  • 3.  RE: Clear and TPUT Clear fail

    Posted 06-22-2023 08:36

    This is what I found:  

    t ISO8859-1   T=on  -rwxrwxr-x   1 ROCKET   ZOWEDEV     6190 Jan 27 13:46 ncurses6-config  



    ------------------------------
    LionelDyck <><
    https://github.com/zigi
    https://github.com/lbdyck
    ------------------------------



  • 4.  RE: Clear and TPUT Clear fail

    Posted 06-23-2023 06:29
    Edited by Tatiana Balaburkina 06-23-2023 06:29

    Lionel,

    It doesn't seem to be Open AppDev version of ncurses. I tried a few versions (6.1-6.4)  and they work fine on my system. Could you check your version using clear -V command?



    ------------------------------
    Tatiana Balaburkina
    Engineering Manager
    Rocket Internal - All Brands
    ------------------------------



  • 5.  RE: Clear and TPUT Clear fail

    Posted 06-23-2023 07:26
    This is the result of 'clear -v' from Rocket -









    Lionel B. Dyck <><

    Website: <https: www.lbdsoftware.com=""> https://www.lbdsoftware.com

    Github: <https: github.com/lbdyck=""> https://github.com/lbdyck



    "Worry more about your character than your reputation. Character is what you
    are, reputation merely what others think you are." - - - John Wooden




  • 6.  RE: Clear and TPUT Clear fail

    Posted 08-03-2023 05:25

    HI,

    as I had mentioned in some previous private discussion: 

    The ncurses data for a "dumb" terminal do not have an attribute for 'clear', and the default for attributes is an empty string. Adding a '\f' as a attribute fixes the problem.

    Well, if one isable to decompile and recompile, I needed to do this on a linux machine. 



    ------------------------------
    Peter Sylvester
    Guru
    Self Registered
    Antibes FR
    ------------------------------



  • 7.  RE: Clear and TPUT Clear fail

    Posted 11-24-2023 08:20

    One solution to the pb is the following one liner to modify the termcap database:

    infocmp dumb | sed '$ s/$/ clear=\\f,/ '  | tic -

    best



    ------------------------------
    Peter Sylvester
    Guru
    Self Registered
    Antibes FR
    ------------------------------