On Sun, 23 Oct 2022 23:40:32 +0200, Jean SUZINEAU via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:
>Le 23/10/2022 à 22:50, Jean SUZINEAU via fpc-pascal a écrit : >> >> This way you'll receive the output of mosquitto_sub on the standard >> input of SomePascalProgram. >> >A very small example for SomePascalProgram for use with pipe, reading >on standard input and writing on standard output : > >var > s: String; >begin > repeat > readln( s); > writeln( s); > until false; >end. > Might get stuck at readln(s) if no messages are sent, i.e. no carriage-return coming along? AFAIK readln is blocking, right? I will try things out tomorrow, it's midnight now... -- Bo Berglund Developer in Sweden _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal