nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] colorized/highlighted scan output?

2012-11-03 09:24:45
ralph wrote:
Hi Paul,

why do scan and inc already link against termcap?

    $ ltrace -l /lib/libncurses.so.5 scan -clear last >/dev/null
    tgetent(0, 0x7fff5bd4348c, 2, 2, 0x414e40)                               
                                                                          = 1
    tgetflag(0x414e45, 0xffffff80, 0, 4352, 0x7f14cf209580)                  
                                                                          = 0
    tgetnum(0x414e4b, 0x414e45, 1, 5, 0x7f14cf205490)                        
                                                                          = 
60
    tgetstr(0x414e4e, 0x7fff5bd3fe78, 60, 11, 0)                             
                                                                          = 
0x623300
    tgetstr(0x414e51, 0x7fff5bd3fe78, 65408, 0, 0x623300)                    
                                                                          = 0
    tgetnum(0x41554d, 0x414e51, -1, 17, 0)                                   
                                                                          = 
0xffffffff
    tgetstr(0x414af0, 0x7fff5bd3fe78, 65535, 13, 0)                          
                                                                          = 
0x623308
    tgetstr(0x414e54, 0x7fff5bd3fe78, 57344, 8, 0x623308)                    
                                                                          = 
0x62330e
    +++ exited (status 0) +++
    $

I'm guessing inc(1) suffers from using scan's functions even though it
has no -clear itself.

thanks.  didn't know about "-clear".

paul
=---------------------
 paul fox, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma, 
where it's 43.0 degrees)

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>