11-03-2004
Unix vi editor
Dear All,
Is there a way to handle special french, spanish character is vi editor (Sun Solaris 8). Foll. is a label in notepad (windows),
Cliquez ici pour revenir Ã_ la recherche de l'hôtel
this label is stored in a text file, when i tranfer this file to unix using ftp (tried both ansi & bin mode),
the label gets converted to
Cliquez ici pour revenir \205 la recherche de l'h\223tel
I use this label to insert into my table. As a result of the special characters my insert clause fails. Is there any settings i need to do so that i can handle these characters.
Thanks in advance.
Regards,
Lloyd
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I saw some people's vi editor show different colors on the text according the nature of text when using it.
It would be nice if I can see diffrerent colors with my vi editor.
Do anybody know how to set it up?
I use PowerTermPro program to access unix machine.
I tried to use vim editor but... (7 Replies)
Discussion started by: whatisthis
7 Replies
2. Shell Programming and Scripting
Hello,
I enjoy using the unix screen utility, but my vi sessions lose the ability to syntax highlight code and split screen(:vs or :sp). When not using screen, I can do those things within vi. Anybody experience this and know the fix?
Thanks (1 Reply)
Discussion started by: geephei
1 Replies
3. Shell Programming and Scripting
Hi All,
I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by
set EDITOR=vi it does not open a vi editor , rather it do as below.....
/////////////////////////////////////////////////////
$ set... (6 Replies)
Discussion started by: aarora_98
6 Replies
4. Shell Programming and Scripting
I have created a dummy file -demo.txt
On my machine-A (oslevel-5300-08) I can display the file content in HEX format through VI editor using :%!xxd but on other machine-B (oslevel - 5300-06) , I get error as "sh: xxd: not found."
machine-A:
$ cat demo.txt
Hello World !
I can display... (7 Replies)
Discussion started by: Rahulpict
7 Replies
5. UNIX for Dummies Questions & Answers
Do you know any text editor (other than Gvim, which I am using) which is made specially for c type languages?
The reason I ask for it is: I just spent 3 hours trying to find out start "if" and its end "if end".:wall:
I hope there is an editor which can link each if with its closing endif . (4 Replies)
Discussion started by: animesharma
4 Replies
6. Shell Programming and Scripting
How to copy the complete content from a file in vi Editor to windows ( notepad ).
I can use " select " and paste it to windows but this is restricted to current page. Not allowing me to scroll down or up when selecting the content.:confused: (1 Reply)
Discussion started by: frintocf
1 Replies
7. HP-UX
Hi All,
I am comfortable working in LINUX and need equivalents for HP-UX for below mentioned,
1. We use TAB key to expand/reveal a name in LINUX. Is there any way to make this work for UNIX, where it is double escape.
2. Also can we use make use of left,down,up,right keys instead... (3 Replies)
Discussion started by: pradebban
3 Replies
8. UNIX for Dummies Questions & Answers
vi: syntax error at line 1: `)' unexpected
when I try to vi into the /etc/vfstab, the return gives me the above error.
how can resolve this so that I can have access into vi. (6 Replies)
Discussion started by: dovestar
6 Replies
9. Homework & Coursework Questions
i need help with this homework. PLEASE
Assignment:
Create a directory "preFinal" in your home directory. Create empty files "a", "b", "c", etc in directory preFinal in the amount that match the number of directories preFinal*
This the code i have within Vi editor. But it is not working all... (3 Replies)
Discussion started by: bcute92
3 Replies
10. What is on Your Mind?
We have asked UNIX.com users over the years what is their favorite editor and why. Here is the top three answers.
Here is a new YT video on this question:
What Editor Does Everyone Use?
https://youtu.be/gqE8RTZZt9g
Of course, vi was the overwhelming favorite.
Credits:
1080 HD... (3 Replies)
Discussion started by: Neo
3 Replies
LEARN ABOUT OPENSOLARIS
bltocolor
bltocolor(3TSOL) Trusted Extensions Library Functions bltocolor(3TSOL)
NAME
bltocolor, bltocolor_r - get character-coded color name of label
SYNOPSIS
cc [flag...] file... -ltsol [library...]
#include <tsol/label.h>
char *bltocolor(const m_label_t *label);
char *bltocolor_r(const m_label_t *label, const int size,
char *color_name);
DESCRIPTION
The bltocolor() and bltocolor_r() functions get the character-coded color name associated with the binary label label.
The calling process must have PRIV_SYS_TRANS_LABEL in its set of effective privileges to get color names of labels that dominate the cur-
rent process's sensitivity label.
RETURN VALUES
The bltocolor() function returns a pointer to a statically allocated string that contains the character-coded color name specified for the
label or returns (char *)0 if, for any reason, no character-coded color name is available for this binary label.
The bltocolor_r() function returns a pointer to the color_name string which contains the character-coded color name specified for the label
or returns (char *)0 if, for any reason, no character-coded color name is available for this binary label. color_name must provide for a
string of at least size characters.
FILES
/etc/security/tsol/label_encodings
The label encodings file contains the classification names, words, constraints, and values for the defined labels of this system.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Obsolete |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe with exceptions |
+-----------------------------+-----------------------------+
These functions are obsolete and retained for ease of porting. They might be removed in a future Solaris Trusted Extensions release. Use
the label_to_str(3TSOL) function instead.
The bltocolor() function returns a pointer to a statically allocated string. Subsequent calls to it will overwrite that string with a new
character-coded color name. It is not MT-Safe. The bltocolor_r() function should be used in multithreaded applications.
SEE ALSO
label_to_str(3TSOL), libtsol(3LIB), attributes(5)
NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
If label includes a specified word or words, the character-coded color name associated with the first word specified in the label encodings
file is returned. Otherwise, if no character-coded color name is specified for label, the first character-coded color name specified in the
label encodings file with the same classification as the binary label is returned.
SunOS 5.11 20 Jul 2007 bltocolor(3TSOL)