Terminal continue to run, how to change the terminal back to default
I try to install pysal but I fail. I give up now. However, when I terminate my terminal on mac and launch it again, the terminal keep running and I can't clear all the record. I have relaunched it several times. how do I stop it from running and clear the record, so that I used the terminal in the usual way? I can't type anything there, since it continues to run. I don't know what is the problem. Do I need to reset the terminal? Can anyone give me some advise? Thanks so much!!
Here are the two screenshots of the terminal, the terminal is still running: