termux-app icon indicating copy to clipboard operation
termux-app copied to clipboard

Text formatting breaking when phone rotated and copy has additional spaces

Open vrtareg opened this issue 1 year ago • 1 comments

Problem description

When working in terminal it is sometimes necessary to rotate phone to landscape mode to see the full line of the text or log tail.

In the past versions it was working correctly but recently started to break and view is getting like ladder when rotating as buffer likes stores data with spaces to keep formatting rather than new lines.

Also thisis breaking text copy as there are additional spaces added to the end of the lines and it doesn't allow proper formatting to take place.

When copy pasting code it breaks logic.

P.S. Not sure if this is reported so far.

Steps to reproduce the behavior.

Tail or cat long lines containing file.

Rotate phone and check that lines are correctly aligned against the left side

What is the expected behavior?

Text is formatted on the left side of the screen when tailing or catting the file, selecting part of the screen and pasting the mail or text editor should not have trailing spaces.

tail -F logfile cat logfile

System information

  • Termux application version: 0.118.1
  • Android OS version: 14
  • Device model: Xiaomi Mi11T
## Termux App Info

**APP_NAME**: `Termux`  
**PACKAGE_NAME**: `com.termux`  
**VERSION_NAME**: `0.118.1`  
**VERSION_CODE**: `1000`  
**TARGET_SDK**: `28`  
**IS_DEBUGGABLE_BUILD**: `false`  
**APK_RELEASE**: `F-Droid`  
**SIGNING_CERTIFICATE_SHA256_DIGEST**: `228FB2CFE90831C1499EC3CCAF61E96E8E1CE70766B9474672CE427334D41C42`  
##


## Device Info

### Software

**OS_VERSION**: `5.4.259-qgki-g529d0187d344`  
**SDK_INT**: `34`  
**RELEASE**: `14`  
**ID**: `UKQ1.231207.002`  
**DISPLAY**: `UKQ1.231207.002 release-keys`  
**INCREMENTAL**: `V816.0.5.0.UKDEUXM`  
**SECURITY_PATCH**: `2024-09-01`  
**IS_DEBUGGABLE**: `0`  
**IS_TREBLE_ENABLED**: `true`  
**TYPE**: `user`  
**TAGS**: `release-keys`  

### Hardware

**MANUFACTURER**: `Xiaomi`  
**BRAND**: `Xiaomi`  
**MODEL**: `2107113SG`  
**PRODUCT**: `vili_eea`  
**BOARD**: `vili`  
**HARDWARE**: `qcom`  
**DEVICE**: `vili`  
**SUPPORTED_ABIS**: `arm64-v8a, armeabi-v7a, armeabi`  
##


## Important Links

### Github

[Termux](https://github.com/termux/termux-app)  
[Termux:API](https://github.com/termux/termux-api)  
[Termux:Boot](https://github.com/termux/termux-boot)  
[Termux:Float](https://github.com/termux/termux-float)  
[Termux:Styling](https://github.com/termux/termux-styling)  
[Termux:Tasker](https://github.com/termux/termux-tasker)  
[Termux:Widget](https://github.com/termux/termux-widget)  
[termux-packages](https://github.com/termux/termux-packages)  

### Email

[[email protected]](mailto:[email protected])  

### Reddit

[r/termux](https://www.reddit.com/r/termux)  

### Wiki

[Termux Wiki](https://wiki.termux.com)  
[Termux](https://github.com/termux/termux-app/wiki)  
[termux-packages](https://github.com/termux/termux-packages/wiki)  
##

vrtareg avatar Oct 04 '24 08:10 vrtareg

Screenshot_2024-10-03-07-33-36-274_com.termux.jpg

Screenshot_2024-10-03-07-33-33-450_com.termux.jpg

vrtareg avatar Oct 04 '24 08:10 vrtareg