You are not logged in.
Pages: 1
Delete key does not work in the terminal or rather behaves weirdly.
I have a very fresh new installation of arch and my skillset when it comes to linux or arch is in line with the skillset of a caveman. So I installed arch, dwm, st, dmenu for use but the delete key is behaving very abnormally. In the st terminal pressing delete key does nothing, in vim running in st the delete key works fine, in brave browser the delete key works fine, in micro when delete key is pressed it takes me to the very beginning of the text document and types the letter "p" there.
I dont know if this issue has been addressed before. I wanted to search the forum but I did not see a search bar to search within this forum.
I want to know:
1. Is there a way to search among the available posts on the forum for any issue before creating a post of my own and how if there is a way how to do it.
2. Is there a post that explains how to write and insert outputs from the terminal into a readable format in my post and if there is a post please share the link with me.
3. How do I go about troubleshooting this delete key issue and what info would you need from me.
I apologize in advance if this issue is something very trivial. I do not know much about arch or linux in general but I am curious and willing to read and learn.
Thanks
Solution:- add
tput smkxin your shell configuration file.
Last edited by thenewmdzak (2024-01-21 02:23:39)
Offline
Sorry just found my answer for number 1. I saw the search option in the top menus and I feel dumb. But Please if you can help me finding answer number 2 and 3.
Offline
Small clips can be pasted into the forums surrounded by BBCode code tags.
Here is an example:
waller@odin/~% ls /
bin@ dev/ home/ lib64@ mnt/ proc/ run/ srv/ sys/ usr/
boot/ etc/ lib@ lost+found/ opt/ root/ sbin@ swapfile tmp/ var/
ewaller@odin/~% Use the quote link to see how I did this. A link documenting BBCode is under each post box on the forums. For reference, it is https://bbs.archlinux.org/help.php#bbcode
Bigger chunks can be posted to a pastebin site and then you can post the link to the data. See:
https://wiki.archlinux.org/title/List_o … ted_client
Edit:
Example here is my journal for this boot:
http://0x0.st/HUF_.txt
Generated with the command journalctl -b | curl -F 'file=@-' 0x0.st
Last edited by ewaller (2024-01-16 03:14:28)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
As for the problem itself, delete key issues absolutely scream a terminfo problem, either set wrong or missing.
Offline
@ewaller Thank you for the tips regarding forum usage. I appreciate that.
@Scimmia How to ensure that "terminfo" is the issue at hand. Also what is a "terminfo problem" and how do I solve it to get my delete key working.
Offline
st isn't something I can really help much with, I don't use the suckless tools. Best I can do is point you in the right direction, looking at the TERM variable and googling from there.
Offline
st isn't something I can really help much with, I don't use the suckless tools. Best I can do is point you in the right direction, looking at the TERM variable and googling from there.
No Problem and many thanks, I will try my best to find it by myself and anyone else reading this and has the skillset to help with this issue, Your help will be highly appreciated.
Offline
What /is/ the output of "echo $TERM"? "st-256color"?
Online
For st see https://git.suckless.org/st/file/FAQ.html#l36
tl;dr: add this to your shell configuration file:
tput smkxJin, Jîyan, Azadî
Offline
What /is/ the output of "echo $TERM"? "st-256color"?
The output is :
$ echo $TERM
st-256colorOffline
For st see https://git.suckless.org/st/file/FAQ.html#l36
tl;dr: add this to your shell configuration file:
tput smkx
Where is the shell configuration file normally stored. My first assumption was that .bashrc would be the shell configuration file. It would be very kind of you to please confirm.
Offline
It would be very kind of you to just test you hypothesis.
If you for some weird reason are unaware what your shell is: "echo $SHELL" and in case it's bash you probably also want to read https://man.archlinux.org/man/core/bash … INVOCATION
Online
The canonical method of determining the shell is use is
echo $0`echo $SHELL` will show the login shell, as defined in /etc/passwd. The interactive & login shells are usually the same but not always.
~$ echo $SHELL
/bin/oksh
~$ bash -c 'echo $SHELL'
/bin/oksh
~$ bash -c 'echo $0'
bash
~$Jin, Jîyan, Azadî
Offline
It would be very kind of you to just test you hypothesis.
If you for some weird reason are unaware what your shell is: "echo $SHELL" and in case it's bash you probably also want to read https://man.archlinux.org/man/core/bash … INVOCATION
Thank You after adding
tput smkxin my .bashrc the delete key behaves as intended. Many thanks to everyone who helped.
I will mark the issue as solved. However if you would recommend me what to read to know about how this problem was created I would appreciate it.
Offline
Online
Pages: 1