kingToolbox / kingToolbox/WindTerm

'Esc-M' chars scrolling back in 'less'

Open
#621 3 comments 0 reactions 1 assignee Claimed by @kingToolbox View on GitHub
bug
Dominant language
C
Stars
32.3k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

Looking at a file with 'less' in a Linux session, if I scroll down and then back up, 'Esc-M' characters appears at beginning of some lines. I didn't catch exactly the cases, but they are related to lines with a hash ('#') and then some empty line.

For example:
1. Execute 'less /etc/services'.
2. At the beginning of file there are some lines with comments (they have a '#' at the left side).
3. Scroll down with the cursor key so the comment lines disappear.
4. Scroll back. The comment lines appears again and some of them has a 'Esc-M' at the beginning overlaping other characters.

![image](https://user-images.githubusercontent.com/64590387/160449134-3c7f6671-066c-4160-bd6f-8ef477f5f201.png)

And this is how it should look:
![image](https://user-images.githubusercontent.com/64590387/160449551-086fcb82-052d-496f-888f-eb2ca4096b6e.png)

Cheers!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.