[OE-core] 答复: [PATCH] base-files:fix the command line wrap around issue
Zongchun YU
b40527 at freescale.com
Tue May 21 11:20:43 UTC 2013
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 at host:~cmd arg1 arg2 arg3 arg4 arg5…………argn-1 argn
| |
1 80
Our board display:
argn at 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 at intel.com]
发送时间: 2013年5月21日 17:31
收件人: b40527 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20130521/6bb17133/attachment-0002.html>
More information about the Openembedded-core
mailing list