Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created December 13, 2017 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/bf3802450f95f67df5c8efa6809caf5f to your computer and use it in GitHub Desktop.
Save Whateverable/bf3802450f95f67df5c8efa6809caf5f to your computer and use it in GitHub Desktop.
greppable6
Readline
File Code
araraloren/perl6-app-snippet
…/META6.json :8:
"Readline",
araraloren/perl6-app-snippet
…/snippet.pm6 :2:
use Readline;
araraloren/perl6-app-snippet
…/snippet.pm6 :281:
my $readline = Readline.new;
drforr/perl6-readline
…/META6.json :8:
"Readline" : "lib/Readline.pm"
drforr/perl6-readline
…/META6.json :24:
"name" : "Readline",
drforr/perl6-readline
…/META6.json :30:
"description" : "Perl 6 interface to GNU Readline, the CLI-based line reading library"
drforr/perl6-readline
…/README.md :1:
Readline
drforr/perl6-readline
…/README.md :4:
Readline provides a Perl 6 interface to libreadline.
drforr/perl6-readline
…/README.md :6:
XXX This will probably be a frontend to Readline::Gnu when that's factored out.
drforr/perl6-readline
…/README.md :7:
XXX For the moment keep all the code here in the Readline module.
drforr/perl6-readline
…/README.md :12:
* Since Readline uses libreadline, libreadline.so.5 must be found in /usr/lib.
drforr/perl6-readline
…/README.md :22:
zef update && zef install Readline
drforr/perl6-readline
…/cb-echo.pl6 :3:
use Readline;
drforr/perl6-readline
…/echo.pl6 :3:
use Readline;
drforr/perl6-readline
…/echo.pl6 :5:
my $readline = Readline.new;
drforr/perl6-readline
…/Readline.pm :11:
Readline - GNU Readline binding for perl6
drforr/perl6-readline
…/Readline.pm :17:
my $readline = Readline.new;
drforr/perl6-readline
…/Readline.pm :27:
A thin OO wrapper around the GNU Readline library. It exposes every function that the current Readline library does, along with s…
drforr/perl6-readline
…/Readline.pm :29:
Method names are taken verbatim from the GNU Readline library, with one exception. Library calls use '_', Readline methods use '-'. This helps keep the two layers separate, and is a not-so-subtle reminder that you're using perl6 when using the library.
drforr/perl6-readline
…/Readline.pm :31:
The documentation in the METHODS section is a verbatim paste of the appropriate bits from the GNU Readline documentation, so for further explanation of the methods, especially callbacks and completion, please see the L<GNU Readline> documentation.
drforr/perl6-readline
…/Readline.pm :33:
Any chapter references in the documentation refer to the GNU Readline or GNU History manual.
drforr/perl6-readline
…/Readline.pm :43:
Initialize or re-initialize Readline's internal state. It's not strictly necessary to call this; readline() calls it before reading any input.
drforr/perl6-readline
…/Readline.pm :228:
Return the keymap matching C<$name>. C<$name> is one which would be supplied in a set keymap inputrc line (see section 1.3 Readline Init File).
drforr/perl6-readline
…/Readline.pm :236:
Return the name matching C<$map>. name is one which would be supplied in a set keymap inputrc line (see section 1.3 Readline Init File).
drforr/perl6-readline
…/Readline.pm :246:
These functions let you use L<Readline> as an interactive event loop.
drforr/perl6-readline
…/Readline.pm :254:
Whenever an application determines that keyboard input is available, it should call rl_callback_read_char(), which will read the next character f…
drforr/perl6-readline
…/Readline.pm :268:
Make Readline use C<$prompt> for subsequent redisplay. This calls C<rl_expand_prompt()> to expand the prompt and sets C<$rl_prompt> to the result.
drforr/perl6-readline
…/Readline.pm :272:
Expand any special character sequences in C<$prompt> and set up the local Readline prompt redisplay variables. This function is called …
drforr/perl6-readline
…/Readline.pm :362:
Using this function alone is sufficient for most applications. It is the recommended way to add a few functions to the default functions that �[1…
drforr/perl6-readline
…/Readline.pm :366:
Return a string representing the value of the Readline variable C<$variable>. For boolean variables, this string is either `on' or `off'.
drforr/perl6-readline
…/Readline.pm :370:
Make the Readline variable C<$variable> have value C<$alue>. This behaves as if the readline command `set variable value' had been executed in an inputrc file (see section 1.3.1 Readline Init File Syntax).
drforr/perl6-readline
…/Readline.pm :390:
Print the names of all bindable Readline functions to rl_outstream.
drforr/perl6-readline
…/Readline.pm :420:
Read keybindings and variable assignments from C<$filename> (see section 1.3 Readline Init File).
drforr/perl6-readline
…/Readline.pm :424:
Parse C<$line> as if it had been read from the inputrc file and perform any key bindings and variable assignments found (see section 1.3 Readline Init File).
drforr/perl6-readline
…/Readline.pm :428:
Add C<$name> to the list of bindable Readline command names, and make function the function to be called when name is invoked.
drforr/perl6-readline
…/Readline.pm :458:
Tell Readline to save the text between C<$start> and C<$end> as a single undo unit. It is assumed that you will subsequently modify that text.
drforr/perl6-readline
…/Readline.pm :470:
Tell the update functions that we have moved onto a new line, with C<$rl_prompt> already displayed. This could be used by applications that want …
drforr/perl6-readline
…/Readline.pm :474:
Force the line to be updated and redisplayed, whether or not Readline thinks the screen display is correct.
drforr/perl6-readline
…/Readline.pm :490:
Display character c on rl_outstream. If Readline has not been set to display meta characters directly, this will convert meta characters to a meta-prefixed key sequence. This is intended for use by applications which wish to do their own redisplay.
drforr/perl6-readline
…/Readline.pm :496:
Save the local Readline prompt display state in preparation for displaying a new message in the message area with rl_message().
drforr/perl6-readline
…/Readline.pm :500:
Restore the local Readline prompt display state saved by the most recent call to rl_save_prompt. if rl_save_prompt was called to save the prompt before a call to rl_message, this function should be called before the corresponding call to rl_clear_message.
drforr/perl6-readline
…/Readline.pm :524:
Modify the terminal settings for Readline's use, so readline() can read a single character at a time from the keyboard. The C<$meta-flag> argument should be non-zero if Readline should read eight-bit input.
drforr/perl6-readline
…/Readline.pm :532:
Read the operating system's terminal editing characters (as would be displayed by stty) to their Readline equivalents. The bindings are performed in keymap C<$map>.
drforr/perl6-readline
…/Readline.pm :540:
Reinitialize Readline's idea of the terminal settings using C<$terminal-name> as the terminal type (e.g., vt100). If terminal_name is NULL, the value of the TERM environment variable is used.
drforr/perl6-readline
…/Readline.pm :544:
Update Readline's internal screen size by reading values from the kernel.
drforr/perl6-readline
…/Readline.pm :548:
Set Readline's idea of the terminal size to C<$rows> rows and C<$cols> columns. If either C<$rows> or C<$cols> is less than or equal to 0, Readline's idea of that terminal dimension is unchanged.
drforr/perl6-readline
…/Readline.pm :550:
If an application does not want to install a SIGWINCH handler, but is still interested in the screen dimensions, Readline's idea of the screen size may be queried.
drforr/perl6-readline
…/Readline.pm :554:
Return Readline's idea of the terminal's size in the variables pointed to by the arguments.
drforr/perl6-readline
…/Readline.pm :558:
Cause Readline to reobtain the screen size and recalculate its dimensions.
drforr/perl6-readline
…/Readline.pm :562:
Retrieve the string value of the termcap capability C<$cap>. Readline fetches the termcap entry for the current terminal name and uses …
drforr/perl6-readline
…/Readline.pm :582:
These methods manipulate signal handling for L<Readline>.
drforr/perl6-readline
…/Readline.pm :586:
Install Readline's signal handler for SIGINT, SIGQUIT, SIGTERM, SIGHUP, SIGALRM, SIGTSTP, SIGTTIN, SIGTTOU, and SIGWINCH, depending on the values of rl_catch_signals and rl_catch_sigwinch.
drforr/perl6-readline
…/Readline.pm :590:
Remove all of the Readline signal handlers installed by C<rl_set_signals()>.
drforr/perl6-readline
…/Readline.pm :594:
This function will reset the state of the terminal to what it was before readline() was called, and remove the Readline signal handlers for all signals, depending on the values of C<$rl-catch-signals> and C<$rl-catch-sigwinch>.
drforr/perl6-readline
…/Readline.pm :598:
This will reinitialize the terminal and reinstall any Readline signal handlers, depending on the values of C<$rl_catch_signals> and C<$rl_catch_sigwinch>.
drforr/perl6-readline
…/Readline.pm :600:
If an application does not wish Readline to catch SIGWINCH, it may call C<rl_resize_terminal()> or C<rl_set_screen_size()> to force Readline to update its idea of the terminal size when a SIGWINCH is received.
drforr/perl6-readline
…/Readline.pm :604:
This will free any partial state associated with the current input line (undo information, any partial history entry, any partially-entered keybo…
drforr/perl6-readline
…/Readline.pm :614:
Set the time interval (in microseconds) that Readline waits when showing a balancing character when blink-matching-paren has been enabled.
drforr/perl6-readline
…/Readline.pm :626:
A generator function for filename completion in the general case. C<$text> is a partial filename. The Bash source is a useful reference for writing application-specific completion functions (the Bash completion functions call this and other Readline functions).
drforr/perl6-readline
…/Readline.pm :634:
Save a snapshot of Readline's internal state to C<$sp>. The contents of the readline_state structure are documented in `readline.h'. The caller is responsible for allocating the structure.
drforr/perl6-readline
…/Readline.pm :650:
Restore Readline's internal state to that stored in C<$sp>, which must have been saved by a call to C<rl_save_state()>. The contents of the readline_state structure are documented in `readline.h'. The caller is responsible for freeing the structure.
drforr/perl6-readline
…/Readline.pm :656:
class Readline {
drforr/perl6-readline
…/Readline.pm :1098:
# Readline.h -- the names of functions callable from within readline.
drforr/perl6-readline
…/Readline.pm :1100:
# Readline data structures.
drforr/perl6-readline
…/Readline.pm :1385:
# Readline functions.
drforr/perl6-readline
…/Readline.pm :1923:
# Readline signal handling, from signals.c
drforr/perl6-readline
…/Readline.pm :2075:
# The address of the last command function Readline executed.
drforr/perl6-readline
…/Readline.pm :2093:
# If non-zero, Readline gives values of LINES and COLUMNS from the environment
drforr/perl6-readline
…/Readline.pm :2110:
# The address of a function to call periodically while Readline is
drforr/perl6-readline
…/Readline.pm :2119:
# The address of a function to call if Readline needs to know whether or not
drforr/perl6-readline
…/Readline.pm :2125:
# Readline input stream.
drforr/perl6-readline
…/01-load.t :7:
use Readline;
drforr/perl6-readline
…/01-load.t :9:
ok 1, "'use Readline' worked!";
drforr/perl6-readline
…/02-base.t :3:
use Readline;
drforr/perl6-readline
…/02-base.t :8:
my $r = Readline.new;
jonathanstowe/META6
…/projects.json :5606:
"Readline" : "lib/Readline.pm"
jonathanstowe/META6
…/projects.json :5617:
"name" : "Readline",
jonathanstowe/META6
…/projects.json :5630:
"description" : "Perl 6 interface to GNU Readline, the CLI-based line reading library",
jonathanstowe/META6
…/projects.json :11256:
"Readline"
perl6/doc
…/00-running.pod6 :154:
Specifies what line editor to use. Valid values are C<Linenoise>, C<Readline>, and C<none>,
perl6/doc
…/00-running.pod6 :156:
L<Readline
scovit/perl6-IRC-Async
…/META6.json :7:
"depends" : [ "Readline" ],
scovit/perl6-IRC-Async
…/README.md :37:
my $stdinput = {my $insupplier=Supplier.new;use Readline;start {my $rl = Readline.new;while my $msg = $rl.readline("") {$insupplier.emit($msg);}}; $insupplier.Supply; }();
scovit/perl6-IRC-Async
…/simple-client.p6 :13:
my $stdinput = {my $insupplier=Supplier.new;use Readline;start {my $rl = Readline.new;while my $msg = $rl.readline("") {$insupplier.emit($msg);}}; $insupplier.Supply; }();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment