help-nano
[Top][All Lists]
Advanced

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

Re: [Help-nano] Segfault on ctrl-C (curpos)


From: Liam Gretton
Subject: Re: [Help-nano] Segfault on ctrl-C (curpos)
Date: Tue, 20 Dec 2016 14:26:19 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

On 20/12/2016 11:42, Benno Schulenberg wrote:
> Please try the attached patch.  It fixes it for me.

It does indeed. Thanks very much!
 
> Your keyboard/input-system produces an actual KEY_CANCEL
> code when you press ^C, instead of simply 0x03, what most
> other systems seem to do.  Do you compile ncurses in a special
> way on SLES to make it report ^C as KEY_CANCEL?

No, it's just the standard one shipped with SLES 11 SP4:

# ldd /opt/nano/bin/nano
        linux-vdso.so.1 =>  (0x00007ffdcb5a7000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f4885b10000)
        libncursesw.so.5 => /lib64/libncursesw.so.5 (0x00007f48858bc000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f488553f000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f488533b000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4885d36000)

# rpm -qif /lib64/libncursesw.so.5
Name        : libncurses5                   Relocations: (not relocatable)
Version     : 5.6                           Vendor: SUSE LINUX Products GmbH, 
Nuernberg, Germany
Release     : 90.55                         Build Date: Sat 21 Feb 2009 
04:01:48 GMT
Install Date: Mon 07 Oct 2013 11:45:40 BST  Build Host: brahms
Group       : System/Libraries              Source RPM: 
ncurses-5.6-90.55.src.rpm
Size        : 936728                        License: X11/MIT
Signature   : RSA/8, Sat 21 Feb 2009 04:02:08 GMT, Key ID e3a5c360307e3d54
Packager    : http://bugs.opensuse.org
URL         : http://invisible-island.net/ncurses/ncurses.html
Summary     : The New curses Libraries

> Wow.  You actually use 'set cut'?  Not being used to it,
> I find that behavior quite confusing.  (I've tried running
> for a moment with your config. :) )

You're right, dropping that makes things easier. I've just lived with those 
settings for a long time without really revisiting them.
 
> You may wish to update "const" to "constantshow" --
> its new name.

Thanks, I've changed that too.

Thanks very much for your help!

-- 
Liam Gretton                                    address@hidden
Systems Specialist                           http://www.le.ac.uk/its/
IT Services                                   Tel: +44 (0)116 2522254
University Of Leicester, University Road
Leicestershire LE1 7RH, United Kingdom



reply via email to

[Prev in Thread] Current Thread [Next in Thread]