Menu

Home

Nicholas Christopoulos Nicholas Christopoulos

CBRIEF for JED

The goal of this project is to emulate B.R.I.E.F text editor on JED.

JED[1] is a text editor by John E. Davis. It is an ancient emacs clone but has very good engine and uses SLang[2] instead of Lisp. JED works on Unix, VMS, MSDOS, OS/2, BeOS, QNX, and win9X/NT. I suppose MacOS X+ too.

BRIEF[3][4] was a powerful programmers text editor released first by Underwear (1986-1988) and later (1991/1992) by Borland.

I was always used BRIEF compatible editors. When I moved to linux, first I tried the crisp2.2e[7], then I patched jove[5], jove did the job for long time but jove does not support UTF8, so the last few years I patched JED.

I suggest to see GRIEF[6] project before continue with this one. The GRIEF is a very nice and excellent compatible BRIEF text editor, but has issues with Unix versions and seems abandoned. Also, JED is very light text editor comparable with anything else but still had a very powerfull macro language.

Note: It should work on any other system supported by JED, but I support only Unix-like systems.

[1] JED editor project
[2] S-Lang project
[3] BRIEF text editor, wikipedia
[4] Borland's BRIEF v3.1 User's Guide
[5] Jove text editor, wikipedia
[6] GRIEF project
[7] crisp-2.2e source

Default Keys

[CBRIEF-Keys]

Macros

[CBRIEF-Macros]

Installation

Note 2018-08-13 (thanks to Lechee.Lai) : Dependent on your distribution, before installation, create a symbolic link /usr/jed to /usr/share/jed.

Get & install the last patched version of JED

git clone git://git.code.sf.net/p/cbrief-for-jed/jed cbrief-for-jed-jed
cd cbrief-for-jed-jed
./configure --prefix=/usr
make && make xjed
make install

Get & install the CBRIEF's macros

git clone git://git.code.sf.net/p/cbrief-for-jed/code cbrief-for-jed-code
cd cbrief-for-jed-code
./install.csh

or install manually

  1. get files 'git clone git://git.code.sf.net/p/cbrief-for-jed/code cbrief-for-jed-code'
  2. copy jedmodes/x-keydefs.sl, *.sl and *.hlp files to $JED_HOME or $JED_ROOT/lib
  3. if you like hyperman (recommended) copy every file of jedmodes/ to $JED_HOME or $JED_ROOT/lib
  4. optionally you can copy the colors directory too
  5. edit your ~/.jedrc file and put on the beginning (the first require())
require("cbrief");

Issues

KEYPAD and Terminals

I could did it in scripts but it is not belongs to editor to enable or disable the keypad mode;
if num-lock didnt work try this before run jed:

/bin/echo -ne '\033='

This should work in most cases (linux,[u]rxvt,xterm)....

Fix terminal key codes

Edit ~/.jed/terminal.sl to add or modify control code sequences by using the Alt+Q key.

Example:
Change the HOME key control codes, go to the end of the file and type:

Key_Home="[Press Alt+Q][Press Home]";

Save file and exit... done...

Windows

CBRIEF does not support windows like BRIEFs, yet.
This is because JED supports only vertical windows.

Fonts and Window size... (xjed only)

JED uses the X resources, just add to your ~/.Xresources the following

Select a font

! Xorg's 7x15 bold looks nice
xjed*font: -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso10646-1
! or my "XSG Fixed 167"
!xjed*font: -xsg-xsg fixed 167-bold-b-normal--14-140-72-72-c-80-iso10646-1

Set the initial window size

xjed*Geometry: 132x35+100+100

Update the X database

xrdb -merge ~/.Xresources

Run it...

Laptops

Laptops have some restrictions, it is not easy to find home/end and pgup/down keys, for this reason we made a function to allow ctrl+left/right for home/end and ctrl+up/down for pgup/down

At your ~/.jedrc add this

public variable CBRIEF_KBDMODE = 0x6f;
require("cbrief");

Extras

You can also try the font that I use, http://christopoulos.users.sourceforge.net/fixed167/

JED Modes Repository. A collection of S-Lang scripts (modes) contributed by JED users.
http://jedmodes.sourceforge.net/

BRIEF v2.1 DOS VERSION
https://sourceforge.net/projects/cbrief-for-jed/files/BRIEF-HISTORY/BRIEF21.tar.gz/download

BRIEF v3.1 DOS VERSION
https://sourceforge.net/projects/cbrief-for-jed/files/BRIEF-HISTORY/BRIEF31.tar.gz/download

BRIEF EXTENSION MACRO PACKAGE v6.0 (BX)
https://sourceforge.net/projects/cbrief-for-jed/files/BRIEF-HISTORY/bx60.zip/download

Advertising at PC Magazine, Sep 1987
https://sourceforge.net/projects/cbrief-for-jed/files/BRIEF-HISTORY/BRIEF%20ADV%20-%20SEP%201987.png/download


The wiki uses Markdown syntax.

Project Members:


Related

Wiki: CBRIEF-Keys
Wiki: CBRIEF-Macros

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.