Re: [fpc-pascal] XTerm window resize [was: Re: hmm, freevision]

2007-08-30 Thread David Mears
> Probably this is of interrest for you: The terminal sends a SIGWINCH to > the running process when it is resized. The process then requests its > current size by an ioctl() TIOCGWINSZ to the stdout handle (0). > > You can test this in a simple shell window. Start two xterms (or which > terminal

[fpc-pascal] XTerm window resize [was: Re: hmm, freevision]

2007-08-30 Thread Johann Glaser
Hi! > Basically just that, if you change the size the console window fp is in, > the application sizes itself to fit the window. it's a skill I'd like > to duplicate, as the app will be a console app with an interface, and > the fvision demo didn't do the neat trick. Probably this is of inter

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Michael Van Canneyt
On Thu, 30 Aug 2007, Graeme Geldenhuys wrote: > On 30/08/2007, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > > User's manual, section 5.3 "Variable substitution in paths". > > > > > That obvious!! ;-) Thanks Michael. It works perfectly now. > > PS: > Not sure if I told you, but tiOPF

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Graeme Geldenhuys
On 30/08/2007, Jonas Maebe <[EMAIL PROTECTED]> wrote: > > Using custom fpc config files has its own issues, see > http://www.freepascal.org/mantis/view.php?id=9450 > > The config file handling was simply not designed with this purpose in > mind. fpcmake really is quite easy to use. Funny that. It

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Jonas Maebe
On 30 Aug 2007, at 14:11, Graeme Geldenhuys wrote: Ummm... damn. I was hoping to get away from Makefile's (for CLI users) and instead use a custom extrafpc.cfg file in each of the important directories. I guess it's back to reading the manual on Makefile.fpc and fpcmake. Using custom fpc co

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Graeme Geldenhuys
On 30/08/2007, Jonas Maebe <[EMAIL PROTECTED]> wrote: > > I guess you mean -FU... Ah yes. That's what I meant. > > How can I force the compiler to create the output directory if it > > doesn't exist? Is there another parameter for that? > > No, the compiler does not create directories, only file

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Jonas Maebe
On 30 Aug 2007, at 13:59, Graeme Geldenhuys wrote: I now specify a unit output path as follows: -Fu../lib/$fpctarget I guess you mean -FU... How can I force the compiler to create the output directory if it doesn't exist? Is there another parameter for that? No, the compiler does no

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Graeme Geldenhuys
On 30/08/2007, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > > User's manual, section 5.3 "Variable substitution in paths". > Another question... (sorry). I read the whole chapter 5 and looked at the fpc parameters and couldn't find any hints. I now specify a unit output path as follows:

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Graeme Geldenhuys
On 30/08/2007, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > User's manual, section 5.3 "Variable substitution in paths". > That obvious!! ;-) Thanks Michael. It works perfectly now. PS: Not sure if I told you, but tiOPF Core is now GUI free! At last true non-gui apps can be written. I've

Re: [fpc-pascal] FP IDE - can't find System unit

2007-08-30 Thread Tomas Hajny
Marco van de Voort wrote: >> On 30/08/2007, Jonas Maebe <[EMAIL PROTECTED]> wrote: >> > >> > Set up the correct unit directories under Options->Directories > >> So does that mean FP IDE doesn't read the global fpc.cfg file located >> it /etc or in my $HOME directory? If it doesn't, why not? It wou

Re: [fpc-pascal] hmm, freevision

2007-08-30 Thread David Mears
Graeme Geldenhuys wrote: I'm not 100% sure what he means. From what I gather it's when you resize a console window which is running FP, the Editor windows resizes accordingly. Basically just that, if you change the size the console window fp is in, the application sizes itself to fit the wi

Re: [fpc-pascal] Unit output directory

2007-08-30 Thread Michael Van Canneyt
On Thu, 30 Aug 2007, Graeme Geldenhuys wrote: > Hi, > > Under Lazarus I can specify the unit output directory as follows: > ../../lib/$(TargetCPU)-$(TargetOS) > > > I'm trying to do the same thing from the command line (without > Lazarus), but FPC doesn't know about the TargetCPU or TargetO

Re: [fpc-pascal] FP IDE - can't find System unit

2007-08-30 Thread Graeme Geldenhuys
On 30/08/2007, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > Keep in mind that the cmdline compiler, and the IDE compiler are two > separate instances of the compiler. The textmode has fpc.cfg, the IDE its > own (possibly directory/project specific) settings. Oh I see. So the FP IDE doesn't j

[fpc-pascal] Unit output directory

2007-08-30 Thread Graeme Geldenhuys
Hi, Under Lazarus I can specify the unit output directory as follows: ../../lib/$(TargetCPU)-$(TargetOS) I'm trying to do the same thing from the command line (without Lazarus), but FPC doesn't know about the TargetCPU or TargetOS macros. Is there something else or similar I can use in my cus

Re: [fpc-pascal] FP IDE - can't find System unit

2007-08-30 Thread Marco van de Voort
> On 30/08/2007, Jonas Maebe <[EMAIL PROTECTED]> wrote: > > > > Set up the correct unit directories under Options->Directories > So does that mean FP IDE doesn't read the global fpc.cfg file located > it /etc or in my $HOME directory? If it doesn't, why not? It would > make sense to do so? > > B

Re: [fpc-pascal] FP IDE - can't find System unit

2007-08-30 Thread Graeme Geldenhuys
On 30/08/2007, Jonas Maebe <[EMAIL PROTECTED]> wrote: > > Set up the correct unit directories under Options->Directories > So does that mean FP IDE doesn't read the global fpc.cfg file located it /etc or in my $HOME directory? If it doesn't, why not? It would make sense to do so? BTW: I'm only

Re: [fpc-pascal] FP IDE - can't find System unit

2007-08-30 Thread Jonas Maebe
On 30 Aug 2007, at 11:28, Graeme Geldenhuys wrote: What do I need to setup in the FP IDE to be able to compile a simple little app? Set up the correct unit directories under Options->Directories Jonas ___ fpc-pascal maillist - fpc-pascal@lists.

[fpc-pascal] FP IDE - can't find System unit

2007-08-30 Thread Graeme Geldenhuys
Hi, What do I need to setup in the FP IDE to be able to compile a simple little app? FPC is setup in my PATH and I can compile the same project from the command line without problems. Command Line: > fpc testversion.pas Free Pascal Compiler version 2.1.5 [2007/08/10] for i386 Copyright (c) 1993-

Re: [fpc-pascal] hmm, freevision

2007-08-30 Thread Graeme Geldenhuys
On 30/08/2007, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > If not, I can figure it out from the sources, certainly, but could > > someone clue me in on how the ide reflows itself on resolution change? > > I'm not sure it does this at all ? I'm not 100% sure what he means. From what I gather

Re: [fpc-pascal] hmm, freevision

2007-08-30 Thread Michael Van Canneyt
On Wed, 29 Aug 2007, David Mears wrote: > Are there guides/documentation available for freevision? I actually may > have the original manuals/media etc for turbo pascal 7- but if so, > they're in a box in my parents house, so getting them is somewhat > impractical. Information on the internet