Re: utf8 patch for mc, slang 2 version

2006-06-16 Thread Bart Oldeman
On Thu, 15 Jun 2006, Egmont Koblinger wrote: Anyway, there are plenty of apps (e.g. vim, joe) that perfectly support UTF-8 and use ncurses (not the w version). I wonder how it is possible... Because they only use the terminfo (low-level) parts of ncurses, see man 3ncurses terminfo. Those

Re: utf8 patch for mc, slang 2 version

2006-06-14 Thread Bart Oldeman
On Wed, 14 Jun 2006, Egmont Koblinger wrote: On Tue, Jun 13, 2006 at 07:14:41PM +0200, Tomasz K?oczko wrote: BTW: anyone is working on UFT-8 support for ncurses(w) backend ? I don't think so, and I don't think it is worth it. Maintaining two backends IMHO just causes headaches while it

Re: some problems with do_*_ca_mode()

2005-11-24 Thread Bart Oldeman
On Thu, 24 Nov 2005, Andrey V. Malyshev wrote: JN #ifdef HAVE_SLANG JN SLtt_write_string (ti_cap); JN #else JN putp (ti_cap); JN #endif JN and similarly for the te_cap. I argee, of course. Modified patch is attached. You could also just fprintf the string to stdout. As far as I can see

Re: some problems with do_*_ca_mode()

2005-11-24 Thread Bart Oldeman
On Thu, 24 Nov 2005, Andrey V. Malyshev wrote: BO it's just double work... look here: BO main() - init_curses() - [ SLsmg_init_smg() - tt_init_video() (set BO to SLtt_init_video()) - tt_write_string (Term_Init_Str); ] You are right *. It is an overlook on my part :) As far as I understand,

Re: mcslang2

2005-09-27 Thread Bart Oldeman
On Tue, 27 Sep 2005, Leonard den Ottolander wrote: All the discussion about slang2 and the utf-8 patch has inspired me to create an internal version of slang-2.0.4 to mc. This patch might still be somewhat rough around the edges, but it builds after a configure --with-screen=mcslang2. Please

Re: [PATCH] eliminate buffer in screen.c

2005-08-29 Thread Bart Oldeman
On Sat, 27 Aug 2005, Pavel Tsekov wrote: The text passed to add_permission_string as the first argument is supposed to be justfied but your patch will sent is just as is . Did I get it wrong ? No, you were right. For octal permissions right alignment is used but the field is not expandable,

[PATCH] eliminate buffer in screen.c

2005-08-27 Thread Bart Oldeman
of characters in the corresponding wchar_t string: think of double-width and combining characters. Bart 2005-08-27 Bart Oldeman [EMAIL PROTECTED] * screen.c (add_permission_string): Use const for dest. * screen.c (to_buffer): Rename to add_string. Output directly