A few years ago I wrote a medium tester for memory cards etc., with an emphasis on being able to write and check specific patterns and sequences. The code is usable either as a (non-interactive) console program, or as an interactive GUI program using the LCL, or as an interactive TUI program using FreeVision. In that final case I used a marginally-surviving TUI editor rather than placing everything by hand, but still did the compilation and debugging using the Lazarus IDE.
Any of those three can be built using the Lazarus IDE, or from a prompt using Lazbuild. In addition, the console program can be built from a Makefile, however I had to write that manually.
There's a whole lot of guff in Lazarus which is in there because something comparable's in Delphi. That doesn't mean you have to use it: my expectations are rooted in the fairly early TPs I adopted after some years using less friendly tools.
Oh, apropos your earlier question about printing files. Particularly if you eschew Unicode you should be able to use just about any program including word processors etc. even if your IDE of choice (i.e. TUI or GUI) has problems, although you'd be well advised to stick to a monospaced fount. However while I was obviously brought up on the music ruled stuff I've used listings extremely infrequently over the last 25 years or so: a competent IDE such as Lazarus can be relied upon to support multiple windows and usually multiple tabs inside each window. And if one's reasonably near the stockbroker belt one can get some good deals as the well-heeled move up to ever-larger monitors... :-)
MarkMLl