tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libcurses almost working with libterminfo



Thomas Dickey wrote:
On Sat, Sep 26, 2009 at 09:52:07PM +0100, Roy Marples wrote:
Roy Marples wrote:
I've also prepared a patch for libcurses to use libterminfo [2].
This sort of works. It doesn't crash, but it also doesn't behave entirely correctly. For example, vi editing /etc/fstab the END key fails to work (screen flashes, case changes).
OK, new libterminfo that maps NetBSD (I assume) key extensions onto

You're apparently referring to

        /* NetBSD extensions */
        { "@0", TICODE_kfnd },
        { "@1", TICODE_kbeg },
        { "@2", TICODE_kcan },
        { "@3", TICODE_kclo },
        { "@4", TICODE_kcmd },
        { "@5", TICODE_kcpy },
        { "@6", TICODE_kcrt },
        { "@7", TICODE_kend },
        { "@8", TICODE_kent },
        { "@9", TICODE_kext },

The terminfo manpage documents these (selecting the "@[0-9]" lines):

       key_beg                       kbeg       @1        begin key
       key_cancel                    kcan       @2        cancel key
       key_close                     kclo       @3        close key
       key_command                   kcmd       @4        command key
       key_copy                      kcpy       @5        copy key
       key_create                    kcrt       @6        create key
       key_end                       kend       @7        end key
key_enter kent @8 enter/send key key_exit kext @9 exit key
       key_find                      kfnd       @0        find key

I was going by this document http://opengroup.org/onlinepubs/007908775/xcurses/terminfo.html where @* isn't listed as termcap codes, so I assumed they are NetBSD extensions.

Are they commonly used by other termcap implementations? If so, I'll remove the comment.

Thanks

Roy



Home | Main Index | Thread Index | Old Index