<div dir="ltr"><div class="gmail_default" style="font-size:large">I will check your suggestions Alexander.</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Checked the code, it does if paramcount=0 then show help, then exit from main begin/end. It does not interact with the keyboard unless instructed to (its a pascal script engine).</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 26, 2020 at 3:28 AM Alexander Grotewohl <<a href="mailto:alex@dcclost.com">alex@dcclost.com</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">
<div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
you're not using the crt unit are you? first because i think it doesn't support utf8 and second because i think you can cause this by doing "if keypressed.." without then doing readkey before exit.</div>
<div id="gmail-m_4785112339321434860ms-outlook-mobile-signature">
<div><br>
</div>
--<br>
Alexander Grotewohl<br>
<a href="https://dcclost.com" target="_blank">https://dcclost.com</a></div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_4785112339321434860divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> fpc-devel <<a href="mailto:fpc-devel-bounces@lists.freepascal.org" target="_blank">fpc-devel-bounces@lists.freepascal.org</a>> on behalf of Ozz Nixon via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a>><br>
<b>Sent:</b> Saturday, April 25, 2020 8:21:13 PM<br>
<b>To:</b> FPC developers' list <<a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a>><br>
<b>Cc:</b> Ozz Nixon <<a href="mailto:ozznixon@gmail.com" target="_blank">ozznixon@gmail.com</a>><br>
<b>Subject:</b> [fpc-devel] Windows Console App</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div style="font-size:large">Anyone ever experience making a console app (cross-platform), but, on windows when the app finishes, it appears to have put an uppercase C or D in the keyboard buffer, so the Prompt now has C:\>D<cursor>
???</div>
<div style="font-size:large"><br>
</div>
<div style="font-size:large">Every time I run my app, be it show help screen and end, or actually execute - when it finishes I end up with a letter sitting at the prompt. (A few months ago, I was having a problem, and it was related
to compiling all of the methods with cdecl. That build would leave a stray "C" at the start of the prompt upon exiting. Now, I ran into a new problem where I needed to recompile with -FcUTF8 to track down which units it thought were having a UTF-8 mismatch...
it was showing the wrong unit until I used the -FcUTF8 compile option, then it actually showed what file had '<highbit ascii>' strings ... so I switched to #<byte_number> and it compiles, but, the prompts have "D" at the start of them now. (hopefully I
described that understandable).</div>
<div style="font-size:large"><br>
</div>
<div style="font-size:large">Environment: Windows XP 32bit</div>
<div style="font-size:large">C:\FPC\3.0.4\bin\i386-Win32\fpc.exe<br>
</div>
<div style="font-size:large"><br>
</div>
<div style="font-size:large">If no one else has experienced/has a solution, I will sit down and bang out test cases until I find what combination (units, code, whatever) is producing this result.</div>
<div style="font-size:large"><br>
</div>
<div style="font-size:large">Ozz</div>
</div>
</div>
</div>
_______________________________________________<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>
</blockquote></div>