After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 758178 - Incorrect AT-SPI delete events when using the pager "less"
Incorrect AT-SPI delete events when using the pager "less"
Status: RESOLVED OBSOLETE
Product: vte
Classification: Core
Component: general
0.42.x
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-11-16 14:12 UTC by kaura.dev
Modified: 2021-06-10 15:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description kaura.dev 2015-11-16 14:12:36 UTC
Vte is not sending AT-SPI correct delete events when less is open in a terminal emulator, and when the viewed file contains empty lines.

As a result, BRLTTY shows terminal contents incorrectly.

To reproduce:
1) Create a text file containing lots of empty lines (say 100)
2) Open this file with less
3) Press the down arrow key to scroll the file

After step 3, vte should send a delete event for the colon character which less displays on the bottom line of the terminal. But because vte misses this, BRLTTY's screen buffer gets messed up.

This is a problem, because the same behaviour can be triggered by scrolling text left (using the right arrow key) in less, and because this can indicate some deeper problem in vte's event sending logic.

When viewing a file containign empty lines in less, BRLTTY receives the following AT-SPI events:

# First less prints the empty lines from my test file. vte correctly sends events for this.
brltty: insert 8 from 20
brltty: '


empty'

brltty: caret move to 28
# The 'empty' above is the name of my empty file which less prints to the bottom line when it starts
# Now I started to press the down arrow key

# The last line of the terminal now reads: 'empty' in BRLTTY

brltty: delete 1 from 0
brltty: '
'
brltty: caret move to 24
brltty: delete 1 from 0
brltty: '
'
brltty: insert 1 from 23
brltty: ':'
# BRLTTY now thinks that the last line reads: 'em:pty'

brltty: delete 1 from 0
brltty: '
'
brltty: insert 1 from 23
brltty: ':'
# BRLTTY thinks that the last line now reads: 'em::pty'

brltty: delete 1 from 0
brltty: '
'
brltty: insert 1 from 23
brltty: ':'
# BRLTTY thinks that the last line now reads: 'em:::pty'
# and so forth
Comment 1 GNOME Infrastructure Team 2021-06-10 15:07:28 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vte/-/issues/2246.