Forum > FV/Textmode IDE

Ctrl+J in the textmode IDE ?

(1/2) > >>

Nitorami:
Anybody knows what Ctrl+J is meant to do in the Textmode IDE, except for freezing it ?

I had to kill the IDE quite a couple of times after mistyping Ctrl-J for Ctrl-K... until I found that the lock can be released with ESC.

Thaddy:
In the textmode ide, most commands are derived from Wordstar. (a dinosaur text editor)
The ctrl-j command should open help, not code completion...
See: http://www.wordstar.org/index.php/wsdos-documentation/wsdos-commands/108-wordstar-3-for-dos-commands-reference

So indeed, if there is no help installed, nothing is shown, but use escape to exit as you would closing help (in wordstar or TurboPascal).
That behavior is correct. It is also how TP works.

lucamar:
It's probably a shortcut intercepted by the terminal emulator or the underlying shell, etc., so the focus goes away from the terminal itself (and the IDE) and it appears as if it were frozen.

The solution, if any, depends on which OS, which shell and/or which terminal you're using.

Thaddy:

--- Quote from: lucamar on July 14, 2020, 05:43:34 pm ---It's probably a shortcut intercepted by the terminal emulator

--- End quote ---
No. ctrl-j should open help for the reasons I have described above. If there is no help installed (common for textmode IDE) then escaping returns.

That is not to say that it can't be overridden in future code to accept ctrl-j for code completion, like in Lazarus.

lucamar:

--- Quote from: Thaddy on July 14, 2020, 05:48:00 pm ---No. ctrl-j should open help for the reasons I have described above. If there is no help installed (common for textmode IDE) then escaping returns.

--- End quote ---

If that were the case it would open the help window with the message about installing the CHMs, but it doesn't; it just takes the focus away from the shell to the terminal window, as if it had been intercepted by the terminal emulator. At least that's what it does here in a quick test with xfce4-terminal.

And note also that while TP (and FP IDE) follow the WS convention they follow it rather loosely and not all WS shortcuts work or even do the same as in WS. In my TP 7.0 install Ctrl+J doesn't open the help window at all: you have to press F1 for that (which at least in Linux, as most common shortcuts, interferes with the terminal emulator/windows manager own shortcuts). :(

Navigation

[0] Message Index

[#] Next page

Go to full version