@@ -26,7 +26,7 @@ def undosize(size_s):
2626 raise argparse .ArgumentTypeError ("Undo size must be between 1 and 1000." )
2727
2828def main ():
29- DUR_VER = '0.21.0 '
29+ DUR_VER = '0.21.1 '
3030 DUR_FILE_VER = 7
3131 DEBUG_MODE = False # debug = makes debug_write available, sends more notifications
3232 durlogo = '''
@@ -82,7 +82,7 @@ def main():
8282 app .setDebug (True )
8383 if args .undosize :
8484 app .undoHistorySize = int (args .undosize [0 ])
85- showStartupScreen = True
85+ app . showStartupScreen = True
8686
8787
8888 term_size = os .get_terminal_size ()
@@ -102,9 +102,9 @@ def main():
102102 if term_size [1 ] > 24 :
103103 app .height = term_size [1 ] - 2
104104 if args .play :
105- showStartupScreen = False
105+ app . showStartupScreen = False
106106 elif args .quick :
107- showStartupScreen = False
107+ app . showStartupScreen = False
108108 app .quickStart = True
109109 if args .nomouse :
110110 app .hasMouse = False
@@ -155,7 +155,7 @@ def main():
155155 durhelp_fullpath = 'durdraw/help/durhelp.dur'
156156 app .loadHelpFile (durhelp_fullpath )
157157
158- if showStartupScreen :
158+ if app . showStartupScreen :
159159 print (durlogo )
160160 if app .hasHelpFile :
161161 print (f"Help file: Found in { durhelp_fullpath } " )
@@ -178,7 +178,10 @@ def main():
178178 else :
179179 print (f"Configuration file not found." )
180180
181- print (f"Theme: { app .themeName } " )
181+ if app .themesEnabled :
182+ print (f"Theme: { app .themeName } " )
183+ else :
184+ print (f"Theme: Default (none)" )
182185
183186 print ("Undo history size = %d" % app .undoHistorySize )
184187 if app .width == 80 and app .height == 24 :
0 commit comments