Eli   Documents

General Information

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

Tutorials

 o Quick Reference Card
 o Guide For new Eli Users
 o Release Notes of Eli
 o Tutorial on Name Analysis
 o Tutorial on Scope Graphs
 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

Libraries

 o Eli library routines
 o Specification Module Library

Translation Tasks

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

Tools

 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

Administration

 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:

^A
Move to the beginning of the line

^B
Move left (backwards) [n]

^D
Delete character [n]

^E
Move to end of line

^F
Move right (forwards) [n]

^G
Ring the bell

^H
Delete character before cursor (backspace key) [n]

^I
Complete filename (tab key); see below

^J
Done with line (return key)

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

^L
Redisplay line

^M
Done with line (alternate return key)

^N
Get next line from history [n]

^P
Get previous line from history [n]

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

^T
Transpose characters

^V
Insert next character, even if it is an edit command

^W
Wipe to the mark

^X^X
Exchange current location and mark

^Y
Yank back last killed text

^[
Start an escape sequence (escape key)

^]c
Move forward to next character c

^?
Delete character before cursor (delete key) [n]

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

ESC ^H
Delete previous word (backspace key) [n]

ESC DEL
Delete previous word (delete key) [n]

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

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

ESC ?
Show possible completions; see below

ESC <
Move to start of history

ESC >
Move to end of history

ESC b
Move backward a word [n]

ESC d
Delete word under cursor [n]

ESC f
Move forward a word [n]

ESC l
Make word lowercase [n]

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

ESC u
Make word uppercase [n]

ESC y
Yank back last killed text

ESC w
Make area up to mark yankable

ESC nn
Set repeat count to the number nn

ESC C
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