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

New to Debian (Or Linux in general)? Ask your questions here!

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

Postby vinterneti » 2020-12-12 01:34

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.
vinterneti
 
Posts: 4
Joined: 2020-12-12 01:31

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

Postby stevepusser » 2020-12-12 04:02

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
User avatar
stevepusser
 
Posts: 12182
Joined: 2009-10-06 05:53

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

Postby vinterneti » 2020-12-12 06:07

I dont have this file. I created it manually.

May be there are default file on iso image?
vinterneti
 
Posts: 4
Joined: 2020-12-12 01:31

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

Postby Head_on_a_Stick » 2020-12-12 09:47

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...
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13041
Joined: 2014-06-01 17:46
Location: /dev/chair

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

Postby vinterneti » 2020-12-12 13:47

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.
vinterneti
 
Posts: 4
Joined: 2020-12-12 01:31

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

Postby Head_on_a_Stick » 2020-12-12 14:17

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.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13041
Joined: 2014-06-01 17:46
Location: /dev/chair

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

Postby vinterneti » 2020-12-12 16:16

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.
vinterneti
 
Posts: 4
Joined: 2020-12-12 01:31

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

Postby sgosnell » 2020-12-16 02:32

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.
sgosnell
 
Posts: 974
Joined: 2011-03-14 01:49


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable