Recent

Author Topic: Concole model programming  (Read 1483 times)

cdbc

  • Hero Member
  • *****
  • Posts: 2253
    • http://www.cdbc.dk
Re: Concole model programming
« Reply #15 on: June 12, 2025, 09:42:49 am »
Hi
No worries mate  :D
@marcov did it for you  8)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 3.6 up until Jan 2024 from then on it's both above &: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 4.99

MarkMLl

  • Hero Member
  • *****
  • Posts: 8453
Re: Concole model programming
« Reply #16 on: June 12, 2025, 09:47:46 am »
That is not experience that average Joe is having. I am on Linux, but it is not that much different from windows experience.
Lets go least resistance path.

OP isn't complaining about not being able to run FPC, FP, or Lazarus. Furthermore he's not told us anything about the OS etc. that he's using, so let's try to keep this general.

I unequivocally echo what Thaddy et al. have said, with one caveat.

Lazarus can run and debug non-interactive console-oriented programs with absolutely no problem.

It can also run and debug interactive console-mode programs in its own "Console In/Output" window (unless this has been renamed recently), with the caveats that it doesn't know about escape sequences etc. and isn't very good at Unicode (i.e. multi-byte characters) due at least in part to the peculiarities of the underlying debuggers (again, this might have changed since I was last involved).

/If/ you need the authentic console experience (with the usual caveats relating to OS etc.), then start the program from the shell and tell the Lazarus IDE to attach to it. In that way, you have at least most of the usual support for console-style escape sequences, function keys and so on.

What you obviously /don't/ have is a character-addressable screen such as one would have used on a PC-DOS system. There's ways round that, but I'm not comfortable holding forth on them.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

TBMan

  • Full Member
  • ***
  • Posts: 193
Re: Concole model programming
« Reply #17 on: June 12, 2025, 03:50:18 pm »
Try reading my previous post and actually watch the video. People are giving you the answers and you are ignoring them.

That is not experience that average Joe is having. I am on Linux, but it is not that much different from windows experience.
Lets go least resistance path.

1. Download fpcupdeluxe-x86_64-linux.
2. Select FPC version: Stable, Lazarus version: Stable.
3. Install FPC+Lazarus.
4. Run Lazarus (version 3.6 for some reason).
5. Start New Simple project.
6. Enter "Hello world" program.
7. Run.   (Console does not show up, program is running somewhere hidden).
8. Enable: Menu -> View -> Debug Windows -> Console in/output
9. Run (with debug info). Now there is some sort of pseudo console visible with output (good for debugging GUI apps not doing console programing).

To get console like in your provided video, one have to have prior knowledge how to setup Lazarus properly.

If the OP is using Windows, all you have to do is download and then install. Nothing else needs to be done.

Using CRT or (PTCcrt) you can do whatever was done in Turbo Pascal text mode programming. I'm old school and use CRT, DOS, the Graph unit replacement, PTCGraph, which is excellent and there is also PTCMouse. 
« Last Edit: June 12, 2025, 03:54:21 pm by TBMan »

 

TinyPortal © 2005-2018