termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
36.06k stars 3.78k forks source link

Line breaks and copy issues #1397

Open he852100 opened 4 years ago

he852100 commented 4 years ago

With a double width character wrapping, a failure occurs when only one English character can be tolerated at the end of the line.

Screenshot_20191226_234232 Screenshot_20191226_234434

Copy results will increase the space character

dndynyenethtsnydntsbtsntsbtsbstnstbstb 你就
ghost commented 4 years ago

@he852100 Can you reproduce this with ANY package from Termux repos ?

he852100 commented 4 years ago

https://youtu.be/EJos-cHmgD0

fornwall commented 4 years ago

Hello and thanks for reporting! I can reproduce the issue and understand it.

With | being the end of the terminal width, when we are at

abcde |

and insert a double width character such as 枝, we end up with

abcde |
枝    |

and the space after e is copied.

@he852100 Do you know of a terminal emulator which handles this well, where one could look for inspiration? I just tried in Terminal.app and iTerm2 on macOS and those seems to have the same behaviour.