hello world plugin for far2l in pascal - fpc tryouts
Many Far Manager Plugins were written in Pascal (like those https://github.com/MaxRusov/far-plugins). To port them to linux far manager port, far2l (https://github.com/elfmz/far2l), we need to port, build and run helloworld plugin first. This repo is attempt to make such plugin using Free Pascal Compiler.
Current state: builds, runs.
wide
is UTF-32 version
mb
is UTF-8 version
Both are working, but mb is preferred as UTF-32 is almost not supported by Free Pascal. mb version also has bundled LazUTF8 unit from Lazarus to ease UTF-8 string manipulations.
Important! PluginW.pas and Plugin.pas are somethat incomplete, see FIXME comments. Also, C-language comments are not updated to releated Pascal-changes in those files. Windows.pas may be incomplete also.
Discussion on Free Pascal Russian forum: http://www.freepascal.ru/forum/viewtopic.php?f=10&t=43383