Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Interactive post-coloring of readline input?

by andal (Hermit)
on Feb 09, 2012 at 10:14 UTC ( #952680=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Interactive post-coloring of readline input?
in thread Interactive post-coloring of readline input?

Actually, you should spend your time reading the manuals for Readline library. For example here .

Once you understand, which facilities the library provides for interacting with the users input, you should be able to find appropriate front-end functions in Perl. I see there functions like rl_insert_text, rl_delete_text which lead me to belief, that it is possible to do what you want. But personally I've never tried to do it.


Comment on Re^3: Interactive post-coloring of readline input?
Replies are listed 'Best First'.
Re^4: Interactive post-coloring of readline input?
by LanX (Canon) on Feb 09, 2012 at 16:35 UTC
    > Actually, you should spend your time reading the manuals for Readline library.

    Actually RTFM is how I spend most of yesterday. :(

    Readline is a fairly rich editor-like application ...

    FWIW hooking into rl_event_hook() is my best bet so far.

    Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://952680]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2015-07-28 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls