<div dir="ltr"><div class="gmail_default" style="font-size:large">Sure! I assume you are asking how to make a console app?<br></div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">You do not need {$APPTYPE CONSOLE} ... instead, you simply write your code like normal:</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Program example;</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Uses</div><div class="gmail_default" style="font-size:large"> CRT;</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Begin</div><div class="gmail_default" style="font-size:large"> ClrScr;</div><div class="gmail_default" style="font-size:large"> Writeln('Wassup?!');</div><div class="gmail_default" style="font-size:large"> Readln;</div><div class="gmail_default" style="font-size:large">End.</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">then in the command prompt (any OS), simply fpc example .... then .\example, or ./example - depending upon your OS... voila. "Console App".... now, that is not a DOS 16bit APP... that requires other mess, and since I own Turbo Pascal 7.0 source, I have my own TP 32bit compiler that produces TP 7 compatible 16bit Units and Apps. ;-)</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">@ you can get me at <a href="mailto:ozznixon@gmail.com">ozznixon@gmail.com</a> if you need any help (I do not normally code GUI apps - money in the Legacy market) so I have made a wide range of solutions. This email was started because of something odd on Windows recently for me...<br></div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Ozz</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 26, 2020 at 1:27 AM Gerhard Scholz <<a href="mailto:gs@g--s.de">gs@g--s.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I would like to know how you did that since it was exactly what I was <br>
searchomg for a while ago...<br>
<br>
Could you send me a piece of code?<br>
<br>
Greetings<br>
<br>
Gerhard<br>
<br>
<br>
----- Original Message ----- <br>
From: Ozz Nixon via fpc-devel<br>
To: FPC developers' list<br>
Cc: Ozz Nixon<br>
Sent: Sunday, April 26, 2020 2:21 AM<br>
Subject: [fpc-devel] Windows Console App<br>
<br>
<br>
Anyone ever experience making a console app (cross-platform), but, on <br>
windows when the app finishes, it appears to have put an uppercase C or D in <br>
the keyboard buffer, so the Prompt now has C:\>D<cursor> ???<br>
<br>
<br>
Every time I run my app, be it show help screen and end, or actually <br>
execute - when it finishes I end up with a letter sitting at the prompt. (A <br>
few months ago, I was having a problem, and it was related to compiling all <br>
of the methods with cdecl. That build would leave a stray "C" at the start <br>
of the prompt upon exiting. Now, I ran into a new problem where I needed to <br>
recompile with -FcUTF8 to track down which units it thought were having a <br>
UTF-8 mismatch... it was showing the wrong unit until I used the -FcUTF8 <br>
compile option, then it actually showed what file had '<highbit ascii>' <br>
strings ... so I switched to #<byte_number> and it compiles, but, the <br>
prompts have "D" at the start of them now. (hopefully I described that <br>
understandable).<br>
<br>
<br>
Environment: Windows XP 32bit<br>
C:\FPC\3.0.4\bin\i386-Win32\fpc.exe<br>
<br>
<br>
<br>
If no one else has experienced/has a solution, I will sit down and bang out <br>
test cases until I find what combination (units, code, whatever) is <br>
producing this result.<br>
<br>
<br>
Ozz<br>
<br>
<br>
<br>
_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a> <br>
<br>
</blockquote></div>