1775
Posts: 51
Joined: Sat Apr 18, 2015 4:16 am

Looking for a decent BASIC Language interpreter for Raspbian

Wed May 13, 2015 8:49 pm

I have tried SpecBas and the editor was a problem and for some reason would not recognize the " key on my keyboard (which works for everything else). I have read through posts here and BBC BASIC does not exist other than for RISC OS, Tiny Basic does not seem to exist - links all broken on all websites, RTB Basic seems a little odd.

Anyone know of a BASIC Language with a screen editor that works on a RaspPi 2 B in Raspbian OS? And where to download it? Thanks!

Correction - RTB Basic does not download. Tried for link and tried through Synaptic - Synaptic says the package is broken.


1775
Posts: 51
Joined: Sat Apr 18, 2015 4:16 am

Re: Looking for a decent BASIC Language interpreter for Rasp

Thu May 14, 2015 9:28 pm

jbeale wrote:Did you use this method for RTB Basic? https://projects.drogon.net/rtb/rtb-dow ... d-install/
Yes - I tried that - followed it exactly. First line went fine - cd /tmp , The second line (wget) results in a message that says I do not have permission to access and that I do not have permission to write to the file. This all through the Raspbian terminal. Tried this several times all with the same result.

+++ Tried again just now and it seems to have installed. I also installed the demo files and the sound dependencies.

Problem is now it will not run - it says type rtb in the command line - the result is rtb is not a command...

mikerr
Posts: 2770
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: Looking for a decent BASIC Language interpreter for Rasp

Thu May 14, 2015 10:48 pm

I followed those instructions and similarly found rtb wasn't installed,

they key is you have to run the install again after sudo apt-get -f install :

Code: Select all

cd /tmp
sudo dpkg -i rtb-2.20-1.deb
Last edited by mikerr on Thu May 14, 2015 11:15 pm, edited 1 time in total.
Android app - Raspi Card Imager - download and image SD cards - No PC required !

1775
Posts: 51
Joined: Sat Apr 18, 2015 4:16 am

Re: Looking for a decent BASIC Language interpreter for Rasp

Thu May 14, 2015 11:00 pm

mikerr wrote:I followed those intructiona and similarly founr rtb wasn't installed,

they key is you have to run the install again after sudo apt-get -f install :

Code: Select all

cd /tmp
sudo dpkg -i rtb-2.20-1.deb
Yes, thank you. I just discovered that myself when I looked for installed software and it was not listed. I have it installed and running. The editor and run box is small - maybe a four inch square. Any way to adjust that larger.

Thanks again!

mikerr
Posts: 2770
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: Looking for a decent BASIC Language interpreter for Rasp

Thu May 14, 2015 11:30 pm

I guess you're running it in X windows, not from the console? The console automatically runs fullscreen...

If under X windows, the window it opens isn't resizable on the fly (as you've found), but you can set it to fill the screen when you start it up
(it uses 640 x 480 by default)

so specify the width and height of your screen ( use rtb -D to find your screensize):

Code: Select all

rtb -f -x 1292 -y 992
That -f option makes if fullscreen borderless, remove it if you want it in a window.
Android app - Raspi Card Imager - download and image SD cards - No PC required !

User avatar
scruss
Posts: 2361
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Looking for a decent BASIC Language interpreter for Rasp

Fri May 15, 2015 12:45 am

If you don't mind the editor not being built in, X11-Basic comes with a highlighting setup for the Geany IDE. It's a slightly unusual dialect of BASIC - based on GFABASIC, which was popular on the Atari St and Amiga in the early 1990s. It's a fast interpreter, and even faster compiler.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

1775
Posts: 51
Joined: Sat Apr 18, 2015 4:16 am

Re: Looking for a decent BASIC Language interpreter for Rasp

Fri May 15, 2015 4:10 am

mikerr wrote:I guess you're running it in X windows, not from the console? The console automatically runs fullscreen...

If under X windows, the window it opens isn't resizable on the fly (as you've found), but you can set it to fill the screen when you start it up
(it uses 640 x 480 by default)

so specify the width and height of your screen ( use rtb -D to find your screensize):

Code: Select all

rtb -f -x 1292 -y 992
That -f option makes if fullscreen borderless, remove it if you want it in a window.

This is great. Thank you! Is there some reference that shows these additions to rtb such as the -f, etc.? The screen is great - the font is small - is there also a command to force that to large from "standard"? I have the RTB manual but nothing like this in that.

Sorry to be a pest. So far this has helped a lot!

Thank you!

User avatar
MarkHaysHarris777
Posts: 1820
Joined: Mon Mar 23, 2015 7:39 am
Location: Rochester, MN
Contact: Website

Re: Looking for a decent BASIC Language interpreter for Rasp

Fri May 15, 2015 5:37 am

See this post (read all):

viewtopic.php?f=91&t=107540

See:

http://www.nicholson.com/rhn/basic/

Chipmunk BASIC is fabulous; has some nice X graphics, and is a very solid interpreter that goes back to the very early days of the first macs. Ron Nicholson supports Chipmunk BASIC and has provided a recent download link on his site (second link above) about half way down... has the executable, a man file, and a text file. The first link above is the discussion link for all interested in Chipmunk BASIC for Raspberry PI.

PS you will also need this font package:

sudo apt-get install xfonts-base
marcus
:ugeek:

mikerr
Posts: 2770
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: Looking for a decent BASIC Language interpreter for Rasp

Fri May 15, 2015 9:02 am

1775 wrote: This is great. Thank you! Is there some reference that shows these additions to rtb such as the -f, etc.? The screen is great - the font is small - is there also a command to force that to large from "standard"? I have the RTB manual but nothing like this in that.
man <command> gets you help for any linux command:

Code: Select all

man rtb

NAME
       rtb - A modern BASIC interpreter

SYNOPSIS
       rtb [OPTION]... [FILE]

DESCRIPTION
       RTB  is a contemporary BASIC interpreter. It supports modern structured
       programming concepts such as while and until loops  as  well  as  named
       procedures and functions which support local variables and recursion.

OPTIONS
       -f     Run in full-screen mode.

       -d     Enables double-buffering mode. (Not recommended)

       -h     Tries  to  use  the  hardware frame-buffer directly. (Not recomâ
              mended)

       -s     Disables sound support. (Programs will be quiet,  but  this  may
              also affect timings!)

       -D     Dump  the  available  screen modes. Use with -f to display modes
              available in full-screen mode.

       -l     Switch to large font size. (Double size font)

       -m mode <mode>
              Start in the given screen mode.

       -x <size>

       -y <size>
              Force the screen size to the given value in pixels

       -z <size>
              Force the screen colour depth to the given bits per pixel.  (Not
              recommended)

       FILENAME
              when  the  interpreter starts. This option can be given to cause
              it to load and run the named program file.
So to answer your question .. the -l option gives larger fonts....
Android app - Raspi Card Imager - download and image SD cards - No PC required !

troombatzia
Posts: 501
Joined: Fri Jun 29, 2012 4:27 pm

Re: Looking for a decent BASIC Language interpreter for Rasp

Fri May 15, 2015 11:01 am

I would add Gambas to the list of available Basic interpreters for Raspian (here's how to install packages):

http://gambaswiki.org/wiki/install/raspbian
English isn’t my first language, so please excuse any mistakes.

1775
Posts: 51
Joined: Sat Apr 18, 2015 4:16 am

Re: Looking for a decent BASIC Language interpreter for Rasp

Fri May 15, 2015 4:51 pm

mikerr wrote:
1775 wrote: This is great. Thank you! Is there some reference that shows these additions to rtb such as the -f, etc.? The screen is great - the font is small - is there also a command to force that to large from "standard"? I have the RTB manual but nothing like this in that.
man <command> gets you help for any linux command:

Code: Select all

man rtb

NAME
       rtb - A modern BASIC interpreter

SYNOPSIS
       rtb [OPTION]... [FILE]

DESCRIPTION
       RTB  is a contemporary BASIC interpreter. It supports modern structured
       programming concepts such as while and until loops  as  well  as  named
       procedures and functions which support local variables and recursion.

OPTIONS
       -f     Run in full-screen mode.

       -d     Enables double-buffering mode. (Not recommended)

       -h     Tries  to  use  the  hardware frame-buffer directly. (Not recomâ
              mended)

       -s     Disables sound support. (Programs will be quiet,  but  this  may
              also affect timings!)

       -D     Dump  the  available  screen modes. Use with -f to display modes
              available in full-screen mode.

       -l     Switch to large font size. (Double size font)

       -m mode <mode>
              Start in the given screen mode.

       -x <size>

       -y <size>
              Force the screen size to the given value in pixels

       -z <size>
              Force the screen colour depth to the given bits per pixel.  (Not
              recommended)

       FILENAME
              when  the  interpreter starts. This option can be given to cause
              it to load and run the named program file.
So to answer your question .. the -l option gives larger fonts....
Terrific! Again, thank you so much!

I will also look at the other BASICs suggested!

Return to “Raspbian”