bug-ncurses
[Top][All Lists]
Advanced

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

Re: Possible bug in “kmous” in xterm-256color description


From: Thomas Dickey
Subject: Re: Possible bug in “kmous” in xterm-256color description
Date: Sun, 1 Aug 2021 05:29:10 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Sat, Jul 31, 2021 at 05:00:23PM -0700, Spamcop wrote:
> I’m quite new to ncurses programming, but I’d like to check with you guys and
> see if I might have discovered a bug in xterm-256color.  “kmous” in that
> entry is “\E[<“, which expects the special SGR mouse coordinate returns from
> xterm.  However, there’s no place in the description that I can see that
> sends the requisite “2006” code to the terminal to initiate this.

"1006"

infocmp -1x xterm-256color |grep 1006

        XM=\E[?1006;1000%?%p1%{1}%=%th%el%;,
 
ncurses sees the 1006 and turns on that mode.

> In fact the entry as written does not seem to enable mouse position reporting
> at all, except on button clicks.

intentionally.  mouse-position reporting is rarely used, judging from comments
made by various people (it would be a performance issue on any remote
connection).

But for those with different opinions on the matter, they can use tic to
compile their customized terminal description, using the examples in the
terminal database.

https://invisible-island.net/personal/self-service.html
 
> I genned up an entry that includes the “user-defined” XM entry from the
> xterm-1002 entry, and changes “kmous” to the “\E[M” sequence returned by that
> option, and now mouse dragging in a terminal window is working for the first
> time on the current ncurses-6.2 distribution.
> 
> Am I missing something?
> 
> Mike O’Brien
> 
> Sent while out wandering around (probably)
> 

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

Attachment: signature.asc
Description: PGP signature


reply via email to

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