Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Key d doesn`t work in xterm, can`t be copied

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
vinterneti
Posts: 4
Joined: 2020-12-12 01:31

Key d doesn`t work in xterm, can`t be copied

#1 Post by vinterneti »

On my current user i cant enter or copy letter d in all terminal programs.
On newly created user keys left,right,up output [[A [[D etc.
Other programs work ok.
Shift D works.
d after Insert key works.

Not sure but this could happen after some wrong configurations and

xrdb -merge .Xresources

Is there a way to reconfigure reset to default?

-

Changed the name to reflect problem more accurate.
Last edited by vinterneti on 2020-12-15 14:27, edited 3 times in total.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Messed with xterm - how to restore default config?

#2 Post by stevepusser »

Copy your new user's good .Xresources file over the funky one in your own home folder? Rename the funky one if there's anything you want to save in it.
MX Linux packager and developer

vinterneti
Posts: 4
Joined: 2020-12-12 01:31

Re: Messed with xterm - how to restore default config?

#3 Post by vinterneti »

I dont have this file. I created it manually.

May be there are default file on iso image?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Messed with xterm - how to restore default config?

#4 Post by Head_on_a_Stick »

vinterneti wrote:On newly created user keys left,right,up output [[A [[D etc.
Which shell is the newly created user employing?

Code: Select all

echo $0
Sometimes a forced TERM can cause issues like this so also check

Code: Select all

echo $TERM
vinterneti wrote:Is there a way to reconfigure reset to default?

Code: Select all

mv ~/.Xresources{,.bad}
There is no ~/.Xresources by default.

Once you've moved it you can create a new ~/.Xresources and copy the configuration back one line at a time to find the bad setting.

Or post the configuration here so that we don't have to guess...
deadbang

vinterneti
Posts: 4
Joined: 2020-12-12 01:31

Re: Messed with xterm - how to restore default config?

#5 Post by vinterneti »

current_user
echo $0

Code: Select all

bash
new_user
echo $0

Code: Select all

sh
current_user(new)
echo $TERM

Code: Select all

xterm
I removed .Xresources after this problem.
The aim was to disable terminal bell and resize fonts.

This is almost fresh install. If there is no easy solution I`m going to reinstall it.
I was curious to fix it but don't want to destruct community.
If easy fix don`t show up going to mark it as [SOLVED] shortly.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Messed with xterm - how to restore default config?

#6 Post by Head_on_a_Stick »

vinterneti wrote:new_user
echo $0

Code: Select all

sh
Well there's your problem then — the new user has dash as the default interactive shell.

Fix that for the new user with

Code: Select all

chsh -s /bin/bash
And check /etc/adduser.conf for the erroneous setting, for example

Code: Select all

grep DSHELL /etc/adduser.conf
See also adduser.conf(5).
vinterneti wrote:If easy fix don`t show up going to mark it as [SOLVED] shortly
Please don't mark unsolved threads as [SOLVED], it's very frustrating for people trying to find an answer for their problem and it ruins SEO for the boards.
deadbang

vinterneti
Posts: 4
Joined: 2020-12-12 01:31

Re: Messed with xterm - how to restore default config?

#7 Post by vinterneti »

Code: Select all

chsh -s /bin/bash
Worked until I reboot and login with new_user.

Now new_user has working keys left right, but d key doesnt work.
And d symbol is lost during copy.

sgosnell
Posts: 975
Joined: 2011-03-14 01:49

Re: Key d doesn`t work in xterm, can`t be copied

#8 Post by sgosnell »

What keyboard layout is in use? Perhaps some layouts may map the d key to some other ASCII character.
Take my advice, I'm not using it.

Post Reply