You are not logged in.

#1 2015-04-21 01:55:18

iterator
Member
Registered: 2015-04-16
Posts: 12

[SOLVED] CTRL + [key] at Terminal Not Working

Hi everyone. I have done some searching for what this could be, but I don't seem to be finding anything helpful.

Long and short of it:
I'm accustomed to using ctrl+a to go to the beginning of the line and ctrl+e to go to the end of the line. On my system any

CTRL + [key]

combination results in

^[key]

Once this has happened, the text also appears highligted, and sometimes it causes the backspace key not to work. After using delete and hitting return backspace works fine.

Is this just a key configuration issue somewhere?


Thanks!

Last edited by iterator (2015-04-21 18:22:37)

Offline

#2 2015-04-21 02:42:28

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

Re: [SOLVED] CTRL + [key] at Terminal Not Working

Which terminal are you using and what is the value of $TERM? Are you exporting that variable anywhere in your bash initialisation files?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-04-21 18:04:00

iterator
Member
Registered: 2015-04-16
Posts: 12

Re: [SOLVED] CTRL + [key] at Terminal Not Working

I am just using gnome-terminal from the repository.

echo $TERM gives me

xterm-256color

And I have installed and am using zsh for my shell.

.zshrc:

 # The following lines were added by compinstall

zstyle ':completion:*' completer _expand _complete _ignored
zstyle ':completion:*' matcher-list ''
zstyle :compinstall filename '/home/ahrtmn/.zshrc'

autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -v
# End of lines configured by zsh-newuser-install

# Path variables
export PATH=$PATH:/opt/bin:/opt/jdk1.8.0_45
export JDK_HOME=/opt/jdk1.8.0_45

Although I don't think it matters, here is the .bashrc:

#
# ~/.bashrc
#

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

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

export PATH=$PATH:/opt/bin

Thanks for the response!

Offline

#4 2015-04-21 18:06:57

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

Re: [SOLVED] CTRL + [key] at Terminal Not Working

Ctrl-a and Ctrl-e are readline bindings (in Emacs mode); Zsh uses zle.

See: https://wiki.archlinux.org/index.php/Zsh#Key_bindings


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-04-21 18:13:17

iterator
Member
Registered: 2015-04-16
Posts: 12

Re: [SOLVED] CTRL + [key] at Terminal Not Working

Yep. Changing it to bindkey -e solved the issue.

For some reason I've always used vi, but I've never become too proficient at it. I suppose I should make a choice between vi and emacs and learn more of the feature set. Coming from a mac laptop as my main computer, the home and end keys just seem soooo farr awayy. Ha.

Thank you!!

Offline

#6 2015-04-21 18:16:32

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

Re: [SOLVED] CTRL + [key] at Terminal Not Working

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

Board footer

Powered by FluxBB