summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongmei Gou2019-04-17 16:49:19 -0500
committerHongmei Gou2019-04-17 16:49:19 -0500
commit0a0f7700d11ec8a6b7ed02e4c70d4bf196ca35e5 (patch)
treea62dc51cc9f24ec77a8ab8451778e4e76cf30fd6
parent7cbdf20ed44eb6486137e3866e43eec39eb7a468 (diff)
downloadtida01555-0a0f7700d11ec8a6b7ed02e4c70d4bf196ca35e5.tar.gz
tida01555-0a0f7700d11ec8a6b7ed02e4c70d4bf196ca35e5.tar.xz
tida01555-0a0f7700d11ec8a6b7ed02e4c70d4bf196ca35e5.zip
ARM_User_Space_App: resize the terminal to print out all linesHEADmaster
* This is required when running the user space application with processor sdk filesystem on NFS, which has screen size of 24 rows, and cannot print out the last several lines for Delay/Compensation, Estimated Frequency, and etc. Signed-off-by: Hongmei Gou <a0271529@ti.com>
-rw-r--r--ARM_User_Space_App/arm_user_space_app.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ARM_User_Space_App/arm_user_space_app.c b/ARM_User_Space_App/arm_user_space_app.c
index b8492c1..fffe724 100644
--- a/ARM_User_Space_App/arm_user_space_app.c
+++ b/ARM_User_Space_App/arm_user_space_app.c
@@ -179,6 +179,9 @@ void *print_func(void *data)
179 int i; 179 int i;
180 float frequency; 180 float frequency;
181 181
182 /* Resize the terminal to display all lines */
183 system("resize -s 30 80");
184
182 /* Initialize the screen */ 185 /* Initialize the screen */
183 initscr(); 186 initscr();
184 /* Set the timeout to 250ms for waiting for user input */ 187 /* Set the timeout to 250ms for waiting for user input */