@@ -272,12 +272,7 @@ def smarter_request_reload(desc):
272
272
self .get_term_hw = get_term_hw
273
273
self .get_cursor_vertical_diff = get_cursor_vertical_diff
274
274
275
- self .status_bar = StatusBar (
276
- (_ (" <%s> Rewind <%s> Save <%s> Pastebin <%s> Editor" )
277
- % (config .undo_key , config .save_key , config .pastebin_key , config .external_editor_key )
278
- if config .curtsies_fill_terminal else '' ),
279
- refresh_request = self .request_refresh
280
- )
275
+ self .status_bar = StatusBar ('' , refresh_request = self .request_refresh )
281
276
self .edit_keys = edit_keys .mapping_with_config (config , key_dispatch )
282
277
logger .debug ("starting parent init" )
283
278
super (Repl , self ).__init__ (interp , config )
@@ -1009,18 +1004,15 @@ def paint(self, about_to_exit=False, user_quit=False):
1009
1004
self .clean_up_current_line_for_exit () # exception to not changing state!
1010
1005
1011
1006
width , min_height = self .width , self .height
1012
- show_status_bar = bool (self .status_bar .should_show_message ) or ( self .config . curtsies_fill_terminal or self . status_bar .has_focus )
1007
+ show_status_bar = bool (self .status_bar .should_show_message ) or self .status_bar .has_focus
1013
1008
if show_status_bar :
1014
1009
min_height -= 1
1015
1010
1016
1011
current_line_start_row = len (self .lines_for_display ) - max (0 , self .scroll_offset )
1017
1012
#current_line_start_row = len(self.lines_for_display) - self.scroll_offset
1018
1013
if self .request_paint_to_clear_screen : # or show_status_bar and about_to_exit ?
1019
1014
self .request_paint_to_clear_screen = False
1020
- if self .config .curtsies_fill_terminal : #TODO clean up this logic - really necessary check?
1021
- arr = FSArray (self .height - 1 + current_line_start_row , width )
1022
- else :
1023
- arr = FSArray (self .height + current_line_start_row , width )
1015
+ arr = FSArray (min_height + current_line_start_row , width )
1024
1016
else :
1025
1017
arr = FSArray (0 , width )
1026
1018
#TODO test case of current line filling up the whole screen (there aren't enough rows to show it)
@@ -1106,23 +1098,11 @@ def paint(self, about_to_exit=False, user_quit=False):
1106
1098
1107
1099
logger .debug ('about to exit: %r' , about_to_exit )
1108
1100
if show_status_bar :
1109
- if self .config .curtsies_fill_terminal :
1110
- if about_to_exit :
1111
- arr [max (arr .height , min_height ), :] = FSArray (1 , width )
1112
- else :
1113
- arr [max (arr .height , min_height ), :] = paint .paint_statusbar (1 , width , self .status_bar .current_line , self .config )
1114
-
1115
- if self .presentation_mode :
1116
- rows = arr .height
1117
- columns = arr .width
1118
- last_key_box = paint .paint_last_events (rows , columns , [events .pp_event (x ) for x in self .last_events if x ])
1119
- arr [arr .height - last_key_box .height :arr .height , arr .width - last_key_box .width :arr .width ] = last_key_box
1101
+ statusbar_row = min_height + 1 if arr .height == min_height else arr .height
1102
+ if about_to_exit :
1103
+ arr [statusbar_row , :] = FSArray (1 , width )
1120
1104
else :
1121
- statusbar_row = min_height + 1 if arr .height == min_height else arr .height
1122
- if about_to_exit :
1123
- arr [statusbar_row , :] = FSArray (1 , width )
1124
- else :
1125
- arr [statusbar_row , :] = paint .paint_statusbar (1 , width , self .status_bar .current_line , self .config )
1105
+ arr [statusbar_row , :] = paint .paint_statusbar (1 , width , self .status_bar .current_line , self .config )
1126
1106
1127
1107
if self .config .color_scheme ['background' ] not in ('d' , 'D' ):
1128
1108
for r in range (arr .height ):
0 commit comments