Jump to content
  • entries
    657
  • comments
    2,692
  • views
    898,026

Add a console to jEdit


SpiceWare

2,476 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.

  1. Install the Console
  2. Change a couple settings
  3. 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

blogentry-3056-0-48041000-1412033611_thumb.png

 

You've just installed the console! Locate the new Console button - mine was on the bottom, yours might show up elsewhere.

blogentry-3056-0-48342200-1412033827_thumb.png

 

When you click on Console it will open.

blogentry-3056-0-89616500-1412033893_thumb.png

 

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.

blogentry-3056-0-94177500-1412034213_thumb.png

 

 

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

blogentry-3056-0-09421800-1412034892_thumb.png

 

 

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:

blogentry-3056-0-93340400-1412035943_thumb.png

 

Toolbar buttons are now in place:

blogentry-3056-0-25914700-1412035964_thumb.png

 

 

 

* 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

 

JEDIT NAVIGATION
<PREVIOUS> <INDEX> <NEXT>

4 Comments


Recommended Comments

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.

Link to comment

This looks really convenient to use. I'm currently using Notepad++, this looks like a much more suited solution. I see there's a Debian release. Might even attempt to get this running on a Raspberry Pi.

Link to comment

Works quite well. I'm not currently using the console feature though - I don't know of a way to get jEdit running on the Mac to launch a compile via the virtual machine we're using for the Harmony/Melody club.

 

I'm about to post a minor update to the Mode files.

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...