clstrfsck / ludwig-c

Ludwig editor developed at the University of Adelaide during the 1980s, ported to C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

{**********************************************************************}
{                                                                      }
{            L      U   U   DDDD   W      W  IIIII   GGGG              }
{            L      U   U   D   D   W    W     I    G                  }
{            L      U   U   D   D   W ww W     I    G   GG             }
{            L      U   U   D   D    W  W      I    G    G             }
{            LLLLL   UUU    DDDD     W  W    IIIII   GGGG              }
{                                                                      }
{**********************************************************************}

ABOUT

Ludwig is a text editor developed at the University of Adelaide. It is an interactive, screen-oriented text editor. It may be used to create and modify computer programs, documents or any other text which consists only of printable characters.

Ludwig may also be used on hardcopy terminals or non-interactively, but it is primarily an interactive screen editor.

This is a C++ port of the Ludwig code. The original Pascal code is available here: https://github.com/cjbarter/ludwig

Building

Either clang++ or g++ can build Ludwig-C.

make NDEBUG=1

This will produce ludwig which can be copied to your preferred directory for local binaries, eg /usr/local/bin.

Usage

Open/create a file with name

ludwig <file-name>

The file .ludwigrc in your home directory will be loaded whenever you start ludwig.

Or with some additional initialisation parameters

ludwig -O -i <initialisation-file-name> <file-name>

    -O invokes Version 5 command names

    -i initialisation file (optional) executed after .ludwigrc

Help

There are two help files

  • old commands help files: "ludwighlp.idx"
  • new commands help files: "ludwignewhlp.idx"

Copy these into /usr/local/help

mkdir -p /usr/local/help
cp *.idx /usr/local/help

A couple of useful commands (-O version) to get you started are:

km/home/<ac/
km/end/>eol [<ac] >ac/

This will make your home key move the cursor to the start of the line, and the end key move the cursor to the end of the current line.

They can be put into an initialisation file or .ludwigrc

Quick notes, Ludwig command \h will give you the help pages on Ludwig commands and \q will exit the editing session.

About

Ludwig editor developed at the University of Adelaide during the 1980s, ported to C++


Languages

Language:C++ 89.1%Language:Perl 8.2%Language:C 2.3%Language:Makefile 0.4%