0

I was just reading this forum where I found a curious terminal control escape sequence: "\033[?1000h". Naturally, I've tried it to see what could happens. In accordance with the inspiring comment, my terminal started to show chars corresponding to mouse clicks! (Amazing!)

Questions: 1 The "entity" mainly responsible for this (terminal showing mouse clicks code) is the line discipline, right? who caughts the sequence and configure the terminal line for this behavior. In this case, normally does it receive mouse inputs and ignore it or does it "subscribe" itself to acess such information?

Questions: 2 Is it possible to get mouse coordinates in a equivalent form? How?

Questions: 3 How do I turn it off!? (closing and opening a new terminal deeply dishonors me!)

Thanks in advanced.

I'am using Debian 9, Xterm.

1 Answer 1

1

You can turn it off in much the same way that you turned it on:

printf "\033\[?1000h"

(on) and

printf "\033\[?1000l"

(off). See XTerm Control Sequences.

2
  • Thank you! (about the link) Searching for sequences, the sequence "1000h" nor "1000l" haven't matched. Commented May 21, 2020 at 1:21
  • The links in the answer work. In the html (and plaintext), literal characters for control sequences are separated by blanks. In the pdf (or postscript, etc), those are depicted by boxed/outlined characters. See the FAQ for an overview with the different formats. Commented May 21, 2020 at 7:56

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.