tech-userlevel archive

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

Re: libcurses almost working with libterminfo



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

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Attachment: pgpKw6r2kcaAF.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index