Commit Graph

20 Commits

Author SHA1 Message Date
Andrew V. Samoilov
5c83819e50 * sldisply.c (SLtt_initialize): Fix typo. Change Is_Bg_BGR
to Is_Fg_BGR.  (SLtt_goto_rc): Disable cursor movement optimizations
        for qansi-m consoles. Needed on QNX Neutrino. (SLtt_initialize): Init
        QANSI_Console variable. (SLtt_erase_line): Use tt_write() instead
        tt_write_string(). (SLtt_cls): Use tt_write() instead tt_write_string().
        (SLtt_tgetstr): Fix warning.
        * slmisc.c: Trimmed down for use in GNU Midnight Commander.
        * sltermin.c (_pSLtt_tigetent): Avoid strncpy, home_ti is 1K long and
        obody really needs it whole cleared. Fix possible off-by-one error.
        * include/slang.h: Define __unix__ if __MACH__, __NetBSD__,  _AIX is
        defined.
2006-01-13 19:49:23 +00:00
Leonard den Ottolander
a3b821aef1 slang/*: Upgrade internal slang to 2.0.5. 2005-11-12 19:47:49 +00:00
Andrew V. Samoilov
a1781bc719 * sldisply.c (SLtt_initialize): Fix typo. Change Is_Bg_BGR,
not Is_Fg_BGR.
2005-03-19 18:15:17 +00:00
Andrew V. Samoilov
f7cf6a4928 * sldisply.c (SLtt_delete_nlines): Add boundary check.
(forward_cursor): Remove unneeded boundary check.
        (tt_write): Remove unneeded cast.
       * sldisply.c: Use tt_write() instead of tt_write_string() for
       hardcoded string literals.
2004-11-09 17:16:51 +00:00
Andrew V. Samoilov
dce56e8421 * include/slang.h (SLang_Version): Delete const qualifier for
compatibility with system slang library.
* slmisc.c: Likewise.
* sldisply.c (tt_sprintf): Import last changes from libslang-current.
Add code to check for a buffer overflow.
(tt_printf): Likewise.
(forward_cursor): Likewise.
2004-11-08 21:00:29 +00:00
Andrew V. Samoilov
5b57056d23 * README: Imported slang-1.4.9.
* sldisply.c: Likewise.
        * slerr.c: Likewise.
        * slgetkey.c: Likewise.
        * slmisc.c: Likewise.
        * slsignal.c: Likewise.
        * slsmg.c: Likewise.
        * sltermin.c: Likewise.
        * slutty.c: Likewise.
        * slvideo.c: Likewise.
        * slw32tty.c: Likewise.
        * include/_slang.h: Likewise.
        * include/jdmacros.h: Likewise.
        * include/sl-feat.h: Likewise.
        * include/slang.h: Likewise.
        * include/slinclud.h: Likewise.
        * include/sllimits.h: Likewise.

	* ChangeLog: Change my e-mail to me@pavelsh.pp.ru
2004-11-01 06:30:43 +00:00
Andrew V. Samoilov
8d50b2240a * sldisply.c (tt_sprintf): Add missed break.
* sldisply.c (SLtt_erase_line): Use tt_write() instead
        tt_write_string().
2004-10-14 08:18:49 +00:00
Andrew V. Samoilov
d329f3c414 * sldisplay.c (SLtt_goto_rc): Disable cursor movement optimizations
for qansi-m consoles. Needed on QNX Neutrino.
        (SLtt_initialize): Init QANSI_Console variable.
2004-09-26 00:45:47 +00:00
Andrew V. Samoilov
b93c90db4e * include/slang.h: Revert last changes - it breaks compiling
* sldisply.c: Likewise.
* slerr.c: Likewise.
* slsmg.c: Likewise.
* sltermin.c: Likewise.
2004-08-31 06:44:20 +00:00
Roland Illig
73207a8994 * slang.h: Added const qualifier to some of the SLang functions. 2004-08-30 11:12:57 +00:00
Pavel Roskin
df44271fd0 * sldisply.c (RGB_to_BGR): Make const.
* slsignal.c (SLsystem): Commented out.
2003-09-26 21:34:49 +00:00
Pavel Roskin
e9067abfaf * sldisply.c: Fix for the previous patch. Only swap colors if
setf and setb are not empty.
Reported by Andras Barthazi <andras@barthazi.hu>
2002-11-28 20:35:34 +00:00
Pavel Roskin
257b4b360c * sldisply.c: Patch to swap blue and red colors for setf/setb
capabilities.  Needed on QNX Neutrino.
Reported by Pavel Shirshov <pavelsh@mail.ru>
2002-10-25 04:53:16 +00:00
Andrew V. Samoilov
318a346055 * sldisply.c (Color_Def_Type): Make const.
* slsmg.c (Fake_Alt_Char_Pairs): Likewise.
* sltermin.c (Tgetstr_Map_Type): Likewise.
* slutty.c (Baud_Rate_Type): Likewise.
2002-10-07 11:08:16 +00:00
Pavel Roskin
b0b73df498 Update to S-Lang 1.4.5. Move include files to "include"
directory to avoid the need to rename slang.h.
* Makefile.am: Adjust file list.  Add "-Iinclude" to the
compiler flags.
* include/jdmacros.h: Rewrite to use glib.
* slmisc.c: Trim to include only needed functions.
2002-10-07 04:41:03 +00:00
Andrew V. Samoilov
1bf22a71a0 Typedef Color_Def_Type const 2002-09-14 14:03:48 +00:00
Pavel Roskin
0dd5f511be * _slang.h: Include slang-mc.h.
* slang-mc.h: Add protection against using with system installed
S-Lang library.
* sl*.c: Only include _slang.h, but not slang.h to avoid making
symlinks.
2001-12-21 20:14:55 +00:00
Norbert Warmuth
b993f8e8ed Pass --with-included-slang to configure if you concerned about
that Bugtraq message.

Sun Feb 14 01:05:42 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* slang/sldisply.c (SLtt_get_terminfo): use g_snprintf instead of
sprintf

* slang/slsmg.c (SLsmg_printf): ditto

* slang/sltermin.c (SLtt_tigetent): ditto
1999-02-14 00:41:23 +00:00
Miguel de Icaza
c457d7dd96 Pass2 of the QNX port of mc from Tamasi Gyorgy 1998-05-20 02:19:17 +00:00
Miguel de Icaza
eb6b3842ab Initial revision 1998-02-27 04:54:42 +00:00