GUI/Terminal Emacs behave differently - same config

As with your last post (Org-capture error's MSWindows) it’s hard to tell what is happening without a complete, self-contained init.el. Also, last time you posted you used Emacs on Windows, but this seems like a Linux distribution.

Please post a init.el that reproduces the issue, and try to make it as minimal as possible (e.g. remove as much as you can, especially third-party packages), otherwise it will be hard to check why that happens.

(For completeness, I took your last posted init.el and was not able to reproduce the issue - but then again, I could not properly load your init.el because it does not work without lots of interaction)