bug-ncurses
[Top][All Lists]
Advanced

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

Re: a double-width character can transgress to the next row


From: Benno Schulenberg
Subject: Re: a double-width character can transgress to the next row
Date: Mon, 13 Apr 2020 17:46:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

Op 12-04-2020 om 01:25 schreef Thomas Dickey:
> To get some insight, I made ncurses call scr_dump on each doupdate.
> The screen dumps show me that ncurses isn't wrapping the text
> (the odd characters don't show up in the corresponding dumps).
> 
> It probably shows that there's some place where it's making some
> assumption about the character widths which disagrees with the terminal.

I'm trying to get nano to link against the latest version of ncurses.
I've unpacked ncurses-6.2 and have applied all patches, from 20200215
to 20200411.  Then I've run:

    ./configure -C --enable-widec --with-shared --prefix=/usr/local

and compiled it, and installed it.  Then I've done:

    export NCURSESW_CFLAGS="-I/usr/local/include/ncursesw"
    export NCURSESW_LIBS="-L/usr/local/lib"

and have configured nano and run make.  It compiles fine, but then fails
at the linking stage:

gcc  -g -O1 -march=native -Wvla -Wshadow -Wall   -o nano browser.o chars.o
color.o cut.o files.o global.o help.o history.o move.o nano.o prompt.o rcfile.o
search.o text.o utils.o winio.o ../lib/libgnu.a   -L/usr/local/lib
browser.o: In function `browser_refresh':
/home/ben/Sources/NANO/src/browser.c:470: undefined reference to `wmove'
/home/ben/Sources/NANO/src/browser.c:495: undefined reference to `wattr_on'
[...]
/home/ben/Sources/NANO/src/winio.c:3625: undefined reference to `ungetch'
/home/ben/Sources/NANO/src/winio.c:3633: undefined reference to `nodelay'
collect2: error: ld returned 1 exit status


I was about to send this mail off, when I tried with:

    export NCURSESW_LIBS="-l:libncursesw.so -L/usr/local/lib"

Then (after reconfiguring) compiling and linking succeeded.


Okay, how can I now get ncurses to dump its screen buffer to a file
at specific points in the program?

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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