Simple writeln program not shown in console lazarus / 21-General ---------------------------------------------------------------------- Sukuna · 2025-04-09 10:13 Hello, I am learning how to code and try to make a simple program that writes 'Hello'. writeln('Hello'); readln; After compiling it says 'Success' but the message hello is not shown in any window. I read that this has something to do with the program maybe writing to the GUI and not the console, but I don't know how to fix this. ---------------------------------------------------------------------- cdbc · 2025-04-09 10:21 Hi You can try to start your 'Project1.exe' from a cmd-prompt, then it might write on screen while you app is running... But you're right, you should "Project" -> "New project" -> "Program" -> [OK] ...and in that skeleton, that opens for you, you can type your Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i begin  writeln('Hello World');  Readln;end.Regards Benny ---------------------------------------------------------------------- Sukuna · 2025-04-09 10:43 Quote from: cdbc on April 09, 2025, 12:21:52 pmHi You can try to start your 'Project1.exe' from a cmd-prompt, then it might write on screen while you app is running... But you're right, you should "Project" -> "New project" -> "Program" -> [OK] ...and in that skeleton, that opens for you, you can type your Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i begin  writeln('Hello World');  Readln;end.Regards Benny It worked, thank you so much. ---------------------------------------------------------------------- dseligo · 2025-04-09 10:46 You can also go menu Project, then Project Options. There you go to 'Config and Target' and uncheck option "Win32 gui application". Then your program will show graphic window and command prompt window. See attachment. ---------------------------------------------------------------------- ojz0r · 2025-04-09 14:03 Otherwise you can try the "ShowMessage('Hello World!')". Edit: Sorry I missed the "console" part... ---------------------------------------------------------------------- cdbc · 2025-04-09 14:32 Hi @Sukuna: If you're starting out with coding in pascal, then here's a goo book for you: http://www.copperwood.com/pub/FreePascalFromSquareOne.pdf Have fun Regards Benny ---------------------------------------------------------------------- Sukuna · 2025-04-11 11:10 Quote from: cdbc on April 09, 2025, 04:32:07 pmHi @Sukuna: If you're starting out with coding in pascal, then here's a goo book for you: http://www.copperwood.com/pub/FreePascalFromSquareOne.pdf Have fun Regards Benny Thank you, I am looking for a book.