Public bug reported:

In gnome terminal shell run: /usr/share/doc/libcurses-ui-

The text: 588
will be immediately entered into the document

If you switch focus to another application then the text: 589
will be entered into the document

Every time you switch back to the gnome-terminal "588" will be entered
and switching back will enter "589"

If you save the document, these will be part of the document proving
that it isn't text that escaped, e.g. via stderr

If (from another terminal) I disable focus reporting

    CSI ? 1004 h                        
                  Enable reporting focus. 
                  Reports whenever terminal emulator enters or exits 
                  focus as ESC [I and ESC [O, respectively.
    CSI ? 1004 l
                 Disable reporting focus.

Like this:

    $ ps -fade | grep examples/color_editor
    user  361460  283761  0 14:29 pts/3    00:00:00 /usr/bin/perl -w 
    $ printf '\x1b[?1004l' > /dev/pts/3

then it stops misbehaving.

Perhaps the bug is really in libcurses-perl or even libncurses6

** Affects: libcurses-ui-perl (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Changed in: libcurses-ui-perl (Ubuntu)
       Status: New => Confirmed

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  curses input box with mouse-support enters test 588 589 whenever
  terminal window focus changes

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to