Forum > FV/Textmode IDE
Surf Units in Text Mode Ide
(1/1)
mosquito:
Using fp ("Text Mode Ide"), when there is a compilation error, I can navigate from the 'Compiler Messages' window to the affected unit.
So, is there a keyboard shortcut to be able to do this from the code editor? . It would be Lazarus-like behavior when doing Ctrl + LM on the name of a unit, procedure, etc
mika:
Ctrl-Enter while cursor is on unit name
It does not work under Linux a like system.
mosquito:
Thanks for the information.
I have a penguin tattoo, bad luck xD.
mika:
I found solution. If you are willing to patch up fpc source code, recompile and use a xterm with additional configuration.
Patch in attachment
to apply use command in root of source code:
--- Code: ---patch -p 1 -i ctrl_enter_xterm_unix_keyboard.diff
--- End code ---
recompile example script c.sh
--- Code: ---export PP=/home/EnterUsername/fpc322/lib/fpc/3.2.2/ppcx64
make singlezipinstall OS_TARGET=linux CPU_TARGET=x86_64 ALLOW_WARNINGS=1 OPT=" -O4 -CpCOREAVX2 -OpCOREAVX2 "
--- End code ---
add to /home/EnterUsername/.Xresources
--- Code: ---xterm*VT100.Translations: #override \
Shift <KeyPress> Insert: insert() \n\
Shift <KeyPress> Delete: insert() \n\
Ctrl Shift <Key>V: insert-selection(CLIPBOARD) \n\
Ctrl Shift <Key>C: copy-selection(CLIPBOARD) \n\
Ctrl <KeyPress> Return: string(0x0a)
--- End code ---
Last line is what do the magic. Shift+Ins and Shift+Del as well will work with this configuration. Log out, log in is required or forced reload of xterm configuration file.
mosquito:
Thank you so much.
Navigation
[0] Message Index