Login
You're viewing the ruby.social public feed.
  • Apr 4, 2024, 10:21 AM

    By the way, if there happens to be a #ncurses or #terminfo expert out there, I got a question for you.

    What's the "right" way of sending the capabilities as there are global variables and things extracted with tgetstr(capname)

    As far as I can tell, putp(clear_screen);
    is identical to
    c = tgetstr("cl",&ap); putp(c);

    The clear_screen and cl values coming from terminfo(5).

    The answer isn't "use the real ncurses functions" unless you can punt 256 colours (fg and bg) through.

    💬 0🔄 0⭐ 0