Skip to content

Weird characters with ncurses 6.1 #185

@agostonbarna

Description

@agostonbarna

After upgrading ncurses to v6.1 weird characters appear on the screen when I try to use peco.

$ cat test.txt       
line 1
line 2
line 3
$ cat test.txt | peco
 ������������������������[%i%p1%dG                            [3 (1/1)]
line 1
line�2�������������������������������
����������������������������������  
line�3���[%i%p1%dG
Waiting for input...
�����������������������������  

Thanks to @mattn I learned that peco uses termbox-go under the hood
and that the issue might happen because terminfo was also modified with the latest ncurses upgrade.

infocmp diff:

45c45
< 	pairs= 32767.
---
> 	pairs= 65536.
173c173
< 	kmous= '\E[M'.
---
> 	kmous= '\E[<'.
190c190
< 	rmcup= '\E[?1049l'.
---
> 	rmcup= '\E[?1049l\E[23;0;0t'.
206c206
< 	smcup= '\E[?1049h'.
---
> 	smcup= '\E[?1049h\E[22;0;0t'.

ncurses version: 6.1.20180127
TERM: xterm-256color
OS: Arch Linux
Linux kernel: 4.14.20-1-lts, x86_64

peco/peco#446

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions