Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

term::size::any(3pm) [debian man page]

Term::Size::Any(3pm)					User Contributed Perl Documentation				      Term::Size::Any(3pm)

NAME
Term::Size::Any - Retrieve terminal size SYNOPSIS
# the traditional way use Term::Size::Any qw( chars pixels ); ($columns, $rows) = chars *STDOUT{IO}; ($x, $y) = pixels; DESCRIPTION
This is a unified interface to retrieve terminal size. It loads one module of a list of known alternatives, each implementing some way to get the desired terminal information. This loaded module will actually do the job on behalf of "Term::Size::Any". Thus, "Term::Size::Any" depends on the availability of one of these modules: Term::Size (soon to be supported) Term::Size::Perl Term::Size::ReadKey (soon to be supported) Term::Size::Win32 This release fallbacks to Term::Size::Win32 if running in Windows 32 systems. For other platforms, it uses the first of Term::Size::Perl, Term::Size or Term::Size::ReadKey which loads successfully. (To be honest, I disabled the fallback to Term::Size and Term::Size::ReadKey which are buggy by now.) FUNCTIONS The traditional interface is by importing functions "chars" and "pixels" into the caller's space. chars ($columns, $rows) = chars($h); $columns = chars($h); "chars" returns the terminal size in units of characters corresponding to the given filehandle $h. If the argument is omitted, *STDIN{IO} is used. In scalar context, it returns the terminal width. pixels ($x, $y) = pixels($h); $x = pixels($h); "pixels" returns the terminal size in units of pixels corresponding to the given filehandle $h. If the argument is omitted, *STDIN{IO} is used. In scalar context, it returns the terminal width. Many systems with character-only terminals will return "(0, 0)". SEE ALSO
It all began with Term::Size by Tim Goodwin. You may want to have a look at: Term::Size Term::Size::Perl Term::Size::Win32 Term::Size::ReadKey BUGS
Please reports bugs via CPAN RT, via web http://rt.cpan.org/NoAuth/Bugs.html?Dist=Term-Size-Any or e-mail to bug-Term-Size-Any@rt.cpan.org. AUTHOR
Adriano R. Ferreira, <ferreira@cpan.org> COPYRIGHT AND LICENSE
Copyright (C) 2008 by Adriano R. Ferreira This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-21 Term::Size::Any(3pm)

Check Out this Related Man Page

Term::ReadLine::Zoid::Base(3pm) 			User Contributed Perl Documentation			   Term::ReadLine::Zoid::Base(3pm)

NAME
Term::ReadLine::Zoid::Base - atomic routines DESCRIPTION
This module contains some atomic operations used by all Term::ReadLine::Zoid objects. It is intended as a base class. At the very least, to child class needs to define a "default()" function to handle key bindings and a "draw()" function which in turn calls "print()". Also the attributes "IN" and "OUT" should contain valid filehandles. METHODS
ANSI stuff "cursor_at($x, $y)" Positions the cursor on screen, dimensions are 1-based. "clear_screen()" Clear screen. "title($string)" Set terminal title to $string. When using for example xterm(1) this is the window name. "print_length($string)" Returns the printable length of $string, not counting (some) ansi sequences. Private api Methods for use in overload classes. Avoid using these methods from the application. "bell()" Notify the user of an error or limit. "loop()" Low level function used by readline. Calls "draw()" and "do_key()". "beat()" Method called by intervals while waiting for input, to be overloaded. "read_key()" Returns one key read from input (this is the named key, not the char when mapped). "do_key($key)" Execute a key, calls subroutine for a key binding or the default binding. If $key is undefined "read_key()" is called first. "press($string)" Do chars in $string like they were typed on the keyboard. Used for testing puposes and to make macros possible. If you give more then one argument, these are considered individual characters, use this to press named keys. "unread_key($string)" Unshifts characters on the read buffer, arguments the same as "press()". "key_name($chr)" Returns a name for a character or character sequence. "key_binding($key, $mode)" Returns the keybinding for $key in $mode, mode defaults to the current one. "bindchr($chr, $key)" Bind a key name to a character, or a character sequence. All bindings of this kind are global (you're using only one keyboard, right ?). "recalc_chr_map()" Recalculates the chr map, you need to call this after deleting from %chr_names. "print($lines, $pos)" Low level function used by draw. Both arguments need to be array references. BUGS
Undefined behaviour when the buffer has more lines then the terminal. Please mail the author if you find any other bugs. AUTHOR
Jaap Karssenberg || Pardus [Larus] <pardus@cpan.org> Copyright (c) 2004 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
Term::ReadLine::Zoid perl v5.8.7 2005-08-07 Term::ReadLine::Zoid::Base(3pm)
Man Page