|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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" |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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" |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|