# Generated by Pod::WikiDoc version 0.18 =pod =head1 NAME Term::Title - Portable API to set the terminal titlebar =head1 VERSION This documentation describes version 0.03. =head1 SYNOPSIS use Term::Title 'set_titlebar'; set_titlebar("This goes into the title"); set_titlebar("Title", "And also print this to the terminal"); =head1 DESCRIPTION Term::Title provides an abstraction for setting the titlebar (or title tab) across different types of terminals. For *nix terminals, it prints the appropriate escape sequences to set the terminal title based on the value of C<<< $ENV{TERM} >>>. On Windows, it uses L to set the title directly. Currently, supported terminals include: =over =item * xterm =item * rxvt =item * screen =item * Win32 console =back =head1 USAGE =head2 C<<< set_titlebar() >>> set_titlebar( $title, @optional_text ); Sets the titlebar to C<<< $title >>> or clears the titlebar if C<<< $title >>> is undefined. On terminals that require printing escape codes to the terminal, a newline character is also printed to the terminal. If C<<< @optional_text >>> is given, it will be printed to the terminal prior to the newline. Thus, to keep terminal output cleaner, use C<<< set_titlebar() >>> in place of a C<<< print() >>> statement to set the titlebar and print at the same time. If the terminal is not supported, set_titlebar silently continues, printing C<<< @optional_text >>> if any. =head1 BUGS Please report any bugs or feature using the CPAN Request Tracker. Bugs can be submitted through the web interface at L When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. =head1 SEE ALSO =over =item * L =item * L =back =head1 AUTHOR David A. Golden (DAGOLDEN) =head1 COPYRIGHT AND LICENSE Copyright (c) 2008 by David A. Golden. All rights reserved. Licensed under Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License was distributed with this file or you may obtain a copy of the License from http:EEwww.apache.orgElicensesELICENSE-2.0 Files produced as output though the use of this software, shall not be considered Derivative Works, but shall be considered the original work of the Licensor. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.