Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by Anonymous Monk
on Mar 22, 2016 at 22:30 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-20 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found