rougier / nano-theme

GNU Emacs / N Λ N O Theme
GNU General Public License v3.0
376 stars 35 forks source link

nano-theme does not set the background in terminal mode in the first frame #47

Open ronisbr opened 1 year ago

ronisbr commented 1 year ago

Hi!

I am trying to use nano-theme in the terminal mode. It seems that it does not set the background when the theme is loaded. Here is the screenshot just after load-theme:

Captura de Tela 2023-02-03 às 09 41 21

However, if I create a new frame with nano-new-frame, then the background is set to the correct color:

Captura de Tela 2023-02-03 às 09 41 52
rougier commented 1 year ago

That' surprising that nano-new-frame is even working since it is supposed to work only with a gui. Do the new frame overwrite the current window ? (I guess you don't get a new terminal window)

ronisbr commented 1 year ago

Yes! It overwrite the current window. It seems to open "another" Emacs, since I need to exit twice to quit Emacs.

rougier commented 1 year ago

Interesting. nano-new-frame should then check for GUI before trying to create an new frame. Concerning the background color, I'm not quite sure what is happening Could you give a try to nano-theme (on ELPA) and check if it has the same problem?