Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread Graeme Geldenhuys via fpc-pascal
On 20/11/2020 7:04 am, Sven Barth via fpc-pascal wrote: > a way to convert the > option list to TConsoleApplication's argument handling so that one doesn't > have to declare that twice. Oh, I really like that idea. I'll make sure to include both of those mentioned. Regards, Graeme -- fpGUI T

Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread Tomas Hajny via fpc-pascal
On 2020-11-20 09:32, Graeme Geldenhuys via fpc-pascal wrote: On 20/11/2020 7:04 am, Sven Barth via fpc-pascal wrote: a way to convert the option list to TConsoleApplication's argument handling so that one doesn't have to declare that twice. Oh, I really like that idea. I'll make sure to incl

Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread Benito van der Zander via fpc-pascal
Hi, I also made such a thing: var optionsreader: TCommandLineReader; begin   optionsreader := TCommandLineReader.create;   optionsreader.declareFile('file', 'The file to be processed');   optionsreader.addAbbreviation('f');   optionsreader.declareFlag('help', '');   optionsreader.addAbbreviati

Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread James Richters via fpc-pascal
That sounds like a great idea!! Yes I know how tedious it is.Here are some things I like to do. I always use color on my console app text… Yes it makes it more tedious because I have to have a whole bunch of textcolor() commands, but it makes it more readable and useful. I also like to ce

Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread Graeme Geldenhuys via fpc-pascal
On 20/11/2020 1:29 pm, James Richters via fpc-pascal wrote: > so as you can see, my #1 item in my wish list is the ability to assign colors, Some good examples there. :-) I wouldn't want to guess how long it takes to create those boxed versions. Wow! At work, our automated CI pipelines run on Li

Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread Bart via fpc-pascal
On Fri, Nov 20, 2020 at 4:38 PM Graeme Geldenhuys via fpc-pascal wrote: > We often have color output and > full Unicode support - so we can output color and emojis to highlight certain > success > or error states in the output. It would be nice to incorporate that into > command > line help out

Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread Amir via fpc-pascal
Hi,  I also have a similar library for that purpose: https://github.com/AmirAavani/my-units/blob/master/General-Purpose-Units/ParameterManagerUnit.pp This library expects "ValidArguments.inc" file whose content is like the following: ValidArgumentsInfo : array of AnsiString = ('--InputFile:A

Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread Sven Barth via fpc-pascal
Bart via fpc-pascal schrieb am Fr., 20. Nov. 2020, 19:11: > On Fri, Nov 20, 2020 at 4:38 PM Graeme Geldenhuys via fpc-pascal > wrote: > > > We often have color output and > > full Unicode support - so we can output color and emojis to highlight > certain success > > or error states in the output

Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread Bart via fpc-pascal
On Fri, Nov 20, 2020 at 7:21 PM Sven Barth via fpc-pascal wrote: >> You know that fpc trunk now supports coloured output of the compiler >> (messages)? > > > Only on *nix and those versions of Windows 10 that support VT100 codes. > I know, and there he can see how this capability is detected, h

Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread Graeme Geldenhuys via fpc-pascal
On 20/11/2020 6:51 pm, Bart via fpc-pascal wrote: > I know, and there he can see how this capability is detected, hence my > reference to the compiler. Thanks, that's good to know. I'll definitely give it a try too. Regards, Graeme ___ fpc-pascal mai

[fpc-pascal] fpmmap problem 64 bit linux

2020-11-20 Thread Rainer Stratmann via fpc-pascal
A 32 bit freepascal program on a 32 bit Linux Debian system is working properly. It uses fpmmap for getting the adress of a kms framebuffer. The same 32 bit program on a 64 bit Linux Debian system *** is not working. When it comes to the fpmmap it gives an error: Sys_EINVAL One of the record

Re: [fpc-pascal] fpmmap problem 64 bit linux

2020-11-20 Thread Alexander Grotewohl via fpc-pascal
It would seem C handles this at compile time with a define.. mapping mmap to mmap64. Which would almost seem to imply you'd end up with a 32 bit binary that would only work on 64 bit systems. I'm not really sure how this would work for Pascal. You could start by looking in the file listed in the