Eli   Documents Get Eli: Translator Construction Made Easy at SourceForge.net.
    Fast, secure and Free Open Source software downloads

General Information

 o Eli: Translator Construction Made Easy
 o Global Index
 o Frequently Asked Questions
 o Typical Eli Usage Errors


 o Quick Reference Card
 o Guide For new Eli Users
 o Release Notes of Eli
 o Tutorial on Name Analysis
 o Tutorial on Type Analysis
 o Typical Eli Usage Errors

Reference Manuals

 o User Interface
 o Eli products and parameters
 o LIDO Reference Manual
 o Typical Eli Usage Errors


 o Eli library routines
 o Specification Module Library

Translation Tasks

 o Lexical analysis specification
 o Syntactic Analysis Manual
 o Computation in Trees


 o LIGA Control Language
 o Debugging Information for LIDO
 o Graphical ORder TOol

 o FunnelWeb User's Manual

 o Pattern-based Text Generator
 o Property Definition Language
 o Operator Identification Language
 o Tree Grammar Specification Language
 o Command Line Processing
 o COLA Options Reference Manual

 o Generating Unparsing Code

 o Monitoring a Processor's Execution


 o System Administration Guide

Mail Home

Eli User Interface Reference Manual

Previous Chapter Next Chapter Table of Contents

The Command Editing Mechanism

During an interactive Eli session, an odin-command may be edited before it is interpreted by typing either control characters or escape sequences. (An escape sequence is entered by typing ESC followed by one or more characters. Note that unlike control keys, case matters in escape sequences; ESC F is not the same as ESC f.)

A control character or escape sequence may be typed anywhere on the line, not just at the beginning. In addition, a return may also be typed anywhere on the line, not just at the end.

Most control characters and escape sequences may be given a repeat count, n, where n is a number. To enter a repeat count, type the escape key, the number, and then the character or escape sequence:

ESC 4 ^F

This sequence moves the cursor forward four characters. If a command may be given a repeat count then the text "[n]" is given at the end of its description.

Eli accepts the following control characters when editing odin-commands:

Move to the beginning of the line

Move left (backwards) [n]

Delete character [n]

Move to end of line

Move right (forwards) [n]

Ring the bell

Delete character before cursor (backspace key) [n]

Complete filename (tab key); see below

Done with line (return key)

Kill to end of line (or column [n])

Redisplay line

Done with line (alternate return key)

Get next line from history [n]

Get previous line from history [n]

Search backward (forward if [n]) through history for text; must start line if text begins with an uparrow

Transpose characters

Insert next character, even if it is an edit command

Wipe to the mark

Exchange current location and mark

Yank back last killed text

Start an escape sequence (escape key)

Move forward to next character c

Delete character before cursor (delete key) [n]

Eli accepts the following escape sequences when editing odin-commands:

Delete previous word (backspace key) [n]

Delete previous word (delete key) [n]

Set the mark (space key); see ^X^X and ^Y above

Get the last (or [n]'th) word from previous line

Show possible completions; see below

Move to start of history

Move to end of history

Move backward a word [n]

Delete word under cursor [n]

Move forward a word [n]

Make word lowercase [n]

Toggle whether 8-bit chars display normally or with the M- prefix

Make word uppercase [n]

Yank back last killed text

Make area up to mark yankable

ESC nn
Set repeat count to the number nn

Read from environment variable _C_, where C is an uppercase letter

If you type the escape key followed by an uppercase letter, C, then the contents of the environment variable _C_ are read in as if you had typed them at the keyboard. For example, if the variable _L_ contains the following:

^A^Kecho '^V^[[H^V^[[2J'^M

Then typing ESC L will move to the beginning of the line, kill the entire line, enter the echo command needed to clear the terminal (if your terminal is like a VT-100), and send the line back to Eli.

The command editing mechanism also supports filename completion. Suppose the root directory has the following files in it:

bin	vmunix	core	vmunix.old

If you type rm /v and then the tab key, Eli will finish off as much of the name as possible by adding munix. Because the name is not unique, it will then beep. If you type the escape key and a question mark, it will display the two choices. If you then type a period and a tab, Eli will finish off the filename for you:

rm /v[TAB]munix.[TAB]old

The tab key is shown by [TAB] and the automatically-entered text is shown as munix.

Previous Chapter Next Chapter Table of Contents