@@ 909-921 (lines=13) @@ | ||
906 | # Display right sidebar |
|
907 | self.new_column() |
|
908 | for p in self._right_sidebar: |
|
909 | if (hasattr(self.args, 'enable_' + p) or hasattr(self.args, 'disable_' + p)) and p in stat_display: |
|
910 | self.new_line() |
|
911 | if p == 'processlist': |
|
912 | self.display_plugin( |
|
913 | stat_display['processlist'], |
|
914 | display_optional=(self.term_window.getmaxyx()[1] > 102), |
|
915 | display_additional=(not MACOS), |
|
916 | max_y=( |
|
917 | self.term_window.getmaxyx()[0] - self.get_stats_display_height(stat_display['alert']) - 2 |
|
918 | ), |
|
919 | ) |
|
920 | else: |
|
921 | self.display_plugin(stat_display[p]) |
|
922 | ||
923 | def display_popup( |
|
924 | self, message, size_x=None, size_y=None, duration=3, popup_type='info', input_size=30, input_value=None |
|
@@ 882-892 (lines=11) @@ | ||
879 | return |
|
880 | ||
881 | for p in self._left_sidebar: |
|
882 | if (hasattr(self.args, 'enable_' + p) or hasattr(self.args, 'disable_' + p)) and p in stat_display: |
|
883 | self.new_line() |
|
884 | if p == 'sensors': |
|
885 | self.display_plugin( |
|
886 | stat_display['sensors'], |
|
887 | max_y=( |
|
888 | self.term_window.getmaxyx()[0] - self.get_stats_display_height(stat_display['now']) - 2 |
|
889 | ), |
|
890 | ) |
|
891 | else: |
|
892 | self.display_plugin(stat_display[p]) |
|
893 | ||
894 | def __display_right(self, stat_display): |
|
895 | """Display the right sidebar in the Curses interface. |