Am Montag, 27.01.03 um 22:27 Uhr schrieb Wayne O. Cochran:

> Alright, what's the *&#%$! way to delete
> the last character at the top-level prompt?
> <backspace> emits ^H, <delete> does nothing.
>
> erase key is set:
>
> $ stty
> speed 38400 baud; line = 0;
> erase = ^H;
> -brkint -imaxbel
>
> I am using Linux.

This should work, and it does for me, at least using an OS X 
terminal.app to log into one of my Linux boxen.  Also, this isn't 
really a CMUCL-specific problem, as CMUCL just uses normal I/O, and 
doesn't meddle with tty settings.  I.e. anything that works for you 
with e.g. cat, should also work for CMUCL...

You might get more advice on this issue from one of the Linux or Unix 
newsgroups (it's been ages since I had to deal with stty problems, 
hence I don't remember much of the deep voodoo involved)...

A way to side-step the line-editing problems would be to use 
Emacs/XEmacs in combination with ILISP to interact with your CMUCL 
process, which also gives you much better editing options, including 
history, completion, etc.

Or you might have more luck using one of the readline-based top-level 
prompt packages for CMUCL (see www.cliki.net), assuming that readline 
works on your tty (i.e. does backspace/delete work in bash?).

Regs, Pierre.

-- 
Pierre R. Mai <[EMAIL PROTECTED]>                    http://www.pmsf.de/pmai/
  The most likely way for the world to be destroyed, most experts agree,
  is by accident. That's where we come in; we're computer professionals.
  We cause accidents.                           -- Nathaniel Borenstein


Reply via email to