I was recently also struggeling with T:RL. as it seems Gnu-Readline is the reference implementation and all alternatives have practically no POD.
If you don't wanna install an XS module, I'd recommend to take one of the pure Perl implemantations, which have practically no dependencies, i.e. you could simply copy them into your distribution and modify them as you wish (but check licence before!)
see %Features of T::RL to know which functionality is supported by underlying module.
DB<105> $term->Features
=> {
addHistory => 1,
appname => 1,
attribs => 1,
autohistory => 1,
getHistory => 1,
minline => 1,
newTTY => 1,
ornaments => 1,
preput => 1,
readHistory => 1,
setHistory => 1,
stiflehistory => 1,
tkRunning => 1,
writeHistory => 1,
}
I suppose preput means what your looking for.
HTH
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.