- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need command to change colour of a database's ...
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
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
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
тАО11-16-2003 09:23 PM
тАО11-16-2003 09:23 PM
Need command to change colour of a database's background
I have a menu where people login to and they get an option of a Live DB and a Test DB. Is there any command that I can use to force the background colour to change when they do select the Test DB ?
Any ideas ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2003 10:16 PM
тАО11-16-2003 10:16 PM
Re: Need command to change colour of a database's background
I guess it depends on what you are using to access the database in the first place? If its a terminal (or terminal emulator) you could try using ansi escape characters to change the font's foreground or background colour (although it may not work quite how you want).
echo "\033[43m" will change the background colour under any text the various esc codes for the colours can be found here http://www.bluesock.org/~willg/dev/ansi.html
Regards,
Tony.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2003 10:42 PM
тАО11-16-2003 10:42 PM
Re: Need command to change colour of a database's background
Ok , attached is the menu. We access from normal VT200-7BIT emulator.
I want the test to run in a different background colour.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2003 11:26 PM
тАО11-16-2003 11:26 PM
Re: Need command to change colour of a database's background
change (in a non live copy) this line
2) $MFGE/mfgpro90t $MFGTEST/mfg9-0a $MFGTEST/gui9-0a $MFGE/hlp9-0a $MFGE/cfg9-0a $MFGTEST/epm9-0a $MFGE/kbn9-0a;;
To
2) echo "\033[43m"; $MFGE/mfgpro90t $MFGTEST/mfg9-0a $MFGTEST/gui9-0a $MFGE/hlp9-0a $MFGE/cfg9-0a $MFGTEST/epm9-0a $MFGE/kbn9-0a; echo "\033[40m";;
I've attached what that does on our progress system (normally it has black background)Probably not really what you want, though your emulator may properly make the entire background the background colour not just the stuff under the text like ours.
If you want to see how it will look before doing any script changes, just do the command echo "\033[43m" on the command line before starting up MFG Pro. You might also want to do echo "\033[2J" (or a clear) which is supposed to clear the screen to the colour of the background set above (I just tried it with XP's built in telnet and it worked a treat).
of course you can try different colours ;-)
Regards,
Tony.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2003 11:32 PM
тАО11-16-2003 11:32 PM
Re: Need command to change colour of a database's background
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2003 11:45 PM
тАО11-16-2003 11:45 PM
Re: Need command to change colour of a database's background
From the command prompt it works fine through my emulator , but just not in the menu itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2003 09:20 AM
тАО11-17-2003 09:20 AM
Re: Need command to change colour of a database's background
When you say it works fine from the command prompt, does the screen stay that colour when you start up the test database or does it revert back to the default colour?
you could try taking out the second escape code, although It shouldn't be executed until after the user quits the database. It is basically there to reset the background colour to normal.
If it reverts back to the normal colour at the point when you select the test database, then it is probably MFG Pro sending an esc seq to reset the terminal to defaults.
Regards,
Tony.