def erase_menu(stdscr, menu_y):
 stdscr.move(menu_y, 0)
 stdscr.clrtoeol()
 stdscr.move((menu_y + 1), 0)
 stdscr.clrtoeol()

def erase_menu ( stdscr , menu_y ) : stdscr . move ( menu_y , 0 ) stdscr . clrtoeol ( ) stdscr . move ( ( menu_y + 1 ) , 0 ) stdscr . clrtoeol ( )
clear the space where the menu resides .