Forum > Beginners

Lazarus on Raspberry: no console window

(1/1)

ArminLinder:
Hi all,

I am starting to experiment with Lazarus/FPC (latest build 0.9.30.4) on the Raspberry Pi (Wheezy). First tests using GUI (LCL) Applications looked promising. Then I tried a console application, the very sophisticated code is:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Program TestConsole; begin  writeln('Hello World');  readln;end.
The code looks familiar, I guess :-) Please don't tell me that this problem has been solved before, and that there are libraries out there dealing with it.  >:D

Unfortunately this fine code piece won't work as expected. The program will run, I can even step through the code using the debugger, but no terminal will open. Running it from the command line doesn't produce a terminal as well.

The same sample works well on Windows.

Is there anything known about this issue?

Thanks

Armin.

Leledumbo:
If you run it from lazarus: Debug->Terminal Output

Welcome to Linux world where EVERY application is practically a console application, but the console isn't attached per application/process as in Windows. It's the host application that must read the standard output of the underlying application then display it in its own terminal emulator window. In Lazarus case, it's displayed in terminal output window. Outside, you must run it in a terminal (emulator).

Navigation

[0] Message Index

Go to full version