[w3m-dev 03947] Re: CUF sequence from w3m?

Fumitoshi UKAI <[email protected]>
Newsgroups gmane.comp.web.w3m.devel
Organization Debian JP Project
Message-ID <[email protected]>
At Thu, 7 Aug 2003 19:43:47 +0900,
Takeshi Yanagisawa wrote:
> 
> Yanagisawa 
> 
>  w3m 
> 
> 
> w3m  terminal emulator 
>  VT-100  CUF Cursor Forward
>  ESC [ C 
> w3m 
> 
> 
> 
>   1) w3m  CUF 
>      .... ?
>      CUF 
>      
>   2) CUF ?

terminfo(5) 
       cursor_right                  cuf1       nd        non-destructive
                                                          space (move right
                                                          one space)


> 
> w3m  "Windows XP"  "Windows" "ESC [ C" "XP" 
>  ESC [ C 
> 
>  ESC [ C 
> 
> 
>  "AAAAAAAAAA"  "Windows" "ESC [ C" "XP"
>  "WindowsAXP" 



>  "Windows XP" 
> 


 
>  VT-100  termianl emulator 
>  w3m-0.4.1 
>  space bar 
> 
> 
> kterm (?)
> CUF 
> CUF 

kterm 

 % echo $TERM
 kterm
 % tput cuf1 | od -c
 0000000 033   [   C
 0000003
 % echo -n "aaaaaaaa\r"; echo -n XXX; tput cuf1; echo XXX
 XXXaXXXa
 %

>  w3m  terminal emulator 
> 
> 
> vt-100 
> 
> 
> w3m  EUC-JP & Cookie model 
> OS Mac OS X  ncurses 
> 

w3m cursor ncurses 

 cuf1, nd sequence 
terms.c  T_kr (?) T_nd 
T_nd 

void
refresh(void)
{
()
                if ((*dirty & L_NEED_CE && col >= ScreenImage[line]->eol) ?
                    need_redraw(pc[col], pr[col], ' ',
                                0) : (pr[col] & S_DIRTY)) {
                    if (pcol == col - 1)
                        writestr(T_nd);
                    else if (pcol != col)
                        MOVE(line, col);

?

--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.