If you write about multiple lines when entering code into the prompt, it will be open, but there is no way to check the topmost written code. It does not expose 1 to 3 lines, nor does it provide scrolling.
I think it should work like Google Chrome or there should be a way to solve this within safari.
If there's any way I don't know, please help.