def center_print(self, y, string, *args, **kwargs):
    'Print in the center of the screen.\n\n        Parameters\n        ----------\n        y : int\n            The vertical location at which to print.\n        string : str\n            The string to print.\n        *args : tuple\n            Additional arguments to be passed to `stdscr.addstr`.\n        **kwargs : dict, optional\n            Keyword arguments to be passed to `stdscr.addstr`.\n        '
    (height, width) = self.stdscr.getmaxyx()
    str_length = len(string)
    x_mid = (width // 2)
    self.stdscr.addstr(y, (x_mid - (str_length // 2)), string, *args, **kwargs)
Print in the center of the screen.

Parameters
----------
y : int
    The vertical location at which to print.
string : str
    The string to print.
*args : tuple
    Additional arguments to be passed to `stdscr.addstr`.
**kwargs : dict, optional
    Keyword arguments to be passed to `stdscr.addstr`.
def center_print(self, y, string, *args, **kwargs):
    'Print in the center of the screen.\n\n        Parameters\n        ----------\n        y : int\n            The vertical location at which to print.\n        string : str\n            The string to print.\n        *args : tuple\n            Additional arguments to be passed to `stdscr.addstr`.\n        **kwargs : dict, optional\n            Keyword arguments to be passed to `stdscr.addstr`.\n        '
    (height, width) = self.stdscr.getmaxyx()
    str_length = len(string)
    x_mid = (width // 2)
    self.stdscr.addstr(y, (x_mid - (str_length // 2)), string, *args, **kwargs)