Creating text editor like EDIT on Command Prompt using FreePascal

697 Views Asked by At

I want to create a texteditor for my DOS program. I want to create it using FreePascal Compiler. Anybody know the logical programming for create it?

1

There are 1 best solutions below

3
Marco van de Voort On
  1. Make sure FPC is installed and set up properly (including the PATH), download the main sources if needed. (depends on platform)

  2. run "make" in packages/fv/examples/ (in the sources) so that it compiles testapp.pas to testapp.exe

  3. run testapp.exe and select File->New, you are now in the editor.

  4. Study the testapp source and remove any parts from the program you don't like. A reference book for a Turbo Pascal "Turbo Vision" library (which is very similar to the FPC provided FV library that this demo uses) is a great asset for this.