PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > How can i increase the font through ksh scripts.
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

How can i increase the font through ksh scripts.

Réponse
 
LinkBack Outils de la discussion
Vieux 22/08/2006, 07h42   #1
aarcee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How can i increase the font through ksh scripts.

How can i increase the font through ksh scripts.

My aim is to display the header in a Big word and rest of the messages
from the script

on normal font's

Thanks
RC

  Réponse avec citation
Vieux 22/08/2006, 08h08   #2
Chris F.A. Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How can i increase the font through ksh scripts.

On 2006-08-22, aarcee wrote:
> How can i increase the font through ksh scripts.
>
> My aim is to display the header in a Big word and rest of the
> messages from the script on normal font's


What header? How are you displaying it? In what medium?

When I want a larger font, I often do:

/fontsize fontsize 1 add def
font fontsize f

But you are probably not using PostScript. What are you using?

--
Chris F.A. Johnson, author <http://cfaj.freeshell.org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
  Réponse avec citation
Vieux 22/08/2006, 08h14   #3
PDreyer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How can i increase the font through ksh scripts.


aarcee wrote:
> How can i increase the font through ksh scripts.
>
> My aim is to display the header in a Big word and rest of the messages
> from the script
>
> on normal font's
>
> Thanks
> RC


Is bold sufficient?
printf "%s\n" "$(tput bold)Bold text $(tput rmso)normal text"

  Réponse avec citation
Vieux 24/08/2006, 07h48   #4
aarcee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How can i increase the font through ksh scripts.

I am already using Bold , i prefer to have that message in Bold as well
as in a larger font.

this is mainly for error display and i want to make sure that people
see it.

I don;t prefer banner as with that ,displaying a string is impossible
on one screen

I am using Korn shell

thanks
Rc


PDreyer wrote:
> aarcee wrote:
> > How can i increase the font through ksh scripts.
> >
> > My aim is to display the header in a Big word and rest of the messages
> > from the script
> >
> > on normal font's
> >
> > Thanks
> > RC

>
> Is bold sufficient?
> printf "%s\n" "$(tput bold)Bold text $(tput rmso)normal text"


  Réponse avec citation
Vieux 24/08/2006, 12h31   #5
Stephane Chazelas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How can i increase the font through ksh scripts.

On 23 Aug 2006 23:48:54 -0700, aarcee wrote:
> I am already using Bold , i prefer to have that message in Bold as well
> as in a larger font.
>
> this is mainly for error display and i want to make sure that people
> see it.
>
> I don;t prefer banner as with that ,displaying a string is impossible
> on one screen
>
> I am using Korn shell

[...]

Very few terminals support having different fonts at the same
time. Some support blink, some support underline, some support
reverse video, some support setting the background and
foreground colors.

Wouldn't

critical=$(
tput setaf 1
tput setab 7
tput bold
tput blink
tput smso
)
normal=$(
tput sgr0
)

printf '%s\n' "This is ${critical}VERY${normal} important"


be enough?

The bold blink smso can be contracted to sgr 1 0 0 1 0 1

If the terminal is a recent version of xterm that has been
compiled with support for double characters, you can do:

printf '\e#%dVERY IMPORTANT\n' 3 4

or:

printf '\e#6VERY IMPORTANT\n'

Which you can combine with bold/colors/blink...


--
Stephane
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h16.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09765 seconds with 13 queries