If I open a program, say evince, from the GNOME GUI, it is not attached to a terminal. If I send it a signal, it acts accordingly but nothing shows up in my terminal.
If I were to open it in a terminal to start with and allow it to run in the foreground, it would show what signals it had received.
Say I run evince as just evince from the terminal. And then in another, I run ps -e, find its PID, and then do kill -11 [PID]. It will print out "Segmentation fault (Core dumped)". For other signals, it may print "Received signal..." How can I start a terminal and have it shows signals that are sent to a program that was not started within a terminal but rather a GUI?
Is it possible to open a program in the GUI, and then attach a terminal to it so I can see the same behavior as if I had opened it from within the terminal?