View previous topic :: View next topic |
Author |
Message |
jagdpanther l33t
Joined: 22 Nov 2003 Posts: 736
|
Posted: Thu May 02, 2024 2:30 am Post subject: CLI mail app backspace broken |
|
|
Inside a terminal window (xterm) backspace normally works as expected. However, when using 'mail' CLI program (from mailx package) both when typing the "Subject:" and the body when I press backspace I receive what looks like a ^H (shift-6 followed by "H") instead of erasing a character. Any idea where I should start looking to fix this? (Also if someone knows some other key combination to simulate a backspace, please let me know.)
For example on each line of the following I made an error (extra character) and pressed backspace. Only on the first line, before 'mail' runs, did backspace work as expected:
Code: | $ mail testuser@localhost
Subject: test messagee^H
This is a test linee^H
.
Cc:
$
|
|
|
Back to top |
|
|
myga Tux's lil' helper
Joined: 12 Jun 2023 Posts: 110
|
Posted: Thu May 02, 2024 3:49 am Post subject: |
|
|
Just tested it on Mint from Windows Terminal using SSH and it works fine on BASH, SH, & ZSH. I'm suspecting the terminal emulator you are using is the issue. _________________ [Never break the law to save people. Nope, there aint no heroes here. Unless you are 'Satoshi Nakamoto', that's a true anonymous.] |
|
Back to top |
|
|
jagdpanther l33t
Joined: 22 Nov 2003 Posts: 736
|
Posted: Thu May 02, 2024 4:15 am Post subject: |
|
|
Quote: | I'm suspecting the terminal emulator you are using is the issue. |
Ok. That is correct. I just dropped down to a console (<ctrl><alt>F2) and there backspace in the mail CLI app works.
So what is wrong with xterm? |
|
Back to top |
|
|
Banana Veteran
Joined: 21 May 2004 Posts: 1412 Location: Germany
|
|
Back to top |
|
|
jagdpanther l33t
Joined: 22 Nov 2003 Posts: 736
|
Posted: Fri May 03, 2024 6:21 pm Post subject: |
|
|
Banana: Thank you for the links.
I tried two of the listed solutions without success.
However, I notice that in xterm when running a CLI program (ex: mail) when backspace does not work and I receive a ^H that <ctrl>backspace does work. |
|
Back to top |
|
|
|