holzschu / holzschu/a-shell

tmux triggers beakdown in Unicode parsing

Open
#563 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Perl
Stars
3.9k
Forks
213
Avg merge
1m
Merged PRs (30d)
1

Description

In tmux, if you're viewing a window smaller than your current screen size, it pads the screen with various characters, something like this:

```
mcp ~> │······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
│······················································································
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘······················································································
···························································································································································································································
···························································································································································································································
···························································································································································································································
······························································································································································
```

Frequently this sort of text triggers a breakdown in the utf-8 parsing in a-shell, causing the screen to fill with garbage:

![IMG_0258](https://user-images.githubusercontent.com/4483829/220484529-5441a7e2-0f0c-4f36-8a94-c8ec6382d3c0.PNG)

This is the clearest test case I can get. Tmux not involved. If I just take the above blockquote, put it in a file, `less` that file, then press ctrl-r over and over, the glitch comes in and out. This is straight in the a-shell shell's own less, not logged into any servers or anything.

This unfortunately makes a-shell virtually unusable for me, so I hope this is something fixable.

thank you,

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.