'export TERM=xterm-color' pretty much screws up clear command
I like using VIM with color tagging (using putty to SunOS). However, when I do an "export TERM=xterm-color", I can't make use of the clear command. Clear just has the same effect as pressing enter now. How can I fix this?
Also, does anyone know how to get the directories and file colors when I do an ls command? I don't have administrative privileges. I can create/edit files within my home directory though (like .profile and .bashrc).
One more thing, I've noticed that my long commands don't wrap around the console. It manages to wrap on the same line and writes over words. It's weird. How do I fix this? I have tried (.bashrc):
1. Try xterm-ansi or just ansi. There's also a way to download a termlib entry and use it yourself, but I don't know how with Solaris. What version of Solaris?
2. Get gnu ls and build it with color support. Install it in ~/bin and set your PATH to include that directory before any others. Then create an environment variable called "LS_COLORS". Here's mine:
(Remove newlines and spaces). Directories are bright-yellow rather than dark blue, which I found hard to read on dark backgrounds.
Then alias or functionize your ls command thusly:
which will turn it on normally, but leave it off when piped to a command, like less. If you want to really get fancy, check out this post -- ls is replaced by a function in such a way that if the directory listing is actually more than a page, less is used. Color is always enabled if piped through less, which is enabled to show it in that case, but if going through a pipe, the standard ls command is used.
I tried the LS_COLORS before, but we don't have GNU ls and I don't have the permissions to install it. Oh well. xterm-ansi didn't do it either. Thanks for the suggestions though.
You can use the opensolaris/sfw packages to install GNU coreutils. For info on how to install these packages in your home directory, see the solutions for FAQ: question 7.
Can any one please help me for the following :mad:
i'm searching for an alternative command in linux for passwd -as (which is in solaris) but in linux there is an option "-S" which gives the status of only one user for listing all the user i cudn't find any alternative
this "passwd -as" in... (0 Replies)
I have been configuring my .bashrc PS1 to be displayed with some nice colors and in a format that I like, however there is one thing that I cannot figure out (or know if it's even possible).
my PS1 line is as follows:
export PS1='\\u\@\\h\:\\w\n\\$ \'This makes the command and command output... (0 Replies)
On solaris and irix systems, I'm using csh in an existing xterm or dterm and would like to change the text colors. How do I accomplish this?
Thanks (1 Reply)
I am attempting to write a shell script that runs a program which generates data and then runs another program to plot the data. The problem is that I need the plotting to take place in a different terminal window that stays open after the plotting has finished. I have experimented 'xterm -e '... (1 Reply)
Hello Friends,
I am using solaris 10 operating system. I would like to know how to use the xterm color in it. I am trying this command:- xterm -bg color, but it is giving this
talc:/home/ania {ania} xterm -bg color
21469
-bg: Command not found.
What should i do? Can u help me... (3 Replies)
Hi All,
I have an input_file below and i would like to use Perl to search for the term "aaa" and output the 3rd term in the same row as "aaa".For Example, i want to search for the term "ddd" and would want the code to ouput the 3rd term in the same row which is "fff". Can somebody help ?
... (28 Replies)
Hello,
Anyone knows how to disable color text displayed on xterm window screen? I hate that color making me hard to read when front and background color are similar.
Thanks,
M. (1 Reply)
Hi all,
Can someone explain to me what xterm-color is? I do most of my coding on Emacs over telnet sessions with my school's server, and I recently discovered that if I set TERM=xterm-color in my environment, then emacs will will send colored syntax highlighting over telnet.
That's great,... (4 Replies)
hi floks !
i'd like to know how can i transmete a character or a string from my source code to a term and make it interpret or un by the shell wich is running in my term.
I'd like to create a Term from my code (and get its file descriptor) and then transmete each char typed on the keyboard to... (1 Reply)