jBASE Editor

The jBASE Editor (jED) editor is a full screen, context sensitive, screen editor designed specifically for ease of use and learning. It is the preferred editing tool for the jBASE operating environment and the jBASE BASIC programs.

jED features incorporates many powerful facilities for manipulating text and data. It gives full screen access to jBASE file records and UNIX files (a feature not provided by other editors). The Command keystrokes are fully configurable by each user, as is the keyboard. Therefore, jED is customizable to mimic many of the operations of other editors and provide a familiar environment for new users. Keyboard and command independence make jED the most versatile and powerful editing tool available for all jBASE-editing requirements.

Below is the jED command syntax:

jED Filename Item (Options jED Item)

Editor Screen

A typical jED editor session is shown below.

*File PROGS, Record cust_rep.b Insert 10:45:17
Command->
001
002
003
-------------------------------- End Of Record --------------------------------

The screen is divided into three sections:

  • The editor status line at the top
  • The command line
  • The data editing area, which fills the rest of the screen

Invoking jED

You can invoke jED by calling the jED editor from the UNIX or Windows Command line.

The command syntax is:

jed Filename Item (Options JED Item )

or

jed pathname {pathname..}

or

jed {DICT} filename{,filesection} {record-list} {(options)}}

If you simply issue jED as a command, then the editor will open at the last file in use. The cursor will be positioned wherever it was when the last edit session was closed. In other words, you can continue from where you last left off. If the file referenced by pathname does not exist the Command, jed pathname, will either open an existing file or create a new one. The contents of the file will be displayed in the edit window. If list files are specified, then the editor will present the next file successively at the end of an edit session of each one.

When the editor is supplied with the name of a file resident in a database (such as a j-file), it scans the rest of the Command line looking for a list of records keys. If no record keys were specified, then the jED editor will prompt for a list. Otherwise, the list of record keys will be edited one after the other.

NOTE: Since the editor uses the jEDI interface to access the records, it can be used to edit records in any file system that jEDI recognizes.

Using jED

jED has two different modes:

  • Command mode for entering editor Commands, and
  • Edit mode for entering or modifying data
NOTE: The current mode is displayed at the top of the screen.

Command Mode

When the editor is invoked, the record or text file is displayed, and the user is placed in input mode with the cursor at the input position.

To change to Command mode simply press the Esc key on the keyboard. The cursor now moves to the top portion of the screen and the editor awaits input of a command. Once a valid Command has been executed, control passes back to the Edit mode if appropriate.


Bookmark Name Actions
Feedback
x