def splash(self):
dirname = os.path.split(os.path.abspath(__file__))[<NUM_LIT:0>]<EOL>try:<EOL><INDENT>splash = open(os.path.join(dirname, "<STR_LIT>"), "<STR_LIT:r>").readlines()<EOL><DEDENT>except IOError:<EOL><INDENT>return<EOL><DEDENT>width = len(max(splash, key=len))<EOL>y = int(self.y_grid / <NUM_LIT:2>) - len(splash)<EOL>x = int(self.x_grid / <NUM_LIT:2>) - int(width / <NUM_LIT:2>)<EOL>if self.x_grid > width:<EOL><INDENT>for i, line in enumerate(splash):<EOL><INDENT>self.win.addstr(y + i, x, line, curses.color_pair(<NUM_LIT:5>))<EOL><DEDENT><DEDENT>
Draw splash screen