You are not logged in.

#1 2020-08-12 21:55:32

massisenergy
Member
Registered: 2020-08-12
Posts: 2

[SOLVED] Keys not functioning as (normally) intended

Dear Arch-ers,

I am not sure what is causing the problem, but here are two examples:

• When I use the key combo ⌃+← (ctrl+left arrow) in terminal, it prints

;5D

The expected behaviour is jumping one word backwards.

• The terminal prompt, after installing oh-my-zsh looks like:

\[\e[1;37m\]\w `if [ $? = 0 ]; then echo -e '\[\e[1;32m\]'; else echo -e '\[\e[1;31m\]'; fi`\$ \[\e[0m\]

I'm sure it's a noob question to the ace Arch users here but would be great if someone can point me in the right direction...

-----------------------------------------------------------------------------------------------------------------------------

SYSTEM: QEMU, Intel i9, KDE plasma.

Last edited by massisenergy (2020-08-13 16:48:59)

Offline

#2 2020-08-13 00:56:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: [SOLVED] Keys not functioning as (normally) intended

Please edit your first post to give your thread a meaningful title that represents your problem or question.

massisenergy wrote:

• When I use the key combo ⌃+← (ctrl+left arrow) in terminal, it prints

;5D

And is this a problem?  What do you expect to happen?

massisenergy wrote:

• The terminal prompt, after installing oh-my-zsh looks like:

Then remove OMZ.  That exists for no other purpose than to royal fubar everything you could imagine and several things you couldn't imagine.  Having garbage in your prompt is the least of your concerns with OMZ.

Last edited by Trilby (2020-08-13 00:58:25)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-08-13 05:46:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,741

Re: [SOLVED] Keys not functioning as (normally) intended

https://wiki.archlinux.org/index.php/Zsh#Key_bindings
You can also just bindkey the escape code directly (w/o using terminfo) but that might not work w/ all VTEs

Offline

#4 2020-08-13 09:27:26

massisenergy
Member
Registered: 2020-08-12
Posts: 2

Re: [SOLVED] Keys not functioning as (normally) intended

Trilby wrote:

Please edit your first post to give your thread a meaningful title that represents your problem or question.
Edited!

seth wrote:

https://wiki.archlinux.org/index.php/Zsh#Key_bindings
You can also just bindkey the escape code directly (w/o using terminfo) but that might not work w/ all VTEs

Great, thanks. Learnt some things there...

Not sure still what was the problem, but for others who might have similar issues, this is the solution:

  1. After installing Arch Linux you may want to beautify your terminal.

  2. Follow the link by seth.

  3. Install oh-my-zsh-git from the AUR (the weird characters still persist).

  4. Install powerlevel10k (now everything looks find as it should). And very fucntional also smile

Offline

#5 2020-08-13 10:46:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,741

Re: [SOLVED] Keys not functioning as (normally) intended

  1. After installing Arch Linux you may want to beautify your terminal.

  2. Follow the link by seth.

  3. https://wiki.archlinux.org/index.php/Powerline

You do ab·so·fuck·ing·lute·ly NOT need the behemoth or garbage that is OMZ which is usually just the answer to "why does my shell do this weird stuff?" to get to a powerline bar.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#6 2020-08-13 12:10:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: [SOLVED] Keys not functioning as (normally) intended

I wish OMZ's fallout was limited to the shell doing weird stuff.  I'm been absolutely amazed how after lots of troubleshooting and digging, how significant and confusing system-crippling problems that don't have anything to do with interactive shell use have been traced simply to the presence of OMZ.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB