If this occurs as soon as you launch the Terminal app or open a new Terminal tab/window/session, then one of your shell configuration "profile" files has something in it which is broken.
We definitely need more details as @ConT3ch mentioned.
I have no idea what this means:
hanindafn wrote:
When I want to open the code file through the terminal which is ". code" the result is like that. can you help me?
Writing an effective Apple Support Communities question - Apple Community
Plus if you are going to post any Terminal commands & output, then please use the "Code Insertion" tool on the forum editing toolbar with an icon "</>". This makes it much easier to read & interpret the Terminal commands, output & error messages. Or post a screenshot of the Terminal window (as long as it is not a miniaturized picture since we need to be able to view it clearly without getting eye strain or headaches).