Skip to content

Shift+Fn keys are off by two in ncurses #3254

@mc-butler

Description

@mc-butler

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/3254
Reporter egmont (@egmontkob)
Mentions mrmazda@….net

In the slang build, Shift+F1 - Shift+F10 work as expected. (Also, in the editor Shift+F1 can be used instead of F11 to bring up the User menu, and Shift+F2 instead of F12 for Save as.)

In the ncurses build they are off by two, e.g. Shift+F6 wants to delete the file under the cursor.

I see this behavior on Ubuntu Trusty, TERM=xterm-256color, with xterm, gnome-terminal and st (all manually upgraded to their newest version, they emit Shift+F1=\e[1;2P, Shift+F5=\e[15;2~ etc.), konsole (Shift+F1=\eO2P, Shift+F5=\e[15;2~).

The bug does not occur on pterm (putty) which generates Shift+F1=\e[23~, Shift+F5=\e[28~ etc.

Metadata

Metadata

Assignees

Labels

area: ttyInteraction with the terminal, screen librariesprio: mediumHas the potential to affect progress

Type

No fields configured for Bug.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions