Closed amosbird closed 8 years ago
What are your problems? I'm working in a ssh terminal in tmux every few days.
Highlights get messed up. Lines repeatedly draw on the screen.
Which theme are you using? Some themes do not define proper terminal colors.
The mutliple lines in the modeline might be related to your font not supporting the unicode symbols used there. Try setting dotspacemacs-mode-line-unicode-symbols nil
in your .spacemacs
file. There should already be an entry for this variable.
@cpaulik I didn't change theme settings. Which theme should I use?
spacemacs-dark
should look sane. material
and material-light
also have terminal colors setup (I know because I develop them). See if one of those looks good in your terminal. Then you can look for one you like with SPC T h
.
I've tested spacemacs-dark
, spacemacs-light
, `solarized-dark
, `solarized-light
, they all looked exactly the same to me. I'm using XShell on Windows.
They should definitely not look the same. I can try XShell when I get to work later. No Windows PC at home.
What the value of $TERM
in the shell just before you run emacs?
I just tried with XShell. I connected to my linux machine using ssh and started emacs -> no colors. Doing export TERM=xterm-256color
solved the color issue for me. For a font you could try installing one of the powerline fonts for windows. But I have no idea about the windows support. The [hack][http://sourcefoundry.org/hack/) font should also include the necessary symbols.
@cpaulik Which Xshell's theme do you use?
I've set dotspacemacs-mode-line-unicode-symbols nil
and export TERM=xterm-256color
. Themes do look better. However there are still drawing issues, and pop-up window looks weird.
@amosbird I don't use a special theme
@amosbird what is your terminal emulator ? urxvt
has this behavior on my side, the more I use urxvt the less I find it pleasant.
@syl20bnr I'm using CentOS 6 via XShell on Windows. XShell's terminal is set to xterm
with UTF-8 support.
I'm seeing color issues running screen-256color
.
I'd prefer not to use a cocoa version of emacs.
@jrhorn424 I think this is just an issue with the solarized theme spacemacs uses. See also https://github.com/syl20bnr/spacemacs/issues/1269#issuecomment-147193789
Thanks @cpaulik. Looks like the information on this is a bit distributed. 😉
Same Problem when using Spacemacs on Bash On Ubuntu on Windows 10. Lines redraw. Even in spacemacs-dark theme. Any fixes?
I know this issue has been closed, but I see the same behaviour as @VMatrix1900 - the rending doesn't seem to work correctly in a Bash On Ubuntu On Windows 10 terminal. But interestingly, running Spacemacs inside the terminal in VS Code does work properly. Go figure...
@fruitraccoon The terminal in VS Code is connected to Bash On Ubuntu On Windows 10? I use several different Terminal emulator ssh into the Bash On Windows such as MobaxTerm, Putty etc. Same problem.
@VMatrix1900 In VS Code, I just use the Terminal: Select Default Shell
and I get to choose from Cmd, PowerShell, WSL Bash and Git Bash. Selecting WSL Bash, I can then use emacs
in the terminal and it seems to render correctly, and seems to support 256 colours.
I havn't tried the other terminal emulators you mention, but what I have just tried:
bash -c emacs
seems to work!bash -c emacs
doesn't have the rendering issue, but unicode doesn't seem to be supported (haven't dug into why) (Update: this seems to be due to the font I had, but changing to a font with unicode support then failed to render like the Bash on Ubuntu window does)So VS Code and Cmd seem to work for me, but Bash on Ubuntu on Windows and Powershell don't.
Hope this helps!
@fruitraccoon I tried Cmd and Powershell, it's not working for me. Besides the line rendering issue. Bash On Windows 10 doesn't support solarized theme. So I given up and wait for the stable release of Bash On Windows 10
Same problem on Ubuntu 18.04 WSL.
I haven't had a problem running Spacemacs in Microsoft Terminal...WSL2/Ubuntu-18.04. Have you tried that?
Is there any existing configuration that works appropriately in a ssh terminal?