Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698318 - sys-libs/ncurses backspace patch
Summary: sys-libs/ncurses backspace patch
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://lists.gnu.org/archive/html/bu...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-10-23 07:42 UTC by James Cloos
Modified: 2023-01-03 05:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix screen and eterm terminfos to use ^? for kbs. Patch courtesy of debian. (02-debian-backspace.diff,1.37 KB, patch)
2019-10-23 07:42 UTC, James Cloos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Cloos 2019-10-23 07:42:33 UTC
Created attachment 593684 [details, diff]
Fix screen and eterm terminfos to use ^? for kbs.  Patch courtesy of debian.

Debian carries a patch for ncurses which makes the terminfo files default to kbs=^? instead of kbs=^H.

With that patch, the BACKSPACE keys works correctly for emacs in screen, whereas without it BACKSPACE does the wrong thing.

(That is to say, if screen(1) is run on a debian box then emacs works fine therein, but if screen is run on a gentoo box then emacs fails to work.)

I’ve attached their patch as found in their ncurses_6.1+20190803-1.debian.tar.xz.

The patch references:

 https://bugs.debian.org/237997
 https://bugs.debian.org/602300

and makes the change for Eterm|Eterm-color and screen.

Screen is much more usable in gentoo with this change.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-02 00:30:26 UTC
Is this still needed?

If so, do you know if anyone ever sent it upstream?
Comment 2 James Cloos 2023-01-02 04:32:34 UTC
if it is not upstream, then yes.

screen started after ssh to a deb works.

but not if it is started on a gentoo box (w/o that patch).

one’d have to check whether it is in today’s ncurses release.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-02 05:10:37 UTC
(In reply to James Cloos from comment #2)
> if it is not upstream, then yes.
> 

I meant "Are you still affected by this if you don't apply the patch?" ("Has it been fixed upstream in the last 3 years?")

> screen started after ssh to a deb works.
> 
> but not if it is started on a gentoo box (w/o that patch).
> 

So it's not upstream, and it needs to go there. I'll send it. Thanks.