smiley man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

SMILEY(1)							     SMILEY(1)

NAME
       smiley - print or explain smileys

SYNOPSIS
       smiley [-V] [-e] [-l] [-f] [smiley...]

DESCRIPTION
       Smiley is a program for smiley junkies who like to have all the smileys
       at their fingertips.

       The options have the following meaning:

       -V     Print the version of the program and the	number	of  faces  and
	      definitions.

       -e     Explain the face found in the environment variable SMILEY.

       -l     Print a listing of all the known smileys, with explanations.

       -f     Print a random smiley, face only.

       smiley Explain the given smiley.

       When  invoked  with no arguments, smiley prints a random smiley with an
       explanation.

EXAMPLE
       Here are some ksh(1) functions that put a smiley into your prompt.

       ps1sed()
	      Transform the standard input so that it  will  display  properly
	      when  it is made part of PS1 in ksh.  (That is, quote  ! $ \  if
	      they appear.)  These are the transformations:

		   !	→    !!
		   $	→    \$
		   \	→    \\

	      Note that a  !  must be doubled instead of quoted	 with	\   in
	      order to display.

	      ps1sed()
	      {
		   sed ´s/!/&&/g
			s/[$\\]/\\&/g´
	      }

       ps1()  Put  a new smiley into PS1.  Use ps1sed to make sure any charac‐
	      ters in the smiley that are special  to  the  shell  are	quoted
	      appropriately.

	      ps1()
	      {
		   export SMILEY="`smiley -f`"
		   PS1=`print -r - "$SMILEY" | ps1sed`" "
	      }

CAVEATS
       The  list of smileys is the personal collection of the author, so there
       are bound to be some missing.

       Multiline smileys and the ``invisible smiley'' are absent  from	smiley
       because the author does not want a multiline or invisible prompt.

AUTHOR
       DaviD W. Sanderson  (dws@cs.wisc.edu)

COPYRIGHT

       (C) Copyright 1991 by DaviD W. Sanderson

				 April 1, 1991			     SMILEY(1)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net