def clear_line(self, y_pos: int) -> None:
        """Clear a line of content, excluding the chrome"""
        (min_x, _, _, _) = self.get_chrome_boundaries()
        (_, max_x) = self.stdscr.getmaxyx()
        chars_to_delete = range(min_x, max_x)
        # we go in the **reverse** order since the original documentation
        # of delchar (http://dell9.ma.utexas.edu/cgi-bin/man-cgi?delch+3)
        # mentions that delchar actually moves all the characters to the right
        # of the cursor
        for x_pos in reversed(chars_to_delete):
            self.stdscr.delch(y_pos, x_pos)
Clear a line of content, excluding the chrome
src/pathpicker/screen_control.py