Skip to contentSkip to conversation

base-files:fix the command line wrap around issue

PATCH In review [email protected] 4 participants 4 messages May 20, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 base-files:fix the command line wrap around issue

From: Zongchun Yu <[email protected]>

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.

---
 recipes-core/base-files/base-files_3.0.14.bbappend |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 recipes-core/base-files/base-files_3.0.14.bbappend
recipes-core/base-files/base-files_3.0.14.bbappend new file +8 -0
new file mode 100644
index 0000000..5401e99
@@ -0,0 +1,8 @@
+do_install_append () {
+   echo "export COLUMNS=80" >> ${D}${sysconfdir}/profile
+   install -d ${D}/home/root
+   echo "export COLUMNS=2000" >> ${D}/home/root/.profile
+   echo "if [ -f /usr/bin/resize ]; then /usr/bin/resize > /dev/null; fi" >> ${D}/home/root/.profile
+}
+
+FILES_${PN} += "/home/root/.profile"
Signature · 1 line
1.6.2.5
#1 lore raw
Quoted 28 lines

-----Original Message-----
From: Yu Zongchun-B40527
Sent: Monday, May 20, 2013 11:21 AM
To: [email protected]
Cc: Luo Zhenhua-B19537; Liu Ting-B28495; Guo Chunrong-B40290; Yu Zongchun-B40527
Subject: [PATCH] [meta-fsl-ppc,master]base-files:fix the command line wrap around issue

From: Zongchun Yu <[email protected]>

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.

---
 recipes-core/base-files/base-files_3.0.14.bbappend |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)  create mode 100644

recipes-core/base-files/base-files_3.0.14.bbappend

recipes-core/base-files/base-files_3.0.14.bbappend new file +0 -0
new file mode 100644
index 0000000..5401e99

recipes-core/base-files/base-files_3.0.14.bbappend line 4

Quoted 4 lines
recipes-core/base-files/base-files_3.0.14.bbappend new file +4 -0
@@ -0,0 +1,8 @@
+do_install_append () {
+   echo "export COLUMNS=80" >> ${D}${sysconfdir}/profile
+   install -d ${D}/home/root
+   echo "export COLUMNS=2000" >> ${D}/home/root/.profile

Home directory of root can be customized in Yocto. And what about other account?

Quoted 6 lines
recipes-core/base-files/base-files_3.0.14.bbappend new file +4 -1
+   echo "if [ -f /usr/bin/resize ]; then /usr/bin/resize > /dev/null;
+fi" >> ${D}/home/root/.profile }
+
+FILES_${PN} += "/home/root/.profile"
--

1.6.2.5

#2 lore raw
In reply to [email protected]
Quoted 9 lines · On Mon, May 20, 2013 at 12:21 AM, <[email protected]> wrote:

From: Zongchun Yu <[email protected]>

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.

I think this needs to be fixed in OE-Core/Yocto and it is not BSP related. Please propose a patch for OE-Core that fixes it generically.

Signature · 3 lines
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
#3 lore raw
Quoted 12 lines · Otavio Salvador
Quoted 8 lines · On Mon, May 20, 2013 at 12:21 AM, <[email protected]> wrote:

From: Zongchun Yu <[email protected]>

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.

Quoted 5 lines
Quoted 1 line

I think this needs to be fixed in OE-Core/Yocto and it is not BSP related. Please propose a patch for OE-Core that fixes it generically.

Yes, we also have this same issue in meta-fsl-arm and it is quite annoying.

Hopefully it can be fixed in oe-core.