You are not logged in.

#1 2014-02-16 04:45:46

mrpringle
Member
Registered: 2009-07-11
Posts: 74

tty output garbled by oh my zsh [Solved]

Hi,
I recently installed oh my zsh and had to set my LANG in /etc/locale.conf in order for gnome-terminal to display special utf-8 characters in the prompt correctly.
When I switch to a TTY console and type commands the output is completely garbled and unreadable and I need to switch to bash.

I'm not sure what exactly the problem is but I'm using the muse oh my zsh theme.

What do I need to configure to get utf-8 support in my tty - I assume that is the problem?

Last edited by mrpringle (2014-02-17 09:29:22)

Offline

#2 2014-02-16 05:43:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: tty output garbled by oh my zsh [Solved]

Does plain zsh work. Or zsh with a sensible feature set, like grml?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-02-16 07:29:00

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Re: tty output garbled by oh my zsh [Solved]

plain zsh works fine. It's just with oh-my-zsh themes.

Offline

#4 2014-02-16 07:32:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: tty output garbled by oh my zsh [Solved]

I really have no idea why people continue to use that...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-02-16 09:01:15

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Re: tty output garbled by oh my zsh [Solved]

continue to use what? oh my zsh?

Offline

#6 2014-02-16 09:06:14

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Re: tty output garbled by oh my zsh [Solved]

The op here had a similar problem and added DAEMON_LOCALE="yes" to /etc/rc.conf, but I'm not sure what that translates to if I'm using systemd
https://bbs.archlinux.org/viewtopic.php?id=143088

Offline

#7 2014-02-16 09:13:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: tty output garbled by oh my zsh [Solved]

Oh-my-zsh is a mess. If you want to use a zsh framework, use grml.

The wiki has info on setting your locale correctly using systemd.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2014-02-16 09:32:56

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Re: tty output garbled by oh my zsh [Solved]

thanks for the advice. I'll give it a try, but to be honest I don't think oh my zsh is the cause of the problem. I configured LANG in /etc/locale.conf to the locale which I uncommented in /etc/locale.gen. I'm not sure what else I need to do.

Offline

#9 2014-02-17 07:50:32

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Re: tty output garbled by oh my zsh [Solved]

Ok, the issue doesn't occur with grml or the preinstalled zsh prompts so I've just removed oh my zsh

Offline

#10 2014-02-17 07:57:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: tty output garbled by oh my zsh [Solved]

Wise choice smile

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2014-02-17 09:30:01

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Re: tty output garbled by oh my zsh [Solved]

Prezto also works for me on tty

Offline

Board footer

Powered by FluxBB