Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Using Term::ReadLine and pasting input with tabs

by Anonymous Monk
on Mar 22, 2016 at 22:30 UTC ( #1158566=note: print w/replies, xml ) Need Help??

in reply to Using Term::ReadLine and pasting input with tabs

That's because of tab completion, you need to disable it. IIRC it's done by binding (rl_bind_key in GNU Readline) the tab char to a function that just inserts literal tab. I don't know what backend you're using, so read its documentation.

P.S. I checked the doc for Term::ReadLine::Gnu, it seems it's something like $term->bind_key(ord "\t", 'tab-insert')

Replies are listed 'Best First'.
Re^2: Using Term::ReadLine and pasting input with tabs
by crux_capacitor (Initiate) on Mar 23, 2016 at 11:03 UTC
    It worked! Thank you! I'm using Term::ReadLine::readline, and so the line that fixed it was just this:
    &readline::rl_bind('tab', 'tab-insert');

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2020-02-22 06:04 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (98 votes). Check out past polls.