Return to Main PEBL site




2005-07-06
Instructions for PEBL 0.05 on OSX :

Download and install pebl.pkg.  This places pebl in 
/usr/local/share/pebl and /usr/local/bin.  Currently, PEBL must be run 
from the command line (there is no graphical front-end).  Open a 
terminal (in the applications folder) and type at the $ prompt:

$ /usr/local/bin/pebl

This will give the basic default output.  To run a demo, copy one from 
the main PEBL distribution (you need to download pebl_0.05_src.zip to get them).  Below is a 
bare-bones demo you can save somewhere like Documents/test.pbl:

define Start(par)
{
  win <- MakeWindow("grey")
  bg <- MakeColor("lightblue")
  fg <- MakeColor("white")
  font<-MakeFont("Vera.ttf",0,22,fg,bg,1)
  text <- MakeLabel("Press any key", font)
  AddObject(text,win)
  Move(text,100,200)
  Draw()
  WaitForAnyKeyPress()
  RemoveObject(text,win)
}



To execute, type:

$  /usr/local/bin/pebl Documents/test.pbl


To make for less typing, add /usr/local/bin to the path:

export PATH=$PATH:/usr/local/bin

then you can run:

$  pebl Documents/test.pbl


On OSX, there is no such thing as double-buffering.  Drawing can be 
synced to the vertical refresh, however, under fullscreen mode.  I doubt 
this is currently working however, so take care.