@@ -272,7 +272,7 @@ def setup(self, stdscr):
272
272
self .setup_return_status = False
273
273
return
274
274
if logger .isEnabledFor (logging .INFO ):
275
- logger .info ("GUI initialization on python v. {0} on {1}" .format (python_version .replace ('\n ' , ' ' ).replace ('\r ' , ' ' ), system ()))
275
+ logger .info ("TUI initialization on python v. {0} on {1}" .format (python_version .replace ('\n ' , ' ' ).replace ('\r ' , ' ' ), system ()))
276
276
logger .info ('Terminal supports {} colors' .format (curses .COLORS ))
277
277
self .stdscr = stdscr
278
278
from pyradio import version
@@ -553,10 +553,13 @@ def __displayBodyLine(self, lineNum, pad, station):
553
553
if lineNum + self .startPos == self .selection and \
554
554
self .selection == self .playing :
555
555
col = curses .color_pair (9 )
556
- # sep_col = curses.color_pair(5)
556
+ # initialize col_sep here to have separated cursor
557
+ sep_col = curses .color_pair (5 )
557
558
self .bodyWin .hline (lineNum , 0 , ' ' , self .bodyMaxX , col )
558
559
elif lineNum + self .startPos == self .selection :
559
560
col = curses .color_pair (6 )
561
+ # initialize col_sep here to have separated cursor
562
+ sep_col = curses .color_pair (5 )
560
563
self .bodyWin .hline (lineNum , 0 , ' ' , self .bodyMaxX , col )
561
564
elif lineNum + self .startPos == self .playing :
562
565
col = curses .color_pair (4 )
@@ -582,8 +585,9 @@ def __displayBodyLine(self, lineNum, pad, station):
582
585
583
586
if self ._cnf .browsing_station_service and sep_col :
584
587
ticks = self ._cnf .online_browser .get_columns_separators (self .bodyMaxX )
585
- for n in ticks :
586
- self .bodyWin .chgat (lineNum + 1 , n , 1 , sep_col )
588
+ if ticks :
589
+ for n in ticks :
590
+ self .bodyWin .chgat (lineNum , n - self ._cnf .online_browser .outer_internal_body_diff , 1 , sep_col )
587
591
588
592
def run (self ):
589
593
if self .ws .operation_mode == self .ws .NO_PLAYER_ERROR_MODE :
@@ -2519,7 +2523,7 @@ def keypress(self, char):
2519
2523
self .stations .append (self ._station_editor .new_station )
2520
2524
self .number_of_items = len (self .stations )
2521
2525
self .selection = self .number_of_items - 1
2522
- self .startPos = self .number_of_items - self .bodyMaxY2
2526
+ self .startPos = self .number_of_items - self .bodyMaxY
2523
2527
else :
2524
2528
ret , self .number_of_items = self ._cnf .insert_station (self ._station_editor .new_station , self .selection + 1 )
2525
2529
self .stations = self ._cnf .stations
0 commit comments