[yocto] Awkward line wrapping in bash

Randy MacLeod randy.macleod at windriver.com
Thu Oct 3 11:43:59 PDT 2019


On 10/3/19 6:54 AM, phodina wrote:
> Hi,
> 
> so I managed to minimize the build image and run it in QEMU. Now I build only poky, open-embedded and our own layer, containing minimal recipes. The problem with the awkward line wrapping is still present. Sometimes it doesn't come up until I change the size of terminal window.

Is that on the master branch?

> 
> More interesting is that if I run `busybox sh` the issue is not present and the line wraps correctly.
> 
> The issue happens with ssh as well as serial.

Interesting.

> 
> I tried to install the `xterm` pkg which has `resize` binary for changing the terminal window size, but without any luck.

Why not?
I know that the meta-overc devs added xterm to get resize:
https://github.com/OverC/meta-overc/commit/729f50aef024db293986ff320713ddf46bcb300b

> 
> Kind regards
> Petr

Thanks for simplifying and testing again.
If you want to continue to debug that would be great but
you can also open a YP bugzilla defect. Include
as much info as you can and perhaps a screenshot/image.

../Randy
> 
> 
> Sent with ProtonMail Secure Email.
> 
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Thursday, September 19, 2019 8:45 PM, Randy MacLeod <randy.macleod at windriver.com> wrote:
> 
>> On 9/19/19 11:43 AM, phodina wrote:
>>
>>> Hi,
>>> based on André recommendation I commented out the PS1 variable and now I get `-sh-4.4#` for the prompt. I also checked and nothing is overwriting the variable.
>>> But I tried to change the size of the shell by using `stty cols 100 rows 40` as well as different sizes (smaller and bigger than 80 columns), but the amount of characters I get on the line stays at 81 followed by carrige return. However if I record the session with `script` I get the correct amount of characters per line.
>>
>> If you are able to reproduce this problem on the master, or a
>> stable (1) branch with one of the supported qemu or HW BSPs (2),
>> please open a defect in:
>> https://bugzilla.yoctoproject.org/
>>
>> Please report the branch, what layers you are using (hopefully you
>> can reproduce it with just oe-core/poky + a HW layer) and
>> with a standard image.
>>
>> ../Randy
>>
>> (1) https://wiki.yoctoproject.org/wiki/Releases
>>
>> (2):
>> The list here is a good start, I'm not sure about the FSL support and
>> I suspect that minnow board is no longer relevant.
>>
>> https://bugzilla.yoctoproject.org/describecomponents.cgi?product=BSPs
>>
>> If your hardware isn't listed, and you can't reproduce the issue
>> in qemu or supported HW, you should contact your HW supplier.
>>
>> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> Randy MacLeod
>>
>> ==============
>>
>> Wind River Linux
>>
>> =================
> 
> 


-- 
# Randy MacLeod
# Wind River Linux


More information about the yocto mailing list