Readline interface: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Perl6 entry) |
|||
Line 418: | Line 418: | ||
<small>Code thanks to [http://pari.math.u-bordeaux.fr/archives/pari-dev-1002/msg00023.html Bill Allombert]</small> |
<small>Code thanks to [http://pari.math.u-bordeaux.fr/archives/pari-dev-1002/msg00023.html Bill Allombert]</small> |
||
=={{header|Perl 6}}== |
|||
Perl 6 has a built in REPL that can be initiated by running the perl6 executable without any parameters. It is fairly basic on its own but here are bindings available in the Perl 6 ecosystem for [https://tiswww.case.edu/php/chet/readline/rltop.html GNU Readline] and/or [https://github.com/antirez/linenoise Linenoise] either of which will automatically provide command history, tab completion and more advance command line editing capability if installed. They are not included in the Perl 6 distribution directly. There are incompatible licensing requirements and providing hooks for third party tools allows for more customization options. |
|||
Linenoise is generally the preferred option unless you really want the emacs compatible command line editing key bindings. Readline is arguably more powerful but is somewhat fiddly to set up. |
|||
If you are not inclined to install Readline ''or'' Linenoise, the REPL also works fairly well with 3rd party tools like rlwrap. |
|||
=={{header|Pike}}== |
=={{header|Pike}}== |