When implementing GUIs, a typescript is useless since it only records the text displayed in the terminal. Instead you need a screen capture program to save images of the windows that your GUI displays.
Be sure to save just the open window. It's not necessary to capture your whole screen.
There's a screen capture program called Grab. Is this the Apple-default screen-capture program?
KDE should have a program called KSnapshot in its start menu. Find and use that program.
I'm not sure if there's anything free or built in...