I am using vnc to connect to a solaris box. When a terminal is created, the default background is white. And when I use "vim" editor, I am able to get the syntax colours and all.
But I want a black background in the terminal. So I started the xterm with the following option, xterm -bg black -fg white, and it creates a xterm window with black back ground. But "vim" editor is not showing syntax highlighted in colours.
How can I get a terminal (not a xterm window) with black background color with the "vim" editor having syntax highlighted.
Solaris Version
SunOS 5.8 Generic_117350-62 sun4u sparc SUNW,Sun-Fire-880
xstartup contents
################################################################
Thanks in advance
Ahamed.
Last edited by radoulov; 11-02-2010 at 01:23 PM..
Reason: Code tags, please!
Hi ,
I have a situation.
Need is to create & send a formatted file with header in BOLD & colored & some sequel results as a content.
I know echo -e \033 command, but its scope is limited in PUTTY.
How to retain the formatting out of Putty; say after someone opens a email attachment... (2 Replies)
Dear unix gurus,
I have a data file with header information about a subject and also 3 columns of n rows of data on various items he owns. The data file looks something like this:
adam peter
blah blah blah
blah blah blah
car
01 30 200
02 31 400
03 57 121
.. .. ..
.. .. ..
n y... (8 Replies)
Hi friends,
I have a script that sets the env variable path based on different conditions.
Now the new path variable setting should not done in the same terminal or same shell.
Only a new terminal or new shell should have the new path env variable set.
I am able to do this only as follows:
>cd... (1 Reply)
find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g'
this is simple logic to find and replace in multiple files & folders
Hope this helps.
Thanks
Zaheer (0 Replies)
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Hello All
I have a xml file with many sets of records
like this
<mytag>mydata</mytag>
<tag2>data&</tag2>
also same file can be like this
<mytag>mydata</mytag>
<tag2>data&</tag2>
<tag3>data2&data3</tag3>
Now i can grep & and replace with & for whole file but it will replace all... (4 Replies)
Hi, I have text file abc.txt. In this file, I have the following data.
Input:
Mr Smith & Mrs Smith
Mr Smith &apos Mrs Smith
Mr Smith & Mrs Smith
Mr Smith& Mrs Smith
Mr Smith &Mrs Smith
Output:
Mr Smith & Mrs Smith
Mr Smith &apos Mrs Smith
Mr Smith & Mrs Smith
Mr Smith&... (4 Replies)
cat file1.txt
field1 "user1":
field2:"data-cde"
field3:"data-pqr"
field4:"data-mno"
field1 "user1":
field2:"data-dcb"
field3:"data-mxz"
field4:"data-zul"
field1 "user2":
field2:"data-cqz"
field3:"data-xoq"
field4:"data-pos"
Now i need to have the date like below.
i have just... (7 Replies)
Firstly, I would like to apologize if this is not the appropriate sub-forum to post about GNU/BSD makefile scripting. Though my code is in C++, because I am focusing on the makefile I thought it would go better in shell scripting. Please correct me if I am wrong.
Secondly, I am not interested in... (0 Replies)
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Discussion started by: weesiong
3 Replies
LEARN ABOUT LINUX
vte
vte(1) User Commands vte(1)NAME
vte - virtual terminal emulator
SYNOPSIS
vte [-2] [-A] [-a] [-B image] [-b] [-C] [-c command] [-D] [-d] [-f font] [-g] [-h] [-i] [-k] [-n] [-r] [-S] [-s] [-T] [-t terminal-type]
DESCRIPTION
vte is simply a window wrapped around the vte embeddable terminal emulation control, which does most of the work for gnome-terminal. vte is
used mainly to test the control. Most users do not need to use vte directly, but use gnome-terminal instead.
OPTIONS
The following options are supported:
-2 Toggle double buffering. Enabled by default.
-A Toggle antialiasing. The default is that of the current GTK+ default.
-a Toggle audible bell on/off. If audible bell is enabled, visible bell is disabled. If audible bell is disabled, visible bell
is enabled. Audible bell enabled by default.
-B image Use image as background.
-b Toggle cursor blinking. Enabled by default.
-C Open a "console" connection.
-c command Fork the specified command.
-D Use dingus clicking: as the cursor moves over text matching a certain pattern, the matched text is highlighted and the cur-
sor changes shape. Disabled by default.
-d Toggle update debugging. Disabled by default.
-f font Specify the font to use. Default font is "Sans 12".
-g Toggle whether to set geometry hints if font is changed. Enabled by default.
-h Toggle highlighting. Disabled by default.
-i Toggle whether to obey attempts to set the icon name, if applications running in the terminal request this.
-k Toggle whether to keep program running after GTK main loop. Disabled by default.
-n Specify the number of scrollback lines. Minumum number of scrollback lines is 100. Default number of scrollback lines is
100.
-r Toggle whether to set cursor color to pale red. Disabled by default.
-S Toggle launching a shell. Enabled by default.
-s Toggle whether to scroll background image along with text. This option is only useful when combined with the -B option.
Disabled by default.
-T Use transparent background. Overrides the -B option.
-t terminal-typeSpecify the terminal type to emulate.
EXTENDED DESCRIPTION
vte is designed to emulate the xterm program provided by the X Consortium. In turn, xterm is an almost complete emulation of the DEC VT102
terminal. vte supports the same extensions to VT102 as those provided by xterm, through special escape sequences.
xterm is an evolving program. Recent changes to xterm have been been incorporated into vte. This includes emulation of the newer DEC VT220
escape sequences.
EXAMPLES
Example 1: Launching the Virtual Terminal Emulator
example% vte
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables:
VTE_PROFILE_MEMORY Virtualize memory allocation for debugging purposes.
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/vte Executable for virtual terminal emulator
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWvte |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO gnome-terminal(1), xterm(1), libvte(3)NOTES
Written by Johan Steyn, Sun Microsystems Inc., 2004.
SunOS 5.10 6 Sep 2004 vte(1)