Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-08

FP IDE keyboard shortcuts don't work under Linux

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I'm using Linux (ubuntu 8.04.4) with FP IDE (text mode ide). I went through the "learn keys" dialog and it detected all the keys I pressed. Yet when I'm in a source code unit and press some of the keyboard shortcuts (eg: Ctrl+F7 - add watch), it does nothing.

Or when I run it inside the Gnome Terminal, if I press Alt+F3 (close window), it doesn't close the current editor window, instead the Options menu (from the main menu bar) opens up.

It seems many of the keyboard shortcuts are not correctly detected under Linux. Is this issue only a problems with FP IDE, or is it a more general FreeVision + Linux issues?

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net
Florian Klämpfl
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Is this issue only a problems with FP IDE, or is it a more general FreeVision + Linux issues?

Mostly incomplete/inconsistent terminal implementations. Best bet is xterm or text mode console.

Graeme Geldenhuys
to Florian Klämpfl
Florian Klämpfl wrote
Mostly incomplete/inconsistent terminal implementations. Best bet is xterm or text mode console.

I tried both your suggestions. First switching to the linux console (not using X11). When I try and Alt+F3 to close one of the editor windows, Linux rather switches to the 3rd console. :-(

In X11 I opened an xterm window, and ran the FP ide. Pressing Alt+F3 to again try and close an editor window, instead of closing it I get text inserted into the current editor window:

1;33R

I also did the "learn keys" again while I was running FP under xterm, thinking that will help, but no luck.

I can use Midnight Commander (a linux console file manager) inside Gnome Terminal or xterm, and all keyboard shortcuts work. So I don't think it's issue of Gnome Terminal not being implemented fully.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net
Florian Klämpfl
to Graeme Geldenhuys
Show quoted text 9 lines
In X11 I opened an xterm window, and ran the FP ide. Pressing Alt+F3 to again try and close an editor window, instead of closing it I get text inserted into the current editor window: 1;33R I also did the "learn keys" again while I was running FP under xterm, thinking that will help, but no luck.

Indeed, you need re-learn keys depending on the console.

Show quoted text 5 lines
I can use Midnight Commander (a linux console file manager) inside Gnome Terminal or xterm, and all keyboard shortcuts work. So I don't think it's issue of Gnome Terminal not being implemented fully.

MC is very good in this because it contains a lot of work arounds for all kind of terminals. Nevertheless, the root of the problem are the lazy implementations of the terminal programs, see e.g. http://bugs.freepascal.org/view.php?id=19259, it's output related though but the problem is the same: the terminal programs claim they can do something, but they can't.

Actually, the poor behaviour of the fp ide (sluggish output, not all features supported) is one of the reasons why I never feel comfortable on linux. I tried to fix this years ago, but as long as no console program supports all required keyboard combinations and the output is still slow, this was never a success.