Hello Francois

What happens is this:

   - For cases where a terminal is missing a certain capability (for cursor
   movement, clearing a line etc) rlwrap has a 'surrogate' routine to do the
   same (e.g. printing lots of spaces to clear a line)
   - There is an old and rather stupid bug in the surrogate 'clear line'
   routine in rlwrap >= 0.30
   - This has never been noticed because all current terminals have the
   'delete line' capability (terminfo code 'dl1') so the surrogate was never
   used
   - Somehow, on newer Debian systems, xterm doesn't have the 'dl1'
   capability anymore (or rather: tgetstr() doesn't find it) . This exposed the
   bug in rlwrap

The bug is quite simple to fix (0-terminating strings is a *really* good
idea in C :-), but printing spaces to just clear a line is something I would
rather avoid (using such a system over a bad link  will be unacceptably
slow)

So: why doesn't tgetstr('dl1', ...) find anything for your xterm?

Could you please run 'infocmp' inside an xterm and mail me the result?

Thanks again!

Hans

-- 
Hans Lub                                   tel/fax +31 (0)30 2899249
Dolomieten 74 3524 VH Utrecht (Nederland)            hanslu...@gmail.com

Reply via email to