Import devel/p5-Term-ReadLine-TTYtter, a ReadLine Module for Twitter and
other microblogging services. ok benoit@
This commit is contained in:
parent
fc06e7bff1
commit
1d5ed2dc79
17
devel/p5-Term-ReadLine-TTYtter/Makefile
Normal file
17
devel/p5-Term-ReadLine-TTYtter/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2013/03/22 13:42:53 bcallah Exp $
|
||||
|
||||
COMMENT = Readline Library Wrapper Module for Twitter
|
||||
DISTNAME = Term-ReadLine-TTYtter-1.4
|
||||
CATEGORIES = devel perl5
|
||||
|
||||
# perl
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
MODULES = cpan
|
||||
|
||||
RUN_DEPENDS = devel/p5-Term-ReadKey
|
||||
|
||||
TEST_ENV = TEST_TARGET=test.pl
|
||||
TEST_IS_INTERACTIVE = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/p5-Term-ReadLine-TTYtter/distinfo
Normal file
2
devel/p5-Term-ReadLine-TTYtter/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (Term-ReadLine-TTYtter-1.4.tar.gz) = rDcxM87hshIqgnP+e0JEYT0O7O/oi2aL2Y/nHR7ErJM=
|
||||
SIZE (Term-ReadLine-TTYtter-1.4.tar.gz) = 52093
|
23
devel/p5-Term-ReadLine-TTYtter/pkg/DESCR
Normal file
23
devel/p5-Term-ReadLine-TTYtter/pkg/DESCR
Normal file
@ -0,0 +1,23 @@
|
||||
This is Term::ReadLine::TTYtter. It is a modified version of T::RL:Perl
|
||||
with several new nonstandard features specific to TTYtter, but may be
|
||||
useful for other applications.
|
||||
|
||||
It also allows UTF-8 charaters to be entered without crashing, and adds
|
||||
a counter so you can see how many characters you've entered (which is a
|
||||
big deal for Twitter and other microblogging platforms).
|
||||
|
||||
These methods are additionally defined, which are non-standard:
|
||||
|
||||
* removereadline method: erases the current prompt from the screen
|
||||
* redisplay method: repaints the current prompt from the screen
|
||||
* hook_background_control method: connects the interactive readline
|
||||
prompt to a PID specified by $main::child. The PID is then sent
|
||||
signal SIGUSR1 when a character is beginning processing (i.e.,
|
||||
the process needs to NOT write to the screen), and SIGUSR2 when
|
||||
done (i.e., the process can write again).
|
||||
* hook_use_ansi: same, but connects to $main::dont_use_counter (1 =
|
||||
disable_counter). Useful for prompts where this is irrelevant.
|
||||
* hook_no_tco: this is Twitter specific. See code.
|
||||
|
||||
(The use of hooks into $main:: was so that the calling convention of
|
||||
&readline would not have to be disturbed to pass additional options.)
|
5
devel/p5-Term-ReadLine-TTYtter/pkg/PLIST
Normal file
5
devel/p5-Term-ReadLine-TTYtter/pkg/PLIST
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/03/22 13:42:53 bcallah Exp $
|
||||
${P5SITE}/Term/
|
||||
${P5SITE}/Term/ReadLine/
|
||||
${P5SITE}/Term/ReadLine/TTYtter.pm
|
||||
${P5SITE}/Term/ReadLine/readline_ttytter.pm
|
Loading…
x
Reference in New Issue
Block a user