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
|