All of lore.kernel.org
 help / color / mirror / Atom feed
From: Edgar Bonet <bonet@grenoble.cnrs.fr>
To: buildroot@buildroot.org
Subject: Re: [Buildroot] Issue with capture of emulator output in runtime test infra
Date: Tue, 5 Oct 2021 10:54:24 +0200	[thread overview]
Message-ID: <e21124af-b549-cdae-9e72-d991ba660404@grenoble.cnrs.fr> (raw)
In-Reply-To: <20211005053351.GG1504958@scaer>

Hi!

In response to my suggestion of issuing

    COLUMNS=29999 exec sh

to avoid the command line wrapping, Yann E. MORIN wrote:
> What about actually telling the shell the size we want::
>
>     # stty columns 29999

Good idea: it seems indeed cleaner than starting a new shell. This is
actually telling the kernel's tty driver about the terminal width. The
shell then gets this info from the kernel, via the TIOCGWINSZ ioctl, and
it uses this width unless it is overridden by $COLUMNS.

I just tested on an actual board running Buildroot 2021.08, and it does
indeed prevent the shell from wrapping the lines.

I will send a pull request. May I add your name as Co-authored-by?

Regards,

Edgar.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2021-10-05  8:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-19 12:10 [Buildroot] Issue with capture of emulator output in runtime test infra Thomas Petazzoni
2021-09-19 16:59 ` Edgar Bonet
2021-09-20  8:55   ` Edgar Bonet
2021-10-04 11:55     ` Peter Korsgaard
2021-10-04 20:46       ` Edgar Bonet
2021-10-05  5:33         ` Yann E. MORIN
2021-10-05  8:54           ` Edgar Bonet [this message]
2021-10-05 16:04             ` Yann E. MORIN
2021-10-04 11:52 ` Peter Korsgaard
2021-10-04 12:14   ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e21124af-b549-cdae-9e72-d991ba660404@grenoble.cnrs.fr \
    --to=bonet@grenoble.cnrs.fr \
    --cc=buildroot@buildroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.