aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2015-05-06 14:40:05 -0500
committerElliott Hughes2015-05-06 23:17:05 -0500
commitc049163234003ef463bca018920622bc8269c69b (patch)
treed2a34c360eab7268e2642857367cc4bac8dce6b8 /screen_ui.h
parentaeb980bd8958e3c6e135835aa7d34b5c4e3a601b (diff)
downloadplatform-bootable-recovery-c049163234003ef463bca018920622bc8269c69b.tar.gz
platform-bootable-recovery-c049163234003ef463bca018920622bc8269c69b.tar.xz
platform-bootable-recovery-c049163234003ef463bca018920622bc8269c69b.zip
Add an alternate screen for viewing recovery logs.
This makes it easier to go back and forth without losing current output. Also make the display more like regular more(1). Bug: http://b/20834540 Change-Id: Icc5703e9c8a378cc7072d8ebb79e34451267ee1b
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/screen_ui.h b/screen_ui.h
index 46165d90..ea05bf15 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -89,18 +89,23 @@ class ScreenRecoveryUI : public RecoveryUI {
89 // true when both graphics pages are the same (except for the progress bar). 89 // true when both graphics pages are the same (except for the progress bar).
90 bool pagesIdentical; 90 bool pagesIdentical;
91 91
92 size_t text_cols_, text_rows_;
93
92 // Log text overlay, displayed when a magic key is pressed. 94 // Log text overlay, displayed when a magic key is pressed.
93 char** text; 95 char** text_;
94 size_t text_cols, text_rows; 96 size_t text_col_, text_row_, text_top_;
95 size_t text_col, text_row, text_top; 97
96 bool show_text; 98 bool show_text;
97 bool show_text_ever; // has show_text ever been true? 99 bool show_text_ever; // has show_text ever been true?
98 100
99 char** menu; 101 char** menu_;
100 const char* const* menu_headers; 102 const char* const* menu_headers_;
101 bool show_menu; 103 bool show_menu;
102 int menu_items, menu_sel; 104 int menu_items, menu_sel;
103 105
106 // An alternate text screen, swapped with 'text_' when we're viewing a log file.
107 char** file_viewer_text_;
108
104 pthread_t progress_thread_; 109 pthread_t progress_thread_;
105 110
106 int animation_fps; 111 int animation_fps;