mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-16 17:44:23 +01:00
info: m screen and add tmux
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
87ce7f0ecf
commit
ab4606758a
1 changed files with 25 additions and 15 deletions
|
@ -608,7 +608,7 @@ If it is not a symbolic link, @option{-q} cannot determine which quotes to use.
|
||||||
* Fortune cookies:: Displaying with fortune cookies.
|
* Fortune cookies:: Displaying with fortune cookies.
|
||||||
* Ponification:: Ponify your fortune cookies.
|
* Ponification:: Ponify your fortune cookies.
|
||||||
* Running on TTY:: Running on TTY (Linux VT).
|
* Running on TTY:: Running on TTY (Linux VT).
|
||||||
* Running on screen:: Running on @command{screen}.
|
* Running on screen and tmux:: Running on @command{screen} and @command{tmux}.
|
||||||
* ~/.ponysayrc:: Using the @file{~/.ponysayrc} file.
|
* ~/.ponysayrc:: Using the @file{~/.ponysayrc} file.
|
||||||
* Narcissistic ponies:: Getting ponies to think of themself.
|
* Narcissistic ponies:: Getting ponies to think of themself.
|
||||||
@end menu
|
@end menu
|
||||||
|
@ -685,7 +685,7 @@ If you use TTY and have a custom colour palette, you should also add to your
|
||||||
@example
|
@example
|
||||||
[ "$TERM" = "linux" ] &&
|
[ "$TERM" = "linux" ] &&
|
||||||
function ponysay
|
function ponysay
|
||||||
@{ exec ponysay "$@@"
|
@{ /usr/bin/ponysay "$@@"
|
||||||
#RESET PALETTE HERE
|
#RESET PALETTE HERE
|
||||||
@}
|
@}
|
||||||
@end example
|
@end example
|
||||||
|
@ -694,31 +694,41 @@ If you use TTY and have a custom colour palette, you should also add to your
|
||||||
You should read more about this in @ref{KMS ponies}.
|
You should read more about this in @ref{KMS ponies}.
|
||||||
|
|
||||||
|
|
||||||
@node Running on screen
|
@node Running on screen and tmux
|
||||||
@section Running on @command{screen}
|
@section Running on @command{screen} and @command{tmux}
|
||||||
@pindex @command{screen}
|
@pindex @command{screen}
|
||||||
@cindex @file{.bashrc}
|
@cindex @file{.bashrc}
|
||||||
@cindex @file{~/.bashrc}
|
@cindex @file{~/.bashrc}
|
||||||
|
|
||||||
@command{screen} will adapt ANSI colour escape sequences to your terminal's
|
@command{screen} and @command{tmux} will adapt ANSI colour escape sequences
|
||||||
capabilities. This means that if your terminal reports itself as @code{xterm}
|
to your terminal's capabilities. This means that if your terminal reports
|
||||||
in @env{$TERM} ponies will lose their colours; they will only use the lower 16
|
itself as @code{xterm} in @env{$TERM} ponies will lose their colours; they
|
||||||
colours instead of the top 240 colours. By default, almost all X terminals,
|
will only use the lower 16 colours instead of the top 240 colours. By default,
|
||||||
including @command{xterm} and @command{mate-terminal} reports themselves as
|
almost all X terminals, including @command{xterm} and @command{mate-terminal}
|
||||||
@code{xterm} in @env{$TERM}, and some reports their actual name in
|
reports themselves as @code{xterm} in @env{$TERM}, and some reports their
|
||||||
@env{$COLORTERM}. So before opening @command{screen} you use set @env{$TERM}
|
actual name in @env{$COLORTERM}. So before opening @command{screen} or
|
||||||
to @code{xterm-256color}, if you are using a terminal with support for
|
@command{tmux} you should set @env{$TERM} to @code{xterm-256color}, if you
|
||||||
@code{xterm}'s 256 colours; this can be done by adding to your @file{~/.bashrc}:
|
are using a terminal with support for @code{xterm}'s 256 colours; this can
|
||||||
|
be done by adding to your @file{~/.bashrc}:
|
||||||
@cartouche
|
@cartouche
|
||||||
@example
|
@example
|
||||||
[ "$TERM" = "xterm" ] &&
|
[ "$TERM" = "xterm" ] &&
|
||||||
function screen
|
function screen
|
||||||
@{ export TERM="xterm-256color"
|
@{ TERM=xterm-256color /usr/bin/screen "$@@"
|
||||||
exec screen "$@@"
|
@}
|
||||||
|
|
||||||
|
|
||||||
|
[ "$TERM" = "xterm" ] &&
|
||||||
|
function tmux
|
||||||
|
@{ TERM=xterm-256color /usr/bin/tmux "$@@"
|
||||||
@}
|
@}
|
||||||
@end example
|
@end example
|
||||||
@end cartouche
|
@end cartouche
|
||||||
|
|
||||||
|
Alternatively, you can run @command{tmux} with the option @option{-2}:
|
||||||
|
@command{tmux -2}. This also forces @command{tmux} to assume the terminal
|
||||||
|
supports 256 colours.
|
||||||
|
|
||||||
|
|
||||||
@node ~/.ponysayrc
|
@node ~/.ponysayrc
|
||||||
@section @file{~/.ponysayrc}
|
@section @file{~/.ponysayrc}
|
||||||
|
|
Loading…
Reference in a new issue