From 09c491ca1fd6d3110eafb0d07e45b25bdc3bd5d0 Mon Sep 17 00:00:00 2001 From: Guangyao Ma Date: Wed, 14 Jul 2021 14:40:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=AE=BD=E5=BA=A6=E5=88=B0400?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 由于内核暂不支持tty,窗口默认宽度写死的为80。在流水线中,往往有时候需要更宽的 窗口宽度。在tty支持动态获取和设置大小之前,先调整大小为400。 re #I40LQX Signed-off-by: Guangyao Ma Change-Id: Ic21a8b7098f47b7d608762678eebb7b8ecb67ce4 --- kernel/common/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/common/console.c b/kernel/common/console.c index 353e98c3..4e09335f 100644 --- a/kernel/common/console.c +++ b/kernel/common/console.c @@ -842,7 +842,7 @@ STATIC INT32 ConsoleSetSW(CONSOLE_CB *consoleCB, unsigned long arg) return LOS_OK; } -#define DEFAULT_WINDOW_SIZE_COL 80 +#define DEFAULT_WINDOW_SIZE_COL 400 #define DEFAULT_WINDOW_SIZE_ROW 24 STATIC INT32 ConsoleGetWinSize(unsigned long arg) {