- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: font display question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 02:15 AM
тАО09-16-2003 02:15 AM
i have a script with a heading "SYSTEM ADMIN MENU", how would i get the heading to be displayed in BOLD?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 02:30 AM
тАО09-16-2003 02:30 AM
Re: font display question
"tput bold" will do it
if not, try "tput so" to start standout and "tput se" to end it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 03:02 AM
тАО09-16-2003 03:02 AM
Re: font display question
You could try adding something like this:
BOLD=`tput bold`
RESET=`tput sgr0`
echo "\t\t\t $BOLD SYSTEM ADMIN MENU $RESET \n\n"
Hope this helps.
Kind regards,
Zigor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 03:20 AM
тАО09-16-2003 03:20 AM
Re: font display question
thanks for info, basically what im doin, is when a user telnets to the server,a banner must be displayed in bold!Any ideas how i can get the banner to display in bold?
Thanks mate!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 03:41 AM
тАО09-16-2003 03:41 AM
Re: font display question
If it is the script, do as the previous poster mentioned
BOLD=`tput bold"
NORMAL=`tput sgr0"
echo "$BOLD SYSTEM ADMIN MENU $NORMAL"
If it is the login message itself that you want bold then you would have to cut and paste the output of "tput bold" intop the /etc/issue file though I have a feeling that telnetd uses a different file for that. I'll see if I can dig up some info on that last bit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 03:49 AM
тАО09-16-2003 03:49 AM
Re: font display question
apologies for the run around, i actually want my banner file to display in BOLD.The banner file is set-up & works, just not the BOLD font?
Any ideas?
Most appreciated!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 03:54 AM
тАО09-16-2003 03:54 AM
Re: font display question
Do you mean the stuff that gets output when you log in i.e /etc/motd ? or do you mean that your script uses the "banner" command or do you mean that somewhere in the login process, you want to plug in your script with a bold heading? Sorry I am probably being a bit stupid here but I think there is a simple thing I am missing in your request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 04:00 AM
тАО09-16-2003 04:00 AM
Re: font display question
You have a file with that text in it and when that file gets displayed, you want it in bold?
If you can not do something like the following
tput bold
cat my_banner_file
tput sgr0
Then you will actually have to embed the codes in the file. You will have to be confident that everyone who sees it is going to have the same type if terminal though and for this example I'll assume everyone is using vt100 (most do).
in vi edit you file and do "CTRL V" then "Esc" then "[" then "m" before your text. Then after it do "CTRL V"a then "ESC" then "[" then "m".
This sounds nasty and it is :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 04:02 AM
тАО09-16-2003 04:02 AM
Re: font display question
Ive sorted the script boldness! What i want 2 do now is when I telnet to a server my banner message "AUTHORISED USERS ONLY" must be displayed in BOLD FONT! motd can only occur once logged in, but I want the bold banner displayed before login?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 04:13 AM
тАО09-16-2003 04:13 AM
Re: font display question
telnetd -b /etc/issue.telnet and then create /etc/issue.telnet with all your own stuff in it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 04:33 AM
тАО09-16-2003 04:33 AM
Re: font display question
Correct me if I'm wrong, but think that anybody has already answered you in your previous question:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x76bbe508dd85d44e8152a228f6c3a07f,00.html
Have you tested the last reply?
Kind regards,
Zigor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 04:53 AM
тАО09-16-2003 04:53 AM
Solution1.Before text type in edition mode CTRL-V CTRL-[ [ 1m
2. After text type in edition mode CTRL-V CTRL-[ [0m
It must looks like: ^[[1mTEXT^[[0m
ESC-sequences are:
^[[1m - Bold text
^[[4m - Underlined
^[[5m - Flashing
^[[7m - Inversion
^[[0m - Cancel all attributes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2003 05:51 AM
тАО09-16-2003 05:51 AM
Re: font display question
You had the correct syntax,thanx, most appreciated