adding readline library problems

  • Thread starter Matthias Kievernagel
  • Start date
M

Matthias Kievernagel

Hello group,

Tried this in gnu.utils.help but got no answer.
So maybe someone knowledgeable in the gnu readline library
in comp.lang.c can help me out (or point me to a more appropriate
group).

I am trying to add readline to a program.
Three problems so far:
- Prompting and Input are two very different parts of the program.
No chance here I guess with readline?
It needs to know the prompt even with 'rl_already_prompted', correct?
- Can the history cope with changing prompt?
Haven't tried this yet, but searched and found nothing
in the documentation (info).
- TAB expansion for files is not useful in the program.
So I switched it off with: 'rl_bind_key('\t', rl_insert);'
Now you can insert verbatim TAB in the input.
This results in erroneous line display when using history.
Is this a known problem? workaround?

Anyone here can help me with these?
Thank you for any hints.

------------------------------------------------------------------------------
Matthias Kievernagel Software
development
mkiever/at/web/dot/de
http://mkiever.home.tlink.de
------------------------------------------------------------------------------
 
S

Seebs

Tried this in gnu.utils.help but got no answer.
So maybe someone knowledgeable in the gnu readline library
in comp.lang.c can help me out (or point me to a more appropriate
group).

I don't know the gnu.* hierarchy well enough, but I would think that
would be more useful. My experience with readline is only at the level
of being annoyed by build problems involving programs depending on
it when cross-compiling.

-s
 
J

Jens Thoms Toerring

Matthias Kievernagel said:
Tried this in gnu.utils.help but got no answer.
So maybe someone knowledgeable in the gnu readline library
in comp.lang.c can help me out (or point me to a more appropriate
group).

Sorry, can't help you with your questions (and it would be
rather off-topic for clc anyway;-) but I would guess the best
group to ask in (given that no-one on the GNU group is res-
ponding) is comp.unix.programmer. Chances are that at least
a certain number of regulars over there have been using the
readline library and topicality is bit more relaxed also.

Regards, Jens
 
M

Matthias Kievernagel

Jens Thoms Toerring said:
Sorry, can't help you with your questions (and it would be
rather off-topic for clc anyway;-) but I would guess the best
group to ask in (given that no-one on the GNU group is res-
ponding) is comp.unix.programmer. Chances are that at least
a certain number of regulars over there have been using the
readline library and topicality is bit more relaxed also.

Regards, Jens

Sorry for OT, thought comp.lang.c covers programming also.
(not easy to find an appropriate group :-/ )
Thanks and I'll try comp.unix.programmer then.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top