termux / termux-float

Termux add-on app to show the terminal in a floating terminal window.
https://f-droid.org/en/packages/com.termux.window
Other
465 stars 77 forks source link

No line wrapping #24

Closed alephalpha0 closed 3 years ago

alephalpha0 commented 4 years ago

Problem description

When typing in a command that is longer than my termux:floats terminal width, the text keeps going on the same line where I am unable to view it.

Steps to reproduce

  1. Launch termux:float
  2. Type a rather long command e.g. curl -LO https://raw.githubusercontent.com/alephalpha0/alephalpha0/master/README.md
  3. Watch the text go past the window border.

Expected behavior

The main termux app, just like most terminals, wraps any text at the window border/terminal 2width and makes a new line. Expected termux:float to do the same behaviour.

Additional information

Screenshot_20200810-050912_Vivaldi-01

Grimler91 commented 4 years ago

It wraps as it should for me. You seem to have a custom PS1, what is it set to?

alephalpha0 commented 4 years ago

Uhm, just #... No real idea how/why that came to be..

% echo $PS1 
%# 
% 
Grimler91 commented 4 years ago

Nevermind, you are using zsh, that's why it's a '%'.

In your screenshot you seem to be missing only two characters. Does it wrap if you write a very long line?

alephalpha0 commented 4 years ago

Screenshot_20200810-092827_Vivaldi I think it might be a mis-setting of the terminal width for termux:float...

This is my incredibly long and not at all well thought out example in the floating terminal to prove my point. I think my terminal width is misset somewhere?

(edit: markdown hates me)

ghost commented 4 years ago

I think it might be a mis-setting of the terminal width for termux:float...

Then it should be reproducible with any shell at default settings, with no plugins installed.

ghost commented 4 years ago

Bash: Screenshot_20200810-200729_Trebuchet

Zsh: Screenshot_20200810-200835_Trebuchet

None of tested shells use "special" configuration or plug-ins.

I'll assume your issue happens due to configuration, specifically highlighting as it often causes issues with small terminal windows (not just in Termux!).