Giter Club home page Giter Club logo

Comments (4)

grahamperrin avatar grahamperrin commented on May 16, 2024 1

… Please pull and give it a try, it should work well now …

Confirmed, working. Thanks!

from arttime.

poetaman avatar poetaman commented on May 16, 2024 1

@grahamperrin Closing this as scrolling issue is fixed, let's carry forward the discussion about #16 (comment) in the other ticket you filed #18. Its not an arttime bug, it might lead us to patching stale terminal databases being published... Though its very important path to pursue if we want users to not hit such issues, and developers to not bypass term databases and hack around them by embedding escape sequences (like vim, etc) in their applications going forward.

from arttime.

poetaman avatar poetaman commented on May 16, 2024

@grahamperrin Thanks! I got my hands on a FreeBSD 13.1 machine, I'll do the rest... The problem is with assumption that tput accepts both terminfo and termcap names, as can be seen with the documentation of tput that ships with ncurses below. In all the machines I had tested in past, it had ncurses's implementation of tput. Given that assumption is not true for FreeBSD systems prior to 14.0-CURRENT, arttime needs update.

       capname
              indicates the capability from the terminfo database.  When termcap support is compiled
              in, the termcap name for the capability is also accepted.

from arttime.

poetaman avatar poetaman commented on May 16, 2024

@grahamperrin I pushed the fix in same branch oldbsdtput. Please pull and give it a try, it should work well now...

Note: If your termcap does not have capabilities defined, arttime will print errors at launch time with their terminfo names (keep an eye). In base FreeBSD13.0-RELEASE, I get legit errors that certain simple and important capabilities are not defined in default termcap database for xterm-256color/tmux-256color. All the TERMs seem limited compared to their terminfo equivalents. For instance the default terminfo of xterm-256color has capabilities (termcap equivalents in brackets): smcup (ti), rmcup (te), smam (SA), rmam (RA), but termcap database of xterm-256color in FreeBSD has none of those. Similar problem with tmux-256color, though it has smcup (ti), rmcup (te). Such discrepancy in the meaning of xterm-256color, and tmux-256color in default termcap/terminfo database makes it difficult to write portable code. Refer this page for mapping between terminfo and termcap: https://man7.org/linux/man-pages/man5/terminfo.5.html. Unlike terminfo database which I know how to compile and save, I have no clue how to generate a new termcap database .db file after hand-editing these arcane termcap entries for xterm-256color and tmux-256color on FreeBSD13.0-RELEASE.

from arttime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.