minuitwrp: fix crash issue, when the console use TTF font to display unicode font.
gui: fix terminal command unusual line breaks and missing characters at the end of a read buf.

Change-Id: I8d3d740b6066b1594c5148b2012f0e7bcbecc22b
diff --git a/gui/action.cpp b/gui/action.cpp
index 16a550b..3425512 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -1360,8 +1360,7 @@
 				} else {
 					// Try to read output
 					memset(line, 0, sizeof(line));
-					bytes_read = read(fd, line, sizeof(line));
-					if (bytes_read > 0)
+					if(fgets(line, sizeof(line), fp) != NULL)
 						gui_print("%s", line); // Display output
 					else
 						keep_going = 0; // Done executing