import curses


def newwin_after(prev_win, h, w, xstart, y_skip=1):
    """
    Create a new curses window starting:
    -   on the y_skip rows after the prev_win,
    -   starting at absolute column xstart

    :param prev_win : curses.win
    :param h : non neg int      Height of new window
    :param w : non neg int      Width of new window
    :param y : starting row of new window within host window (relative)
    :param x : starting column of new window within host (relative) 
    """
    ybeg, xbeg = prev_win.getbegyx()
    ymax, xmax = prev_win.getmaxyx()
    win = curses.newwin(h, w, ybeg + ymax + y_skip - 1, xstart)
    return win