tty_clamp_line
if (tty_clamp_line(tty, ctx, px, py, nx, &i, &x, &rx, &ry))
if (tty_clamp_line(tty, ctx, 0, py, nx, &i, &x, &rx, &ry)) {