Re: cons.handler.c for FreeBSD



hi, there!

On Wed, Mar 05, 2003 at 04:05:54PM +0600, Max Khon wrote:

> > > I had a chance to test the code, and it works just fine.  I forgot to test
> > > the "output lines" option (i.e. restoring just part of the text), but I'll
> > > do it next time I boot into FreeBSD.
> > 
> > It didn't work, but I have fixed it.  Sorry, but you cannot use escape
> > sequences directly when the screen library (S-Lang or ncurses) is active,
> > otherwise you get ugly artifacts when parts of the screen are not redrawn.
> > 
> > This also means that you cannot restore color attributes without
> > allocating color pairs.  It should be possible to allocate the pairs
> > dynamically.  It's already done by the editor.
> > 
> > I have only tested "output lines" on FreeBSD 5.0.  If anybody has FreeBSD
> > 4.x or older, please test Ctrl-O and "output lines" on the console.
> > Sorry, I don't have enough partitions to keep several versions of FreeBSD
> > installed.
> 
> can you send me diff against 4.6.0 cons.handler.c?

ok, I've got the patch from cvs. can you set up something like
cvsweb (I can't get how to obtain unified diff using LXR or Bonsai).

> and it is still not obvious to me how I can test "output lines"
> with Ctrl-O.

another question is about non-standard console modes.
I (and other users) are getting core dumps when console video mode
is not 80x25. E.g. after 'vidcontrol 80x30' mc dumps core somewhere
inside ncurses. The backtrace is:

fjoe husky:/usr/ports/misc/mc/work/mc-4.6.0/src$gdb mc mc.core
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read called at /usr/fbsd/RELENG_4/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at /usr/fbsd/RELENG_4/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf

Core was generated by `mc'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libncurses.so.5...done.
Reading symbols from /usr/local/lib/libintl.so.4...done.
Reading symbols from /usr/local/lib/libglib-2.0.so.200...done.
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /usr/local/lib/libslang.so...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/X11R6/lib/libXThrStub.so.6...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x281118bf in tgetstr () from /usr/lib/libncurses.so.5
(gdb) bt
#0  0x281118bf in tgetstr () from /usr/lib/libncurses.so.5
#1  0x28372532 in SLtt_tgetstr () from /usr/local/lib/libslang.so
#2  0x807b8dd in slang_keypad (set=0) at slint.c:308
#3  0x8052950 in view_other_cmd () at cmd.c:993
#4  0x806b288 in midnight_callback (h=0x810f380, id=16399, msg=10)
    at main.c:1816
#5  0x8058605 in dlg_key_event (h=0x810f380, d_key=16399) at dlg.c:667
#6  0x80588fd in dlg_process_event (h=0x810f380, key=16399, event=0xbfbff9c0)
    at dlg.c:779
#7  0x80589ca in run_dlg (h=0x810f380) at dlg.c:813
#8  0x806b4ac in setup_panels_and_run_mc () at main.c:1912
#9  0x806b688 in do_nc () at main.c:1985
#10 0x806beca in main (argc=1, argv=0xbfbffaa4) at main.c:2520
(gdb)

can you take a look at this bug?

/fjoe




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]