Bwbasic-3.20b
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 3.6 KiB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # Bwbasic-3.20b
  2. This program will work under Linux and under DOS.
  3. 4-16-2020 Updated 4-30-2020 3.20b
  4. Bwbasic has been around since the early 1990's
  5. in one form or another and actually quite powerfull.
  6. This should work under most any Linux and Linux under
  7. WSL (Ubuntu, Debian) for windows at the command prompt.
  8. If running this under Linux you will need 'gcc' compiler.
  9. To see if it's installed type in gcc --version if OK
  10. then simply do the following:
  11. tar -xf bwbasic-3.20b.tar
  12. cd <here>
  13. To make 'cls' work as it does in DOS perform once
  14. sudo ln /usr/bin/clear /usr/bin/cls
  15. Tip: Now linking to clear within a bwbasic program you
  16. can clear the screen using command SHELL "cls"
  17. This can be embedded in you program. You can also
  18. use OPTION TERMINAL ANSI then use command CLS
  19. Now lets build bwbasic and renum
  20. (1) make
  21. To test before installing (2) make runlocal
  22. Then to install (3) sudo make install
  23. To remove installed programs (4) sudo make remove
  24. To remove compiled programs and recompile (5) make clean
  25. That's it.
  26. bwbasic and renum will be in /usr/local/bin
  27. If you want bwbasic to work from a GUI cd GUI
  28. (1) copy bwbasic.sh to a suitable location
  29. and make sure to chmod 755 bwbasic.sh
  30. so it's executable.
  31. (2) copy bwbasic.png to a suitable location
  32. (3) edit bwbasic.desktop and change references
  33. for File Location and png location then
  34. cp bwbasic.desktop to ~/Desktop/.
  35. and it should work from the desktop.
  36. Doing the above should allow you to click on the icon
  37. on your desktop and start bwbasic.
  38. If running under Windows 10 you will need 'gcc' compiler.
  39. To see if it's installed type in gcc --version if you
  40. think you have gcc installed verify your 'PATH' by entering
  41. at the command prompt echo %PATH% to see if it's there.
  42. If OK then at the command prompt
  43. cd <here>
  44. compile.bat
  45. Read prompts
  46. That's it.
  47. Move bwbasic.exe and renum.exe to locations in your PATH.
  48. There are many, many examples in BAS-EXAMPLES and
  49. available information in INFO.
  50. All should work fine. But as usual no guarentee is implied.
  51. Any references below to relays pertain to the BeagleBone Black.
  52. I have included some runtime files and sample input files.
  53. Place profile.bas in your current working directory and
  54. relays.pro and allon.inp and alloff.inp. The file examples
  55. will let you to by example turn off all relays alloff.inp.
  56. To do this you would enter at the command line:
  57. bwbasic --profile relays.pro --tape alloff.inp relays.bas
  58. To turn all relays on:
  59. bwbasic --profile relays.pro --tape allon.inp relays.bas
  60. To work interactive you would:
  61. bwbasic relays.bas
  62. Once you get a handle on relays.bas commands you can
  63. create you own .inp files and reference them by
  64. bwbasic --profile relays.pro --tape <your file.inp> relays.bas
  65. All the above can placed into a simple script file.
  66. The purpose of relays.pro is to redirect standard and error
  67. outputs to files relays-stdout.txt and relays-error.txt and
  68. to turn off ANSI so the output is easily readable without
  69. escape codes. Using relays.pro then gives you a quiet display
  70. suitable when scripts via .inp is executed.
  71. The purpose of profile.bas which is used by default is to
  72. enable ANSI control sequences so the command 'cls' works
  73. and to set the normal editor to nano which if desired can
  74. bet set to vi. The editor comes into play when creating
  75. or changing a .bas file. To use while running bwbasic you
  76. would issue the command edit.
  77. As a simple example try the guessing game with
  78. bwbasic guess.bas
  79. If you come up with some ideas or enhancements or have a
  80. problem drop me a message keeping in mind my main goal
  81. is to do maintenance updates where necessary.
  82. ken.at.github@gmail.com
  83. Bwbasic-3.20b