You are not logged in.

#1 2020-06-21 22:26:16

Cypher77
Member
Registered: 2020-06-21
Posts: 3

Weird output on combination key press in terminal

Hey all, new Arch user here. I have been experiencing issues regarding keybinds in the terminal. For instance, Ctrl + Shift + Left outputs "D." There are other examples, like doing the same but with right, up, and down. I need to know either what is wrong or what I can do to force it to be proper. I'm using Suckless' st terminal, but the issue occurs in tilix terminal as well.

The issue is nonexistent in browsers or other applications, including text editors that run in the terminal.

Neither loadkeys us nor adding KEYMAP=us to /etc/vconsole.conf have changed anything.

My ~/.bashrc:

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

PS1='[\u@\h \W]\$ '

powerline-daemon -q
. /usr/share/powerline/bindings/bash/powerline.sh
tput smkx # Fixes delete key being broken in st

POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1

# export GTK_IM_MODULE=ibus
# export XMODIFIERS=@im=ibus
# export QT_IM_MODULE=ibus

alias ls='ls --color=auto'
alias s="sudo -s"
alias pm="sudo pacman"
alias yt="yaourt --noconfirm" # Running yaourt as root causes problem during compile
alias l="ls -la"
alias c="clear"
alias rb="sudo reboot now"
alias sd="sudo shutdown now"
alias i3="micro ~/.config/i3/config"
alias wifi="nmcli r wifi on && nmcli d wifi connect cardynet password kenisking"
alias music="mpv /home/rocke/Music/* --no-video --shuffle"
alias nano="nano -c -i"
alias fuck="picom -b --experimental-backends && /home/rocke/.config/polybar/launch.sh"
alias fonts="micro ~/.config/fontconfig/fonts.conf"
alias mpv="setsid -f mpv"
alias orphan="sudo pacman -Rns $(pacman -Qtdq) && sudo yaourt -Qtd --noconfirm"

Last edited by Cypher77 (2020-06-21 22:39:46)

Offline

#2 2020-06-21 22:31:20

loqs
Member
Registered: 2014-03-06
Posts: 19,061

Re: Weird output on combination key press in terminal

What was the source of that .bashrc?  A new user having references to a discontinued AUR helper in their .bashrc seems odd to me.

alias yt="yaourt --noconfirm" # Running yaourt as root causes problem during compile
..
alias orphan="sudo pacman -Rns $(pacman -Qtdq) && sudo yaourt -Qtd --noconfirm"

Offline

#3 2020-06-21 22:37:14

Cypher77
Member
Registered: 2020-06-21
Posts: 3

Re: Weird output on combination key press in terminal

What was the source of that .bashrc?  A new user having references to a discontinued AUR helper in their .bashrc seems odd to me.

It was my attempt at making an alias to remove orphan packages. I don't believe the yaourt part of it works, anyways. The .bashrc was made by me.

Offline

#4 2020-06-21 22:39:04

Cypher77
Member
Registered: 2020-06-21
Posts: 3

Re: Weird output on combination key press in terminal

I installed zsh in order to weed out this problem further. Upon the same keypress (Ctrl + Shift + Left), I get the output ";6D".

Offline

#5 2020-06-21 22:40:01

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

Re: Weird output on combination key press in terminal

Cypher77 wrote:
alias wifi="nmcli r wifi on && nmcli d wifi connect cardynet password kenisking"

Time to change your password. And your AUR helper.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2020-06-22 06:27:06

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

Re: Weird output on combination key press in terminal

vconsole and loadkeys won't impact the X11 VTE

Ctrl + Shift + Left outputs "D."

That's normal, why do you expect sth. different?
If your $TERM and shell config isn't messed up, you can expect ctrl+left/right to skip words
Edit:nope, had that in my zshrc explicitly.

If you want it to behave like a text editor, you'll have to either patch the terminal (though I don't think such patch exists for st, keyboard_select behaves differently) or reconfigure your shell input handling, https://stackoverflow.com/questions/540 … 6#30899296

Last edited by seth (2020-06-22 06:46:34)

Offline

Board footer

Powered by FluxBB