bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] maybe-complete/self-insert


From: Lui Fungsin
Subject: [Bug-readline] maybe-complete/self-insert
Date: Tue, 28 Aug 2007 16:35:42 -0700

Please excuse me if this is not the right place to ask questions, as I
cannot find a user/devel list for gnu readline.

I'm reading the manual and some of the example codes that come with
gnu readline.

By going through these resources and the header file, I don't seem to
find a way to do the following:

#1 In the fileman example code, how do I bind '?' as a special key so
that when the user type ? (without pressing enter), the menu will be
printed automatically?

FileMan: ?
cd              Change to directory DIR.
delete          Delete FILE.
help            Display this text.
?               Synonym for `help'.
list            List files in DIR.
ls              Synonym for `list'.
pwd             Print the current working directory.
quit            Quit using Fileman.
rename          Rename FILE to NEWNAME.
stat            Print out statistics on FILE.
view            View the contents of FILE.


#2 Is there a way to bind the space key as a special key so that
depending on context, it will either do a self-insert (a space
character) or do completion (if the cursor is at the end of a word)

FileMan: del<space>

=>

FileMan: delete


I'd appreciate any help on this.

Thanks,
Fungsin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]