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: Thomas Dickey
Subject: Re: a double-width character can transgress to the next row
Date: Mon, 13 Apr 2020 19:32:55 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Mon, Apr 13, 2020 at 05:46:46PM +0200, Benno Schulenberg wrote:
> 
> 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"

I did something similar, but had no particular problem linking:

#!/bin/sh
cfg=ncursesw6dev-config
export NCURSESW_CFLAGS="`$cfg --cflags`"
export NCURSESW_LIBS="`$cfg --libs`"
cfg-normal
 
> 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?

see attached (I modified doupdate)

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: ncu-pending-20200411.zip
Description: Zip archive

Attachment: signature.asc
Description: PGP signature


reply via email to

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