Raspberry pi terminal suddenly quits when building opencv

that just opens the terminal (vs. not opening a terminal at all and just discarding stdout), but doesn’t keep it open.

open a terminal explicitly, then run that script from there.

this forum is not for help with generic linux user issues. please use https://forums.raspberrypi.com/ for that