Skip to content

z80playground/jed

Repository files navigation

jed

This is a text editor for CP/M v2.2

It is a "modern" text editor, in that it can use VT100 cursor keys, and Page Up, Page Down, Home, End, Backspace etc, rather than CP/M-style Ctrl-S, Ctrl-E keys! But it is totally configurable, so you can set the keys to be whatever you want.

It's only a prototype so far, but it supports this:

  • You can start it with a filename, and it will load up that file: JED MYFILE.TXT
  • You can start it with no filename, and it will make an empty doc: JED
  • If you start with no filename it will ask for one when you exit.
  • You can navigate around with whichever keys you have chosen to be your cursor keys.
  • You can press Home to go to the first non-space character in a row, or the start of the line.
  • You can press End to go to the end of the row.
  • You can press PAGE-UP and PAGE-DOWN to go up and down by a page.
  • You can press Ctrl + X to save and exit.
  • You can press another key of your choosing to exit without saving.

There is also a configuration program, JEDCONF.COM, which configures the screen dimensions, and the key definitions. Run JEDCONF first to define all your keys and set your screen height and width. This will create a file JED.CFG with the configuration in it, which JED will then use. Each key, such as Page-Up can be associated with a string of up to 8 hex values, so just about any keyboard should work with it. You must edit a file on the same disk as JED, with the JED.CFG file also on that disk, so JED can find it.

I am experimenting with syntax highlighting specifically for assembler files, so anything after a ";" is treated as a comment and coloured in green!

There is also an auto-indent option, so if you indent a line, then press ENTER, the next line will be implemented too.

TODO list:

  • Implement "JED newfile.txt" so you can create a new empty file.
  • Selecting parts of a file with shift-cursor-keys.
  • Copy/Paste/Cut
  • Integrate ZSM so that you can assemble and make a .com file directly from inside JED.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published