All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] base-files:fix the command line wrap around issue
@ 2013-05-21  7:04 b40527
  2013-05-21  9:30 ` Burton, Ross
  0 siblings, 1 reply; 9+ messages in thread
From: b40527 @ 2013-05-21  7:04 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zongchun Yu

From: Zongchun Yu <b40527@freescale.com>

when the character number of cmdline is more than 80. the following character should
go to a new line. rather than cover the prompt and the inputting character before.

Signed-off-by: Zongchun Yu <b40527@freescale.com>
---
 meta/recipes-core/base-files/base-files/profile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile
index 8eeaac3..f58ae3d 100644
--- a/meta/recipes-core/base-files/base-files/profile
+++ b/meta/recipes-core/base-files/base-files/profile
@@ -27,6 +27,7 @@ if [ -d /etc/profile.d ]; then
 fi
 
 export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM
+export COLUMNS=2000
 
 umask 022
 
-- 
1.6.2.5




^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] base-files:fix the command line wrap around issue
  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
  2013-05-28  2:51   ` Zongchun YU
  0 siblings, 2 replies; 9+ messages in thread
From: Burton, Ross @ 2013-05-21  9:30 UTC (permalink / raw)
  To: b40527, OE-core

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

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: 734 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* 答复: [PATCH] base-files:fix the command line wrap around issue
  2013-05-21  9:30 ` Burton, Ross
@ 2013-05-21 11:20   ` Zongchun YU
  2013-05-28  2:51   ` Zongchun YU
  1 sibling, 0 replies; 9+ messages in thread
From: Zongchun YU @ 2013-05-21 11:20 UTC (permalink / raw)
  To: 'Burton, Ross', 'OE-core'

[-- 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 --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] base-files:fix the command line wrap around issue
  2013-05-21  9:30 ` Burton, Ross
  2013-05-21 11:20   ` 答复: " Zongchun YU
@ 2013-05-28  2:51   ` Zongchun YU
  2013-05-28  3:14     ` Otavio Salvador
  1 sibling, 1 reply; 9+ messages in thread
From: Zongchun YU @ 2013-05-28  2:51 UTC (permalink / raw)
  To: 'Burton, Ross', 'OE-core'

[-- Attachment #1: Type: text/plain, Size: 125 bytes --]

Hello Ross.

 

Do you have any other comments about this patch?

 

Thank you!

 

Best Regards

Zongchun 


[-- Attachment #2: Type: text/html, Size: 2919 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] base-files:fix the command line wrap around issue
  2013-05-28  2:51   ` Zongchun YU
@ 2013-05-28  3:14     ` Otavio Salvador
  2013-05-28  4:28       ` Zongchun YU
  0 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2013-05-28  3:14 UTC (permalink / raw)
  To: Zongchun YU; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

On Mon, May 27, 2013 at 11:51 PM, Zongchun YU <b40527@freescale.com> wrote:

>   Hello Ross.****
>
> ** **
>
> Do you have any other comments about this patch?
>

It seems that setting it in environment is a workaround for the real issue.
Can't the same be accomplished changing busybox settings?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

[-- Attachment #2: Type: text/html, Size: 1533 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] base-files:fix the command line wrap around issue
  2013-05-28  3:14     ` Otavio Salvador
@ 2013-05-28  4:28       ` Zongchun YU
  2013-05-29 15:24         ` Burton, Ross
  0 siblings, 1 reply; 9+ messages in thread
From: Zongchun YU @ 2013-05-28  4:28 UTC (permalink / raw)
  To: 'Otavio Salvador'; +Cc: 'OE-core'

[-- Attachment #1: Type: text/plain, Size: 1089 bytes --]

It seems that setting it in environment is a workaround for the real issue.
Can't the same be accomplished changing busybox settings?

 

Can you explain your idea in detail? Do you mean changing the setting of
“resize” in busybox or other?

Thank you very much!

 

Best Regards

Zongchun

发件人: otavio.salvador@gmail.com [mailto:otavio.salvador@gmail.com] 代表
Otavio Salvador
发送时间: Tuesday, May 28, 2013 11:15 AM
收件人: Zongchun YU
抄送: Burton, Ross; OE-core
主题: Re: [OE-core] [PATCH] base-files:fix the command line wrap around
issue

 

 

 

On Mon, May 27, 2013 at 11:51 PM, Zongchun YU <b40527@freescale.com> wrote:

Hello Ross.

 

Do you have any other comments about this patch?

 

It seems that setting it in environment is a workaround for the real issue.
Can't the same be accomplished changing busybox settings? 

 

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


[-- Attachment #2: Type: text/html, Size: 7364 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] base-files:fix the command line wrap around issue
  2013-05-28  4:28       ` Zongchun YU
@ 2013-05-29 15:24         ` Burton, Ross
  2013-05-30  2:17           ` Zongchun YU
  0 siblings, 1 reply; 9+ messages in thread
From: Burton, Ross @ 2013-05-29 15:24 UTC (permalink / raw)
  To: Zongchun YU; +Cc: Otavio Salvador, OE-core

On 28 May 2013 05:28, Zongchun YU <b40527@freescale.com> wrote:
> It seems that setting it in environment is a workaround for the real issue.
> Can't the same be accomplished changing busybox settings?
>
> Can you explain your idea in detail? Do you mean changing the setting of
> “resize” in busybox or other?

Yes.  At least for my target, CONFIG_RESIZE isn't enabled that I'd
expect to be required for this to work.

Ross


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] base-files:fix the command line wrap around issue
  2013-05-29 15:24         ` Burton, Ross
@ 2013-05-30  2:17           ` Zongchun YU
  2013-05-30 17:30             ` Otavio Salvador
  0 siblings, 1 reply; 9+ messages in thread
From: Zongchun YU @ 2013-05-30  2:17 UTC (permalink / raw)
  To: 'Burton, Ross'; +Cc: 'Otavio Salvador', 'OE-core'

Yes.  At least for my target, CONFIG_RESIZE isn't enabled that I'd expect to be required for this to work.

for my target, CONFIG_RESIZE have been enabled, if we use resize in profile, we may meet the invalid character issue as I mentioned earlier.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] base-files:fix the command line wrap around issue
  2013-05-30  2:17           ` Zongchun YU
@ 2013-05-30 17:30             ` Otavio Salvador
  0 siblings, 0 replies; 9+ messages in thread
From: Otavio Salvador @ 2013-05-30 17:30 UTC (permalink / raw)
  To: Zongchun YU; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 678 bytes --]

On Wed, May 29, 2013 at 11:17 PM, Zongchun YU <b40527@freescale.com> wrote:

> Yes.  At least for my target, CONFIG_RESIZE isn't enabled that I'd expect
> to be required for this to work.
>
> for my target, CONFIG_RESIZE have been enabled, if we use resize in
> profile, we may meet the invalid character issue as I mentioned earlier.
>

I think we need to find the cause of the invalid character; your proposed
patch is a workaround and not a fix for the real issue.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

[-- Attachment #2: Type: text/html, Size: 1183 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-05-30 17:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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.