ncurses or slang

2009-09-23 Thread Michail Vidiassov
Dear All,

what is the preferred screen output library in the
upcoming mc 4.7 and current pre2?
I.e. if one can install both ncurses and slang2 on his system
what mc is to be compiled against, what branch is developed and tested
more active, where are bugs fewer and features more abundant?

Sincerely, Michail


___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: ncurses or slang

2009-09-23 Thread Slava Zanko
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michail Vidiassov wrote:
 Dear All,
 
 what is the preferred screen output library in the
 upcoming mc 4.7 and current pre2?
 I.e. if one can install both ncurses and slang2 on his system
 what mc is to be compiled against, what branch is developed and tested
 more active, where are bugs fewer and features more abundant?

Preferred to S-Lang (as default), but Ncurses fully supported too.

With NCurses we have some restrictions (like trouble with drawing of
double lines for boxes). S-Lang is a more powerfull library.


WBR, Slavaz.


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFKuiZZb3oGR6aVLpoRAviQAJ9snqSZJUffhfNVdiGDiiHWLVOSJwCfc3Qs
5Gg8kR9pytv7FeWg2d2JlF8=
=Qn5O
-END PGP SIGNATURE-
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: ncurses or slang

2009-09-23 Thread Yury V. Zaytsev
Hi!

I like ncurses: the versions with full Unicode support are available on
vintage distros like RHEL4  RHEL3.
 
-- 
Sincerely yours,
Yury V. Zaytsev

On Wed, 2009-09-23 at 16:45 +0300, Slava Zanko wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Michail Vidiassov wrote:
  Dear All,
  
  what is the preferred screen output library in the
  upcoming mc 4.7 and current pre2?
  I.e. if one can install both ncurses and slang2 on his system
  what mc is to be compiled against, what branch is developed and tested
  more active, where are bugs fewer and features more abundant?
 
 Preferred to S-Lang (as default), but Ncurses fully supported too.
 
 With NCurses we have some restrictions (like trouble with drawing of
 double lines for boxes). S-Lang is a more powerfull library.
 
 
 WBR, Slavaz.
 
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (GNU/Linux)
 
 iD8DBQFKuiZZb3oGR6aVLpoRAviQAJ9snqSZJUffhfNVdiGDiiHWLVOSJwCfc3Qs
 5Gg8kR9pytv7FeWg2d2JlF8=
 =Qn5O
 -END PGP SIGNATURE-
 ___
 Mc-devel mailing list
 http://mail.gnome.org/mailman/listinfo/mc-devel

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: ncurses or slang

2009-09-23 Thread Slava Zanko
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yury V. Zaytsev wrote:

 I like ncurses: the versions with full Unicode support are available on
 vintage distros like RHEL4  RHEL3.

Is latest Midnight Commander works on RHEL3?

WBR, Slavaz.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFKuik5b3oGR6aVLpoRAvh8AJ93nSo+9wO+GhozcJui2cVug4Tq7wCfbFNq
/0MwakeIuui9WHHIk4iRo9g=
=VFx3
-END PGP SIGNATURE-
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: ncurses or slang

2009-09-23 Thread Yury V. Zaytsev
On Wed, 2009-09-23 at 15:44 +0200, Yury V. Zaytsev wrote:
 Hi!
 
 I like ncurses: the versions with full Unicode support are available on
 vintage distros like RHEL4  RHEL3.

Sorry can't check right now, but I think it worked once I've got the
 static glib thing just as it did for RHEL4. It's been like 3-4 months ago...
 
-- 
Sincerely yours,
Yury V. Zaytsev

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: ncurses or slang

2009-09-23 Thread Michail Vidiassov

Dear Slava,


what is the preferred screen output library in the
upcoming mc 4.7 and current pre2?



Preferred to S-Lang (as default), but Ncurses fully supported too.

With NCurses we have some restrictions (like trouble with drawing of
double lines for boxes). S-Lang is a more powerfull library.


did you contact Thomas Dickey, the author of ncurses with your problems?
I am not sure if he is still on this list (he used to be), but he is 
active at the ncurses list bug-ncur...@gnu.org and generally responsive to 
bug reports and helpful in solving complex usage cases.


  Sincerely, Michail

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: ncurses or slang

2009-09-23 Thread Thomas Dickey

On Wed, 23 Sep 2009, Slava Zanko wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michail Vidiassov wrote:

Dear All,

what is the preferred screen output library in the
upcoming mc 4.7 and current pre2?
I.e. if one can install both ncurses and slang2 on his system
what mc is to be compiled against, what branch is developed and tested
more active, where are bugs fewer and features more abundant?


Preferred to S-Lang (as default), but Ncurses fully supported too.

With NCurses we have some restrictions (like trouble with drawing of
double lines for boxes). S-Lang is a more powerfull library.


not really (just lack of developers for MC that happen to know both 
libraries)


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: ncurses or slang

2009-09-23 Thread Slava Zanko
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

24.09.2009 00:37, Thomas Dickey wrote:

Thomas, hi. Glad to see you in this maillist.

 Preferred to S-Lang (as default), but Ncurses fully supported too.

 With NCurses we have some restrictions (like trouble with drawing of
 double lines for boxes). S-Lang is a more powerfull library.
 not really (just lack of developers for MC that happen to know both
 libraries)

Well... Drawing double lines possible in NCurses via tty_print_string()
function (not via hline() vline() and etc). In this case we (side of mc)
must take care of user encoding, terminal type and used current font. If
we use hline or vline functions (like now) then this headache of NCurses.

Now Midnight Commander (from git) have initial support of skins.
Possible to change drawing of lines via skin-file. With Ncurses library
we used vline, hline and ACS_* constants, therefore double lines not
drawing, but lines look good with any codepage of user. With S-Lang
library we used anoter way (in opposite): draw lines directly via
SLsmg_write_char. As result: we have any UTF-8 lines but we have trouble
in one-byte codepages ('LANG=C mc' or 'LANG=POSIX mc' show this trouble
as well).

I'm don't know how handle this situation :( We need help from all
interested persons.

WBR, Slavaz.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkq6nIwACgkQb3oGR6aVLpqqjACfbxT+XkF/VdKqsKpiB0QY2Xn6
5p0AmwWzNpViznYcH1+/z8xY15HMM98Y
=Ieif
-END PGP SIGNATURE-
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: ncurses or slang

2009-09-23 Thread Thomas Dickey

On Thu, 24 Sep 2009, Slava Zanko wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

24.09.2009 00:37, Thomas Dickey wrote:

Thomas, hi. Glad to see you in this maillist.


Preferred to S-Lang (as default), but Ncurses fully supported too.

With NCurses we have some restrictions (like trouble with drawing of
double lines for boxes). S-Lang is a more powerfull library.

not really (just lack of developers for MC that happen to know both
libraries)


Well... Drawing double lines possible in NCurses via tty_print_string()
function (not via hline() vline() and etc). In this case we (side of mc)
must take care of user encoding, terminal type and used current font. If
we use hline or vline functions (like now) then this headache of NCurses.

Now Midnight Commander (from git) have initial support of skins.
Possible to change drawing of lines via skin-file. With Ncurses library
we used vline, hline and ACS_* constants, therefore double lines not
drawing, but lines look good with any codepage of user. With S-Lang
library we used anoter way (in opposite): draw lines directly via
SLsmg_write_char. As result: we have any UTF-8 lines but we have trouble
in one-byte codepages ('LANG=C mc' or 'LANG=POSIX mc' show this trouble
as well).


All that sounds just like you're using slang's equivalent of add_wch() or 
addch(), which you can already do with ncurses.  (Either way, the solution 
depends on locale and terminal support ;-)


The one-byte codepages providing double-lines aren't available in POSIX 
locale.  ncurses has a use_legacy_coding() function to tell it that the 
display can show characters which the locale says aren't printable (though 
mixing that with a UTF-8 locale may not give good results).


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel