terminfo inconsistency? - Linux

This is a discussion on terminfo inconsistency? - Linux ; 1 ---- $ echo $TERM linux $ infocmp linux | grep cud csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, $ tput cud 3 && echo "available" || echo "not available" not available $ echo -e "\e[3B"OK OK 2 ---- ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: terminfo inconsistency?

  1. terminfo inconsistency?

    1
    ----

    $ echo $TERM
    linux

    $ infocmp linux | grep cud
    csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
    kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~,

    $ tput cud 3 && echo "available" || echo "not available"
    not available

    $ echo -e "\e[3B"OK



    OK




    2
    ----

    $ echo $TERM
    linux

    $ infocmp linux | grep smul
    smpch=\E[11m, smso=\E[7m, smul=\E[4m, tbc=\E[3g,

    $ tput smul && echo "available" || echo "not available"
    available

    $ tput smul && echo "OK"
    OK <--- not underlined!




    ----

    Is terminfo reliable?

  2. Re: terminfo inconsistency?

    > 2
    > ----
    >
    > $ echo $TERM
    > linux
    >
    > $ infocmp linux | grep smul
    > smpch=\E[11m, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
    >
    > $ tput smul && echo "available" || echo "not available"
    > available
    >
    > $ tput smul && echo "OK"
    > OK <--- not underlined!
    >


    maybe N.2 solved...


    man console_codes


    [...]

    ECMA-48 Set Graphics Rendition
    The ECMA-48 SGR sequence ESC [ m sets display
    attributes.
    Several attributes can be set in the same sequence.

    par result
    0 reset all attributes to their defaults
    1 set bold
    2 set half-bright (simulated with color on a color display)

    -----
    4 set underscore (simulated with color on a color display)
    (the colors used to simulate dim or underline are set
    using ESC ] ...)
    -----


  3. Re: terminfo inconsistency?

    On 2008-10-12, Antonio Macchi wrote:

    > $ echo $TERM
    > linux
    >
    > $ infocmp linux | grep smul
    > smpch=\E[11m, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
    >
    > $ tput smul && echo "available" || echo "not available"
    > available


    > $ tput smul && echo "OK"
    > OK <--- not underlined!


    you gotta turn that hardware feature on - put your console
    into monochrome mode (I forget how this is done, possibly
    svgatextmode can do it, or you may have to do it at boot time)

    > Is terminfo reliable?


    pretty reliable.

    Bye.
    Jasen

+ Reply to Thread