If you open kodi out of the terminal, and then close it, the terminal is set to a clear terminal. But it can still be used. Kodi does not fill the full screen. Because of this we use this:
sudo sh -c "TERM=linux setterm -foreground white >/dev/tty0"
If the desktop is on autostart, this will be the background after close kodi. Or if you starting kodi with jivelite, and then close kodi, you will come back to jivelite.