ARM_User_Space_App: resize the terminal to print out all lines master
authorHongmei Gou <a0271529@ti.com>
Wed, 17 Apr 2019 21:49:19 +0000 (17:49 -0400)
committerHongmei Gou <a0271529@ti.com>
Wed, 17 Apr 2019 21:49:19 +0000 (17:49 -0400)
* 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>
ARM_User_Space_App/arm_user_space_app.c

index b8492c14b3cf0c11d29a5f793affcebd10765ae0..fffe724a3a8d74b47d80bad525a244f249918f9d 100644 (file)
@@ -179,6 +179,9 @@ void *print_func(void *data)
        int i;
        float frequency;
 
+        /* Resize the terminal to display all lines */
+        system("resize -s 30 80");
+
        /* Initialize the screen */
        initscr();
        /* Set the timeout to 250ms for waiting for user input */