- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Registered Symbol in Korn Shell script
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
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
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
07-09-2007 06:52 AM
07-09-2007 06:52 AM
Registered Symbol in Korn Shell script
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2007 07:01 AM
07-09-2007 07:01 AM
Re: Registered Symbol in Korn Shell script
plotter, ...). You have to study the documentation for the device to see how to select the optional character set. The host computer is simply going to send the octet , whether that octet outputs 'A', '@', or 'a' depends upon the display device itself.
What you do not want to do is hard-code character sequences in your script or application. You should user the terminfo database entry corresponding to your TERM setting. In shell scripts this is done using the tput command. For example, your shell script MIGHT use
tput scs 2
to select a character set.
Man terminfo, tput for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2007 09:34 AM
07-09-2007 09:34 AM
Re: Registered Symbol in Korn Shell script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2007 11:35 PM
07-09-2007 11:35 PM
Re: Registered Symbol in Korn Shell script
Our HP lawyers said that (c) wasn't good enough. You could do that but you had to spell copyright out. Of course fancy documents and web pages would use those symbols.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2007 04:59 AM
07-10-2007 04:59 AM
Re: Registered Symbol in Korn Shell script
the following settings permit that, but really don't ignore ACS's posting!
- stty should NOT report 'istrip' but '-istrip' ans cs8:
ef3nip00@forth[94] stty -a
speed 9600 baud;
rows = 52; columns = 126; ypixels = 790; xpixels = 1144;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^h; kill = ^u;
eof = ^d; eol =
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crtscts -crtsxoff -parext
...
- your locale setting should reflect the code set:
ef3nip00@forth[95] locale
LANG=en_US.ISO8859-1
LC_CTYPE=en_US.ISO8859-1
LC_NUMERIC=en_US.ISO8859-1
LC_TIME=en_US.ISO8859-1
LC_COLLATE=en_US.ISO8859-1
LC_MONETARY=en_US.ISO8859-1
LC_MESSAGES=C
LC_ALL=
- the key sequence Compose-o-c will produce the copyright sign which is correctly printed (maybe not visible here):
ef3nip00@forth[96] print -n ©| od -cx
0000000 ©
a900
0000002
mfG Peter