| /openbsd/src/gnu/usr.bin/perl/dist/Term-ReadLine/lib/Term/ |
| D | ReadLine.pm | 3 Term::ReadLine - Perl interface to various C<readline> packages. 8 use Term::ReadLine; 9 my $term = Term::ReadLine->new('Simple Perl calc'); 12 while ( defined ($_ = $term->readline($prompt)) ) { 22 set up a common interface to the various ReadLine implementations found on 23 CPAN (under the C<Term::ReadLine::*> namespace). 29 $term = Term::ReadLine->new('name'); 35 where $term is a return value of Term::ReadLine-E<gt>new(). 39 =item C<ReadLine> 42 values are C<Term::ReadLine::Gnu>, C<Term::ReadLine::Perl>, [all …]
|
| /openbsd/src/gnu/usr.bin/perl/dist/Term-ReadLine/t/ |
| D | ReadLine.t | 4 package Term::ReadLine::Mock; 5 our @ISA = 'Term::ReadLine::Stub'; 6 sub ReadLine {'Term::ReadLine::Mock'}; 7 sub readline { "a line" } 16 use_ok('Term::ReadLine'); 19 my $t = new Term::ReadLine 'test term::readline'; 23 isa_ok($t, 'Term::ReadLine::Mock'); 25 for my $method (qw( ReadLine readline addhistory IN OUT MinLine 30 is($t->ReadLine, 'Term::ReadLine::Mock', "\$object->ReadLine"); 31 is($t->readline, 'a line', "\$object->readline");
|
| D | ReadLine-STDERR.t | 20 use_ok('Term::ReadLine'); 21 can_ok( 'Term::ReadLine::Stub', qw{new devtty findConsole} ); 22 is( Term::ReadLine->devtty(), q{/dev/tty}, "check sub devtty" ); 25 open my $tty, "<", Term::ReadLine->devtty() 29 my @out = Term::ReadLine::Stub::findConsole(); 39 local *Term::ReadLine::Stub::devtty = 40 *Term::ReadLine::Stub::devtty = sub { $donotexist }; 41 is( Term::ReadLine->devtty(), $donotexist, "devtty mocked" ); 43 my @out = Term::ReadLine::Stub::findConsole(); 46 ok !-e q[&STDERR], 'file &STDERR do not exist before Term::ReadLine call'; [all …]
|
| /openbsd/src/gnu/lib/libreadline/ |
| D | CHANGES | 1 This document details the changes between this version, readline-4.3, 2 and the previous version, readline-4.2a. 4 1. Changes to Readline 36 2. New Features in Readline 39 be bound to readline functions. Now the arrow keys may be used in vi 43 the screen length, readline uses an internal pager to display the results. 67 h. Readline now has an overwrite mode, toggled by the `overwrite-mode' 80 This document details the changes between this version, readline-4.2a, 81 and the previous version, readline-4.2. 83 1. Changes to Readline [all …]
|
| D | Makefile.in | 2 # Master Makefile for the GNU readline library. 19 RL_LIBRARY_NAME = readline 90 CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(srcdir)/keymaps.c \ 104 HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \ 111 OBJECTS = readline.o vi_mode.o funmap.o keymaps.o parens.o search.o \ 118 DOCOBJECT = doc/readline.dvi 127 INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h \ 150 # Since tilde.c is shared between readline and bash, make sure we compile 151 # it with the right flags when it's built as part of readline 156 readline: $(OBJECTS) readline.h rldefs.h chardefs.h ./libreadline.a [all …]
|
| D | INSTALL | 4 These are installation instructions for Readline-4.3. 6 The simplest way to compile readline is: 8 1. `cd' to the directory containing the readline source code and type 9 `./configure' to configure readline for your system. If you're 17 2. Type `make' to compile readline and build the static readline 18 and history libraries. If supported, the shared readline and history 24 3. Type `make install' to install the static readline and history 25 libraries, the readline include files, the documentation, and, if 26 supported, the shared readline and history libraries. 30 files that `configure' created (so you can compile readline for [all …]
|
| D | README | 4 This is the Gnu Readline library, version 4.3. 6 The Readline library provides a set of functions for use by applications 8 Emacs and vi editing modes are available. The Readline library includes 15 may be used without Readline in applications which desire its 18 The Readline library is free software, distributed under the terms of 24 be necessary. Readline builds with `gcc' by default if it is 38 certain Readline features. 46 There are several example programs that use Readline features in the 48 is a command-line interface to Readline, suitable for use in shell 55 Readline and History libraries. The configure script creates [all …]
|
| D | MANIFEST | 2 # Master distribution manifest for the standalone readline distribution 28 readline.h f 57 readline.c f 94 doc/readline.3 f 111 doc/readline.ps f 114 doc/readline.dvi f 117 doc/readline.info f 120 doc/readline.html f 123 doc/readline.0 f
|
| D | callback.c | 1 /* callback.c -- functions to use readline as an X `callback' mechanism. */ 5 This file is part of the GNU Readline Library, a library for 8 The GNU Readline Library is free software; you can redistribute it 13 The GNU Readline Library is distributed in the hope that it will be 44 #include "readline.h" 49 /* Callback Readline Functions */ 53 /* Allow using readline in situations where a program may have multiple 65 /* Make sure the terminal is set up, initialize readline, and prompt. */ 85 /* Install a readline handler, set up the terminal, and issue the prompt. */ 105 fprintf (stderr, "readline: readline_callback_read_char() called with no handler!\r\n"); in rl_callback_read_char()
|
| /openbsd/src/gnu/lib/libreadline/doc/ |
| D | rltech.texinfo | 7 This document describes the GNU Readline Library, a utility for aiding 33 @node Programming with GNU Readline 34 @chapter Programming with GNU Readline 36 This chapter describes the interface between the @sc{gnu} Readline Library and 38 features found in @sc{gnu} Readline 43 * Basic Behavior:: Using the default behavior of Readline. 44 * Custom Functions:: Adding your own functions to Readline. 45 * Readline Variables:: Variables accessible to custom 47 * Readline Convenience Functions:: Functions which Readline supplies to 50 * Readline Signal Handling:: How Readline behaves when it receives signals. [all …]
|
| D | Makefile.in | 1 # This makefile for Readline library documentation is in -*- text -*- mode. 70 DVIOBJ = readline.dvi history.dvi rluserman.dvi 71 INFOOBJ = readline.info history.info rluserman.info 72 PSOBJ = readline.ps history.ps rluserman.ps readline_3.ps history_3.ps 73 HTMLOBJ = readline.html history.html rluserman.html 74 TEXTOBJ = readline.0 history.0 89 readline.dvi: $(RLSRC) 91 mv rlman.dvi readline.dvi 93 readline.info: $(RLSRC) 109 readline.ps: readline.dvi [all …]
|
| D | rlman.texinfo | 3 @setfilename readline.info 4 @settitle GNU Readline Library 14 * Readline: (readline). The GNU readline library API 17 This document describes the GNU Readline Library, a utility which aids 46 @title GNU Readline Library 47 @subtitle Edition @value{EDITION}, for @code{Readline Library} Version @value{VERSION}. 53 This document describes the GNU Readline Library, a utility which aids 81 @top GNU Readline Library 83 This document describes the GNU Readline Library, a utility which aids 88 * Command Line Editing:: GNU Readline User's Manual. [all …]
|
| D | readline.3 | 11 .TH READLINE 3 "2002 January 22" "GNU Readline 4.3" 20 readline \- get a line from a user with editing 26 #include <readline/readline.h> 27 #include <readline/history.h> 34 \fBreadline\fP (\fIconst char *prompt\fP); 41 .B readline 54 .B readline 61 This manual page describes only the most basic use of \fBreadline\fP. 63 \fIThe GNU Readline Library\fP and \fIThe GNU History Library\fP 67 .B readline [all …]
|
| D | rluser.texinfo | 9 use these features. There is a document entitled "readline.texinfo" 11 GNU Readline Library. 37 @comment variable readline-appendix. 49 Command line editing is provided by the Readline library, which is 55 * Readline Interaction:: The minimum set of commands for editing a line. 56 * Readline Init File:: Customizing Readline from a user's view. 57 * Bindable Readline Commands:: A description of most of the Readline commands 59 * Readline vi Mode:: A short description of how to make Readline 101 (@pxref{Readline Init File}). 107 @node Readline Interaction [all …]
|
| D | rluserman.texinfo | 4 @settitle GNU Readline Library 13 * RLuserman: (rluserman). The GNU readline library User's Manual. 16 This document describes the end user interface of the GNU Readline Library, 45 @title GNU Readline Library User Interface 46 @subtitle Edition @value{EDITION}, for @code{Readline Library} Version @value{VERSION}. 52 This document describes the end user interface of the GNU Readline Library, 80 @top GNU Readline Library 82 This document describes the end user interface of the GNU Readline Library, 87 * Command Line Editing:: GNU Readline User's Manual.
|
| /openbsd/src/gnu/usr.bin/perl/t/op/ |
| D | readline.t | 75 ok( $!==$err && !defined($_) => 'readline( DIRECTORY )' ); 81 ok( $!==$err && !defined($_) => 'readline( DIRECTORY ) slurp mode' ); 90 fresh_perl_is('print readline', 'foo', 92 'readline() defaults to *ARGV'); 100 # This variable, the TARG for the readline is the core of this 102 # readline() has the variable revived old, "dead" values from the 106 # Do a readline into $line. 109 # Do a SIGALARM aborted readline(). The underlying sv_gets() 121 $line = readline $fh; 130 : "Interrupted readline() test couldn't get interrupted: $errno"; [all …]
|
| /openbsd/src/gnu/usr.bin/binutils/gdb/tui/ |
| D | tui-io.c | 50 #include "readline/readline.h" 80 /* Use definition from readline 4.3. */ 91 The input is also controlled by curses with tui_getc(). The readline 92 library uses this function to get its input. Several readline hooks 93 are installed to redirect readline output to the TUI (see also the 97 is as if TUI is not used. Readline also uses its original getc() 100 Note SCz/2001-07-21: the current readline is not clean in its management of 103 readline, otherwise the curses window will be garbled. This is implemented 104 with a pipe that TUI reads and readline writes to. A gdb input handler 107 to make readline clean enougth so that is never write on stdout. [all …]
|
| D | tui.c | 62 #include "readline/readline.h" 93 /* TUI readline command. 109 /* Clear the readline in case switching occurred in middle of something. */ in tui_rl_switch_mode() 114 some previous state. That state may not be suitable for readline in tui_rl_switch_mode() 116 exit of the current readline so that readline is re-entered and it in tui_rl_switch_mode() 118 in readline, we also redisplay its prompt in the non-curses mode. */ in tui_rl_switch_mode() 126 /* TUI readline command. 177 /* TUI readline command. 212 /* TUI readline command. 233 /* TUI readline command. [all …]
|
| /openbsd/src/lib/libedit/readline/ |
| D | Makefile | 10 ${DESTDIR}/usr/include/readline 11 -cd ${.CURDIR}; cmp -s readline.h ${DESTDIR}/usr/include/readline/readline.h > \ 13 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 readline.h \ 14 ${DESTDIR}/usr/include/readline 15 rm -f ${DESTDIR}/usr/include/readline/history.h 16 cd ${DESTDIR}/usr/include/readline && ln -s readline.h history.h
|
| /openbsd/src/gnu/llvm/lldb/source/Plugins/ScriptInterpreter/Python/ |
| D | PythonReadline.cpp | 7 #include <editline/readline.h> 9 // Simple implementation of the Python readline module using libedit. 12 // in the GNU readline shared lib, which causes linkage confusion when 13 // both readline and libedit's readline compatibility symbols collide. 16 // implementing any of the readline module methods. This is meant to 18 // readline.so linked against GNU readline. 23 "Simple readline module implementation based on libedit."); 40 char *line = readline(prompt); in simple_readline()
|
| /openbsd/src/gnu/lib/libreadline/examples/ |
| D | rltest.c | 3 /* Testing Readline */ 9 This file is part of the GNU Readline Library, a library for 12 The GNU Readline Library is free software; you can redistribute it 17 The GNU Readline Library is distributed in the hope that it will be 35 # include "readline.h" 38 # include <readline/readline.h> 39 # include <readline/history.h> 50 prompt = "readline$ "; in main() 55 temp = readline (prompt); in main()
|
| D | rl.c | 3 * (or another fd) using readline. 10 This file is part of the GNU Readline Library, a library for 13 The GNU Readline Library is free software; you can redistribute it 18 The GNU Readline Library is distributed in the hope that it will be 37 # include "readline.h" 40 # include <readline/readline.h> 41 # include <readline/history.h> 90 prompt = "readline$ "; 143 temp = readline (prompt);
|
| D | rlversion.c | 2 * rlversion -- print out readline's version number 7 This file is part of the GNU Readline Library, a library for 10 The GNU Readline Library is free software; you can redistribute it 15 The GNU Readline Library is distributed in the hope that it will be 34 # include "readline.h" 36 # include <readline/readline.h>
|
| D | excallback.c | 5 Subject: new readline example 10 I've been using readline 4.0. Specifically, I've been using the perl 11 version Term::ReadLine::Gnu. It works great. 16 directory of the readline distribution. 21 alternate interface because readline depreps (using your parlance) the 50 # include "readline.h" 52 # include <readline/readline.h> 55 /* This little examples demonstrates the alternate interface to using readline. 57 * only calls readline when STDIN is readable. Using the alternate interface, 58 * you can do anything else while still using readline (like talking to a [all …]
|
| /openbsd/src/gnu/lib/libreadline/shlib/ |
| D | Makefile.in | 2 # Makefile for the GNU readline library shared library support. 21 RL_LIBRARY_NAME = readline 107 CSOURCES = $(topdir)/readline.c $(topdir)/funmap.c $(topdir)/keymaps.c \ 121 HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \ 128 SHARED_OBJ = readline.so vi_mode.so funmap.so keymaps.so parens.so search.so \ 146 @echo "for inclusion in future bash and readline releases." 156 # Since tilde.c is shared between readline and bash, make sure we compile 157 # it with the right flags when it's built as part of readline 191 bind.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h 197 callback.so: $(topdir)/readline.h $(topdir)/keymaps.h $(topdir)/chardefs.h [all …]
|