Forum > macOS / Mac OS X

Cannot enter text when running from terminal window

(1/1)

Wilko500:
I have used macOS programming tips page on wiki.freepascal.org and found it to be quite helpful.  In particular I have used the tip to view WriteLn debugging output when running my program in a terminal window.  This has been very useful and far more convenient than using lots of ShowMessage calls.

However, today while attempting to debug a small routine I discovered that my program while running from a terminal window cannot receive text input into eg a textbook.  Anything typed appears in the terminal window.  In terms of what I'm trying to achieve this renders running in a terminal window useless.

In this routine I am entering text into txtboxes and doing some manipulations on it. I wish to check the simple text values as the routine proceeds.  As yet I have not used any of the debugging tools available in Lazarus and just now I have no wish to do so because my task isn't that complicated.

Is the inability to enter text while running from a terminal window expected behaviour and is there some workaround? if not is there another approach that will enable me to check text values during program execution without the interruptions of message windows?

Navigation

[0] Message Index

Go to full version