Jump to content





Add a console to jEdit

Posted by SpiceWare, in ColecoVision, jEdit, batari BASIC 29 September 2014 · 1,592 views

As I mentioned last night, due to some prodding by iesposta I finally took the time to figure out how to use jEdit to Compile and Run 2600 assembly code.  Now that I have it working, I really wish I'd done this years ago :roll:  I've also worked out how to do the same for ColecoVision assembly programs and will look into batari BASIC as well.
 
The first blog entry is how to add Console Support to jEdit.   jEdit uses the console to compile and run other programs, so this must be done first.  There will be 3 additional blog entries to follow, one each to cover 2600 assembly, ColecoVision assembly, and batari BASIC.   The 2600 assembly will be posted tonight, the other two later this week.  
 
 
Adding Console Support is fairly easy.  There's 3 things we're going to do.
  • Install the Console
  • Change a couple settings
  • Add Toolbar buttons
Install the Console
  • Select the Plugins menu
  • Select the Plugins Manager... menu option
  • Select the Install tab
  • Scroll down the list to find Console and check it.  You may notice that ErrorList will automatically be checked as well - this is OK.
  • Click Install button (lower left)
  • Wait for the install to finish, then click Close button
Attached Image
 
You've just installed the console!  Locate the new Console button - mine was on the bottom, yours might show up elsewhere.
Attached Image
 
When you click on Console it will open. 
Attached Image
 
If you click the small triangle just to the left of Console you'll get a list of options, such as Dock at Right and Float.  Use these to position the console to wherever works best for you - I have a wide screen monitor so I moved my console to the right.
Attached Image
 

Change a couple settings
Now that the Console's active, there's one required and one optional setting we need to change.
  • Select the Plugins menu
  • Select the Plugins Options... menu option
  • In the Console group select System Shell (click the the small triangle next to Console if you don't see System Shell)
  • You must check the option When TextArea buffer dir changes, cd to it
  • Optionally, if your compilers are all in the same directory, put that directory in Subshell extra PATH.  On my machine dasm (2600) and zasm(Coleco) are in /usr/local/bin
  • click OK
Attached Image
 
 
Add Toolbar buttons
 
This last section is optional, but you're going to want to do it as it makes it Compiling and Running your code easier.  You can still use the menus to if you don't wish to edit the toolbar - those options are Plugins->Console->Compile Current Buffer... and Plugins->Console->Run Current Buffer...
  • ​Select the Utilities menu
  • Select the Global Options... menu option
  • In the jEdit group select Tool Bar (click the small triangle next to jEdit if you don't see Tool Bar)
  • Scroll the toolbar list down to the bottom and select the jEdit Help icon
  • Hit the + button at the bottom.
  • Select Type Separator
  • Click OK
  • Hit the + button again
  • Select Type Command or Macro
  • From the drop down select Plugin: Console
  • From the list select Compile Current Buffer...
  • Select an icon (I went with the gear symbol - if you can't find the gear you probably have the "classic" icon set active.  See instructions below if you'd like to change that*)
  • Click OK
  • Hit the + button for a third time
  • Select Type Command or Macro
  • From the drop down select Plugin: Console
  • From the list select Run Current Buffer...
  • Select an icon (I went with the play symbol)
  • Click OK
  • Click OK again
Editing the toolbar:
Attached Image
 
Toolbar buttons are now in place:
Attached Image



* if the icons in your toolbar are monochrome then you're using the classic icon set.  If you'd like to change them to the colored icon set do the following:
  • Select the Utilities menu
  • Select the Global Options... menu option
  • In the jEdit group select Appearance (click the small triangle next to jEdit if you don't see Appearance).
  • Change Icon Theme to tango





Works slick!  Thanks for the detailed instructions.  jEdit is SO much better than TextEdit which I've been using.

  • Report

No problem!  I'm glad iesposta contacted me as I really like being able to compile & run via jEdit.

 

I did make a minor change - I set the Console to be a Floating window instead of Docked to the edge.

  • Report

Search My Blog

Recent Entries

Recent Comments

Latest Visitors

1 user(s) viewing

0 members, 1 guests, 0 anonymous users