import curses


def new_border_and_win(ws):
	"""
	Returns two curses windows, one serving as the border, the other as the
	inside from these *_FRAME tuples above.
	"""
	return (
		curses.newwin(ws[1][1], ws[1][0], ws[0][1], ws[0][0]),
		curses.newwin(ws[1][1] - 2, ws[1][0] - 2, ws[0][1] + 1, ws[0][0] + 1),
	)