From: Zongchun YU <b40527@freescale.com>
To: "'Burton, Ross'" <ross.burton@intel.com>,
'OE-core' <openembedded-core@lists.openembedded.org>
Subject: 答复: [PATCH] base-files:fix the command line wrap around issue
Date: Tue, 21 May 2013 19:20:43 +0800 [thread overview]
Message-ID: <002d01ce5615$3eac1510$bc043f30$@com> (raw)
In-Reply-To: <CAJTo0LZA89rPdGy65ShyfxjS4jenHsinO5JPsTbWNi3sgOD=Eg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2011 bytes --]
Hello Ross.
Thanks for your comments, I am sorry. the description is not clear. please see the below content:
Sometimes we may use long commands. For example:
Normal display:
user@host:~cmd arg1 arg2 arg3 arg4 arg5…………argn-1 argn
| |
1 80
Our board display:
argn@host:~cmd arg1 arg2 arg3 arg4 arg5…………argn-1
| |
1 80
When the number of character is more than 80, the following character
will cover the character before. I.e “argn” cover “user”.
We tried to add "if [ -f /usr/bin/resize ]; then /usr/bin/resize > /dev/null; fi" to /etc/profile before.
But when we boot up the board and login using our test tool, we met some invalid characters.
So we give up the choice and only add “COLUMNS=2000” to /etc/profile.
I know it is a bad workaround, Do you have a good method to overcome the issue?
Best Regards
Zongchun
发件人: Burton, Ross [mailto:ross.burton@intel.com]
发送时间: 2013年5月21日 17:31
收件人: b40527@freescale.com; OE-core
主题: Re: [OE-core] [PATCH] base-files:fix the command line wrap around issue
On Tuesday, 21 May 2013, wrote:
+export COLUMNS=2000
But there are not 2000 columns, you're just hard-coding a value that is expected to dynamically change.
i.e, on my desktop in a gnome-terminal:
$ echo $COLUMNS
80
Then if I resize the window:
$ echo $COLUMNS
117
This is a bad workaround, can you explain the actual problem? Are you not seeing wrapping at a VT, in a terminal, or what?
Ross
[-- Attachment #2: Type: text/html, Size: 12324 bytes --]
next prev parent reply other threads:[~2013-05-21 11:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-21 7:04 [PATCH] base-files:fix the command line wrap around issue b40527
2013-05-21 9:30 ` Burton, Ross
2013-05-21 11:20 ` Zongchun YU [this message]
2013-05-28 2:51 ` Zongchun YU
2013-05-28 3:14 ` Otavio Salvador
2013-05-28 4:28 ` Zongchun YU
2013-05-29 15:24 ` Burton, Ross
2013-05-30 2:17 ` Zongchun YU
2013-05-30 17:30 ` Otavio Salvador
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='002d01ce5615$3eac1510$bc043f30$@com' \
--to=b40527@freescale.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox