Skip to main content
Lionel Dyck
Participating Frequently
Jun 22, 2023 8:24 AM UTC

Clear and TPUT Clear fail

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
------------------------------

    6 replies

    Tatiana Balaburkina
    Rocketeer
    Jun 22, 2023 8:31 AM UTC

    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
    ------------------------------

    Hi Lionel, 

    Which version of ncurses are you using? 



    ------------------------------
    Tatiana Balaburkina
    Engineering Manager
    Rocket Internal - All Brands
    ------------------------------
    Lionel Dyck
    Participating Frequently
    Jun 22, 2023 8:36 AM UTC

    Hi Lionel, 

    Which version of ncurses are you using? 



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

    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
    ------------------------------
    Tatiana Balaburkina
    Rocketeer
    Jun 23, 2023 6:29 AM UTC

    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
    ------------------------------

    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
    ------------------------------

    Lionel Dyck
    Participating Frequently
    Jun 23, 2023 7:26 AM UTC

    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
    ------------------------------

    This is the result of 'clear -v' from Rocket -









    Lionel B. Dyck <><

    Website: https://www.lbdsoftware.com

    Github: 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
    New Participant
    Aug 2, 2023 6:15 PM UTC

    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
    ------------------------------

    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
    ------------------------------
    New Participant
    Nov 24, 2023 8:20 AM UTC

    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
    ------------------------------

    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
    ------------------------------