fd2pascal(1)
π fd2pascal β the manual, but make it make sense π
okay bestie, so you found fd2pascal in section 1 of the manual (that's "user commands", the general-vibes section, iykyk) and you want the tea β. Say less. This is fd2pascal β the Free Pascal forms description to pascal program converter. It's giving "I turn your pretty little designer file into actual code" and honestly? Iconic. π
β¨ NAME β¨
fd2pascal β Free Pascal forms description to pascal program converter. That's her whole job description and she's slaying it. π
π¦ SYNOPSIS π¦
fd2pascal [-compensate] [-altformat] [-main] [-callback] filename
One command, one filename, a handful of little flag besties. That's the whole vibe check. β¨
πΈ DESCRIPTION πΈ
So here's the situation, gorgeous: fd2pascal reads an XForms designer file β that's the .fd one, you know the one β and it creates pascal code to create the form that's described in that file. She's basically a translator but make it compiler-adjacent. π§
And where does all that gorgeous pascal code go? It gets written to a file with the same name as the input file, except the extension becomes .pp. Simple. Clean. Obsessed.
β οΈ but wait β plot twist π β if a file with that name already exists, then it will be renamed to a file with the extension.bakappended. So your old file isn't deleted, she just puts it in a little.bakoutfit and moves on. Protect your files, bestie, that's the lesson.
π OPTIONS π
fd2pascal has a small number of options to control its behaviour. Small but mighty, fr fr:
-altformatβ okay so by default, a record type is emitted for the form definition, with a field for each widget (object) on the form. The alternate form? It declares a global variable for the form and each widget on the form. Two totally different aesthetics, pick your fave. π¦-compensateβ give her this flag and a call tofl_adjust_form_sizeis emitted after the form is created. That's it, that's the whole thing. Adjusting, compensating, thriving. β¨-callbackβ with this one, a callback procedure is generated for each widget on the form. Every single one. No widget left behind, periodt. π-mainβ so by default a unit is created, which you can include in theusesclause of a program. But if you specify this option, a program file is emitted instead. Unit mode vs program mode β main character energy either way. π
π SEE ALSO π
and that's the whole page, babe π«Ά. This little love letter was brought to you by Free Pascal, dated 12 November 2004, and it lives under the name fd2pascal(1). Yes she's an elder but she still eats. ππΈβ¨
π¦ where this page comes from
- debian bookworm: fp-utils-3.2.2 3.2.2+dfsg-20 Β· GPL-2.0-or-later
- debian trixie: fp-utils-3.2.2 3.2.2+dfsg-46 Β· GPL-2.0-or-later
- ubuntu jammy: fp-utils-3.2.2 3.2.2+dfsg-9ubuntu1 Β· GPL-2.0-or-later
- ubuntu noble: fp-utils-3.2.2 3.2.2+dfsg-32 Β· GPL-2.0-or-later
- ubuntu questing: fp-utils-3.2.2 3.2.2+dfsg-46
- ubuntu resolute: fp-utils-3.2.2 3.2.2+dfsg-49 Β· GPL-2.0-or-later
- ubuntu stonking: fp-utils-3.2.2 3.2.2+dfsg-51 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms