...but when i opened it it is BLANK BLACK image
Perhaps you are trying from a console ( very black ) and not a terminal in kde as I was.
In that case, this works on my system...
setterm -dump 2-NR-CONSOLES
You could also have a look at the command: script
The ouput is saved in a file called typescript
Use ctrl d to end the capture