syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.67k stars 4.89k forks source link

Customize spacemacs for terminal usage. #3780

Closed amosbird closed 8 years ago

amosbird commented 8 years ago

Is there any existing configuration that works appropriately in a ssh terminal?

cpaulik commented 8 years ago

What are your problems? I'm working in a ssh terminal in tmux every few days.

amosbird commented 8 years ago

Highlights get messed up. Lines repeatedly draw on the screen.

k25nxfcsmy ug5mu xsc e4

cpaulik commented 8 years ago

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.

amosbird commented 8 years ago

@cpaulik I didn't change theme settings. Which theme should I use?

cpaulik commented 8 years ago

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.

amosbird commented 8 years ago

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.

cpaulik commented 8 years ago

They should definitely not look the same. I can try XShell when I get to work later. No Windows PC at home.

StreakyCobra commented 8 years ago

What the value of $TERM in the shell just before you run emacs?

cpaulik commented 8 years ago

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.

amosbird commented 8 years ago

@cpaulik Which Xshell's theme do you use?

amosbird commented 8 years ago

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. daw9h6 1n 17 hf1 j tnh

cpaulik commented 8 years ago

@amosbird I don't use a special theme

syl20bnr commented 8 years ago

@amosbird what is your terminal emulator ? urxvt has this behavior on my side, the more I use urxvt the less I find it pleasant.

amosbird commented 8 years ago

@syl20bnr I'm using CentOS 6 via XShell on Windows. XShell's terminal is set to xterm with UTF-8 support.

jrhorn424 commented 8 years ago

I'm seeing color issues running screen-256color.

fullscreen_11_18_15__16_18

I'd prefer not to use a cocoa version of emacs.

cpaulik commented 8 years ago

@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

cpaulik commented 8 years ago

See also https://github.com/bbatsov/solarized-emacs/issues/18

jrhorn424 commented 8 years ago

Thanks @cpaulik. Looks like the information on this is a bit distributed. 😉

VMatrix1900 commented 7 years ago

Same Problem when using Spacemacs on Bash On Ubuntu on Windows 10. Lines redraw. Even in spacemacs-dark theme. Any fixes?

fruitraccoon commented 7 years ago

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...

VMatrix1900 commented 7 years ago

@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.

fruitraccoon commented 7 years ago

@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:

So VS Code and Cmd seem to work for me, but Bash on Ubuntu on Windows and Powershell don't.

Hope this helps!

VMatrix1900 commented 7 years ago

@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

kamasylvia commented 5 years ago

Same problem on Ubuntu 18.04 WSL.

2019-02-09_06-59-57

sc0ttwad3 commented 4 years ago

I haven't had a problem running Spacemacs in Microsoft Terminal...WSL2/Ubuntu-18.04. Have you tried that?

Spacemacs-WSL