• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

ReadLine/H03-Sep-2012-4,9263,145

CHANGESH A D03-Sep-201210.4 KiB231224

MANIFESTH A D31-Oct-201093 87

META.ymlH A D03-Sep-2012696 2524

Makefile.PLH A D31-Oct-2010434 127

READMEH A D04-Sep-20124.3 KiB11385

test.plH A D31-Oct-20102 KiB7057

README

1TTYtter intro tackon:
2
3This is Term::ReadLine::TTYtter. It is a modified version of T::RL::Perl with
4several new nonstandard features specific to TTYtter, but may be useful for
5other applications.
6
7It also allows UTF-8 characters to be entered without crashing, and adds a
8counter so you can see how many characters you've entered (which is a big
9deal for Twitter and other microblogging platforms).
10
11These methods are additionally defined, which are non-standard:
12
13	removereadline method: erases the current prompt from the screen
14	redisplay method: repaints the current prompt on the screen
15	hook_background_control method: connects the interactive readline
16		prompt to a PID specified by $main::child. The PID is then
17		sent signal SIGUSR1 when a character is beginning processing
18		(i.e., the process needs to NOT write to the screen), and
19		SIGUSR2 when done (i.e., the process can write again).
20        hook_use_ansi: same, but connects to $main::ansi (1 = use ANSI,
21                0 = don't). thus, unlike T:RL:Perl, T:RL:TTYtter defaults to
22                ANSI *off*.
23        hook_no_counter: same, but connects to $main::dont_use_counter (1 =
24                disable counter). Useful for prompts where this is
25                irrelevant.
26	hook_no_tco: this is Twitter specific. See code.
27
28(The use of hooks into $main:: was so that the calling convention of
29&readline would not have to be disturbed to pass additional options.)
30
31Like T::RL::Perl, this is free software offered under the Perl Artistic
32License (see below). Because of dueling licenses, it must be distributed
33separately from TTYtter (which is Floodgap Free Software License), and it
34can be used 100% separately from TTYtter as an entirely independent driver.
35
36Changes for T::RL::TTYtter (C)2012 Cameron Kaiser and Contributors. All
37rights reserved. Send me your comments at ckaiser@floodgap.com
38
39LEGALESE
40~~~~~~~~
41     Copyright (c) 1995 Ilya Zakharevich. All rights reserved.
42     This program is free software; you can redistribute it and/or
43     modify it under the same terms as Perl itself.
44
45	You should have received a copy of the Perl license along with
46	Perl; see the file README in Perl distribution.
47
48	You should have received a copy of the GNU General Public License
49	along with Perl; see the file Copying.  If not, write to
50	the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
51
52	You should have received a copy of the Artistic License
53	along with Perl; see the file Artistic.
54
55
56Author of this software makes no claim whatsoever about suitability,
57reliability, edability, editability or usability of this product, and
58should not be kept liable for any damage resulting from the use of
59it. If you can use it, you are in luck, if not, I should not be kept
60responsible. Keep a handy copy of your backup tape at hand.
61
62WHAT
63~~~~
64
65This is a quick implementation of the minimal interface to Readline
66libraries. The implementation is made in Perl (mostly) by Jeffrey
67Friedl. The only thing this library does is to make it conformant (and
68add some minimal changes, like using Term::ReadKey if present, and
69correct work under xterm).
70
71(In fact this is an understatement now, a lot of additions are made,
72see CHANGES...)
73
74INSTALL
75~~~~~~~
76
77To install this module type
78
79	perl Makefile.PL
80	make
81	make test
82		or (with newer makemaker)
83	make test_dynamic
84		(Check whether you are satisfied with the results. Try
85		to redirect stdin and/or stdout.)
86	make install
87
88You may need to install Term::ReadKey first if your system is new (Solaris
89is ;-(). (Available in standard places, checked with 1.98.)
90
91If you see something like
92
93Can't ioctl TIOCGETP: Invalid argument at ...
94
95this means you need ReadKey.
96
97Note that as of 0.95 Term/ReadLine.pm is unbundled to make CPAN.pm happier.
98On the other hand, if you get newer Term/ReadLine.pm (say, by installing
99newer Perl) you may get more features enabled.
100
101For most features of T::R::P one needs to look in the CHANGES file, and the
102comments at the start of of readline/readline.pm.  Volunteers to make the
103corresponding OO interface into POD are welcome (wrappers are available in
104Term::ReadLine::Perl; see perl5db.pl for a sample usage of hairier features,
105such as accessing Readline variables and methods).
106
107AUTHOR BUGS
108~~~~~~~~~~~
109Ilya Zakharevich
110cpan@ilyaz.org
111
112Std dstribution site: http://www.ilyaz.org/software/perl/modules
113