Log In  

Symptoms:

  • platform: Windows / Mac?
  • printh from a program yields nothing in the program output window

How to reproduce:

  • copy following code in main.lua
printh("bob")

precision: confirmed to work on Linux, text is directed to the console that launched picotron

P#143975 2024-03-20 19:36 ( Edited 2024-03-21 20:49)

AFAIK printh() isn't implemented - but would be a useful feature. See also here.

P#143976 2024-03-20 19:39

fixed with 0.1c

P#145084 2024-03-30 06:06

I'm running 0.1.0e on MacOS and still can't get any output from printh(). Anyone else succeed at this on MacOS?

P#146041 2024-04-08 12:05

tbh I’m on a Picotron emulated on Chromebook terminal (with box64 as my hardware is arm-based), and “printh” doesn’t work at all; “print” is the better syntax for now.

P#146079 2024-04-08 15:56

you need to run picotron from the OS console/shell.
printh doesn’t display within picotron.

P#146133 2024-04-09 04:57

Here's the batch file I have on my Windows desktop to launch picotron with the command window for debugging (printh will show in the command window which I generally have on a second screen):

cd C:\Program Files (x86)\Picotron
picotron.exe
pause

P#146139 2024-04-09 08:56

[Please log in to post a comment]