You are not logged in.
Pages: 1
lowercase 'd' isn't appearing in terminals (tired xfce4-terminal, xterm and i3-sensible-terminal). I can't type or paste them but capitals work alright and lowercase ones work in nano and for key binds.
Last edited by sinderwulf (2016-04-25 07:50:22)
Offline
You will need to at least provide some information e.g. regarding your locale, fonts, DE etc.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
You will need to at least provide some information e.g. regarding your locale, fonts, DE etc.
locale:
LANG=en_NZ.UTF-8
LC_CTYPE="en_NZ.UTF-8"
LC_NUMERIC="en_NZ.UTF-8"
LC_TIME="en_NZ.UTF-8"
LC_COLLATE="en_NZ.UTF-8"
LC_MONETARY="en_NZ.UTF-8"
LC_MESSAGES="en_NZ.UTF-8"
LC_PAPER="en_NZ.UTF-8"
LC_NAME="en_NZ.UTF-8"
LC_ADDRESS="en_NZ.UTF-8"
LC_TELEPHONE="en_NZ.UTF-8"
LC_MEASUREMENT="en_NZ.UTF-8"
LC_IDENTIFICATION="en_NZ.UTF-8"
LC_ALL=
font (terminal):
DejaVu Sans Mono Book 10
I have tried others but to no avail
DE:
i3-wm
some showkey output:
~]# showkey -s
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]
press any key (program terminates 10s after last keypress)...
0x9c
d0x20
0xa0~]# showkey -a
Press any keys - Ctrl-D will terminate this program
d 100 0144 0x64~]# showkey
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]
press any key (program terminates 10s after last keypress)...
dkeycode 32 press
keycode 32 release
etc
Kernel: x86_64 Linux 4.5.1-1-ARCH
Shell: bash 4.3.42
WM: i3
Offline
I have no idea what's causing this to be honest. Do you get the same in a tty? Does
echo -e "\0144"
display a lower case d?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
I have no idea what's causing this to be honest. Do you get the same in a tty? Does
echo -e "\0144"
display a lower case d?
~]$ echo -e "\0144"
d
--edit--
d only malfunctions in bash by looks. it's working fine in zsh.
Last edited by sinderwulf (2016-04-25 23:28:57)
Offline
The stunts seen here today are performed by professional idiots.
Do not try this at home
pacman -Rc bash
...
[live CD]
[shenanigans]
still not fixed, but it looks like the problem is with bash.
Offline
So, is something interfering with your bash shell, a program not exiting cleanly or an alias? Do you get the same after issuing the "reset" command in bash? Does this also happen in a tty?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
sindeerwulf: be aware that I am sure what you intended as humour could be interpreted as calling the people that have been trying to help you "professional idiots".
Also, I doubt removing bash would have helped in this case.
What's in your bash initialisation files? And please provide details about your setup: how you start X, what environment you log in to (I'm guesing i3), etc.
Offline
What's in your bash initialisation files? And please provide details about your setup: how you start X, what environment you log in to (I'm guesing i3), etc.
been lunching X with xinit /etc/X11/xinit/xinitrc. and i'm useing i3.
/etc/profile.d/bashrc:
# /etc/bash.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='[\u@\h \W]\$ '
PS2='> '
PS3='> '
PS4='+ '
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
screen)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
esac
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
/etc/profile.d/local.sh:
#!/bin/sh
if [ -z "$LANG" ]; then
if [ -n "$XDG_CONFIG_HOME" ] && [ -r "$XDG_CONFIG_HOME/locale.conf" ]; then
. "$XDG_CONFIG_HOME/locale.conf"
elif [ -n "$HOME" ] && [ -r "$HOME/.config/locale.conf" ]; then
. "$HOME/.config/locale.conf"
elif [ -r /etc/locale.conf ]; then
. /etc/locale.conf
fi
fi
LANG=${LANG:-C}
export LANG
[ -n "$LC_CTYPE" ] && export LC_CTYPE
[ -n "$LC_NUMERIC" ] && export LC_NUMERIC
[ -n "$LC_TIME" ] && export LC_TIME
[ -n "$LC_COLLATE" ] && export LC_COLLATE
[ -n "$LC_MONETARY" ] && export LC_MONETARY
[ -n "$LC_MESSAGES" ] && export LC_MESSAGES
[ -n "$LC_PAPER" ] && export LC_PAPER
[ -n "$LC_NAME" ] && export LC_NAME
[ -n "$LC_ADDRESS" ] && export LC_ADDRESS
[ -n "$LC_TELEPHONE" ] && export LC_TELEPHONE
[ -n "$LC_MEASUREMENT" ] && export LC_MEASUREMENT
[ -n "$LC_IDENTIFICATION" ] && export LC_IDENTIFICATION
/etc/profile.d/gpm.sh:
case $( /usr/bin/tty ) in
/dev/tty[0-9]*) [ -n "$(pidof -s gpm)" ] && /usr/bin/disable-paste ;;
esac
/etc/profile.d/perlbin.sh:
# Set path to perl scriptdirs if they exist
# https://wiki.archlinux.org/index.php/Perl_Policy#Binaries_and_Scripts
# Added /usr/bin/*_perl dirs for scripts
# Remove /usr/lib/perl5/*_perl/bin in next release
[ -d /usr/bin/site_perl ] && PATH=$PATH:/usr/bin/site_perl
[ -d /usr/lib/perl5/site_perl/bin ] && PATH=$PATH:/usr/lib/perl5/site_perl/bin
[ -d /usr/bin/vendor_perl ] && PATH=$PATH:/usr/bin/vendor_perl
[ -d /usr/lib/perl5/vendor_perl/bin ] && PATH=$PATH:/usr/lib/perl5/vendor_perl/bin
[ -d /usr/bin/core_perl ] && PATH=$PATH:/usr/bin/core_perl
export PATH
# If you have modules in non-standard directories you can add them here.
#export PERLLIB=dir1:dir2
/etc/profile.d/vte.sh:
# Copyright © 2006 Shaun McCance <shaunm@gnome.org>
# Copyright © 2013 Peter De Wachter <pdewacht@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Not bash or zsh?
[ -n "$BASH_VERSION" -o -n "$ZSH_VERSION" ] || return 0
# Not an interactive shell?
[[ $- == *i* ]] || return 0
# Not running under vte?
[ "${VTE_VERSION:-0}" -ge 3405 ] || return 0
__vte_urlencode() (
# This is important to make sure string manipulation is handled
# byte-by-byte.
LC_ALL=C
str="$1"
while [ -n "$str" ]; do
safe="${str%%[!a-zA-Z0-9/:_\.\-\!\'\(\)~]*}"
printf "%s" "$safe"
str="${str#"$safe"}"
if [ -n "$str" ]; then
printf "%%%02X" "'$str"
str="${str#?}"
fi
done
)
# Print a warning so that anyone who's added this manually to his PS1 can adapt.
# The function will be removed in a later version.
__vte_ps1() {
echo -n "(__vte_ps1 is obsolete)"
}
__vte_osc7 () {
printf "\033]7;file://%s%s\007" "${HOSTNAME:-}" "$(__vte_urlencode "${PWD}")"
}
__vte_prompt_command() {
local pwd='~'
[ "$PWD" != "$HOME" ] && pwd=${PWD/#$HOME\//\~\/}
printf "\033]0;%s@%s:%s\007%s" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)"
}
case "$TERM" in
xterm*|vte*)
[ -n "$BASH_VERSION" ] && PROMPT_COMMAND="__vte_prompt_command"
[ -n "$ZSH_VERSION" ] && precmd_functions+=(__vte_osc7)
;;
esac
true
/etc/profile.d/mozilla-common.csh:
setenv MOZ_PLUGIN_PATH "/usr/lib/mozilla/plugins"
/etc/profile.d/mozilla-common.sh:
export MOZ_PLUGIN_PATH="/usr/lib/mozilla/plugins"
Offline
So you have nothing in $HOME that is part of your shell or environment set up?
Offline
So you have nothing in $HOME that is part of your shell or environment set up?
yep
Offline
Can you paste the output of localectl and printenv?
Offline
Can you paste the output of localectl and printenv?
# localectl
System Locale: n/a
VC Keymap: n/a
X11 Layout: n/a
# printenv
XDG_VTNR=1
XDG_SESSION_ID=c1
TERM=xterm
SHELL=/bin/bash
WINDOWID=12582916
GTK_MODULES=canberra-gtk-module
USER=root
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
MAIL=/var/spool/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=/root
LANG=C
HOME=/root
XDG_SEAT=seat0
SHLVL=6
LOGNAME=root
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
WINDOWPATH=2
XDG_RUNTIME_DIR=/run/user/0
DISPLAY=:0.0
COLORTERM=xfce4-terminal
_=/usr/bin/printenv
OLDPWD=/root
Offline
Your environment is broken. Fix your keymap and locale.
Offline
Your environment is broken. Fix your keymap and locale.
# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
# printenv
XDG_VTNR=1
XDG_SESSION_ID=c1
SHELL=/bin/bash
TERM=xterm
WINDOWID=10485764
GTK_MODULES=canberra-gtk-module
USER=root
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
MAIL=/var/spool/mail/root
PWD=/root
LANG=en_US.UTF-8
SHLVL=5
XDG_SEAT=seat0
HOME=/root
LOGNAME=root
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
WINDOWPATH=2
DISPLAY=:0.0
XDG_RUNTIME_DIR=/run/user/0
COLORTERM=xfce4-terminal
_=/usr/bin/printenv
OLDPWD=/root
# localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: us
X11 Layout: us
X11 Model: pc105+inet
X11 Options: terminate:ctrl_alt_bksp
Followed the locale wiki, but it's still not working. Did I do something wrong or miss something?
Offline
Yes:
HOME=/root
Are you really running everything as root?
Offline
Are you really running everything as root?
nope
% printenv
TERM=xterm
SHELL=/bin/bash
WINDOWID=14680068
GTK_MODULES=canberra-gtk-module
USER=sinderwolf
SUDO_USER=sinderwolf
SUDO_UID=1000
USERNAME=root
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=/home
LANG=en_US.UTF-8
HOME=/home
SUDO_COMMAND=/usr/bin/xinit
SHLVL=5
LOGNAME=sinderwolf
WINDOWPATH=2
DISPLAY=:0.0
SUDO_GID=1000
COLORTERM=xfce4-terminal
_=/usr/bin/printenv
OLDPWD=/home
Offline
If you want help, you have to help yourself. Pasting the output of printenv as root and then repasting as your user (which is what you should have done in the first place) is just wasting people's time here. You claim not to be running as root, but your sudo command is xinit!
This whole thread makes me think there is something you are deliberately not telling us. Your monosyllabic responses aren't helping either...
My final advice is to compare the output of printenv from a bash (broken env) and a zsh (allegedly working env) and work out what you have misconfigured.
Offline
HOME=/home
That seems unfortunate.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Pages: 1