Sponsored Content
Operating Systems AIX Enabling color for putty session Post 302374400 by edgarvm on Tuesday 24th of November 2009 11:00:03 AM
Old 11-24-2009
Hi phobus

i've seen that dialog however it just changes color settings i.e your terminal must be preconfigured for displaying colors, the next line doesn't work for me:

Code:
export TERM=xterm-256color

i'm working on AIX and i don't have root access
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Enabling backspace usage in Putty SSH connection ?

I have started a new job for 2 weeks not. I am distributing software packages through Tivoli and connecting to the servers using Putty in X11 and SSH. But on the command line, the backspace is disabled. I know its a command I have to enter in my .profile but I don't remember. There is a Ctrl+H... (2 Replies)
Discussion started by: Browser_ice
2 Replies

2. Shell Programming and Scripting

Color putty

Right now I am using putty. I am using 2-3 terminals at a time. To differentiate each termianl I want to put each putty screen and background color to different colors. I tried changing the colors in normal putty but it's not working. Is there any other color putty ? Regards, Venkat (2 Replies)
Discussion started by: svenkatareddy
2 Replies

3. UNIX for Advanced & Expert Users

Putty session

Dear all, We have a practice of getting user's passwords expired after 60 days and a strong password policy. When a user tries to enter a password which is not compliant to the policy which is set putty exists without giving any feedback to the user. Below is something i captured from the... (3 Replies)
Discussion started by: earlysame55
3 Replies

4. UNIX for Dummies Questions & Answers

Putty Session Timeout

Hi, I had add the following line into .profile and .bash_profile for the timeout session to avoid putty close automatically : timeout=10800 However, i still keep encounter session time out every after 60 seconds. Can anyone please help advice. Many Thanks! (2 Replies)
Discussion started by: wancy
2 Replies

5. UNIX for Dummies Questions & Answers

connecting to an ssh session with putty/bash.

Hi, sorry if this is the wrong forum for this question but I couldnt spot another obvious forum for it. I have a windows shortcut which opens up a saved session in putty. From this session I then ssh to another remote server. I was wondering is there a way that I can either edit my shortcut... (2 Replies)
Discussion started by: newb1000
2 Replies

6. Shell Programming and Scripting

regarding Color scheme in linux console connected through putty.

Hi All, I am connecting to SunOs 5.8 server from windows machine through putty. My problem is commands are not showing any colours results. I want to see 'ls' command should list directories in 'red' and files in 'green' etc. How to do it . Please help. Also How to enable syntax colouring in... (6 Replies)
Discussion started by: Sooraj_Linux
6 Replies

7. Emergency UNIX and Linux Support

Nohup process getting killed after closing PUTTY session

I am running a process in nohup . nohup getkeys.ksh 132 > 132.out & When I close the putty terminal,The process is getting killed . default_signal_handler called for signal no: 1 Is there a way to keep the process running even If I close the terminal (2 Replies)
Discussion started by: prasperl
2 Replies

8. UNIX for Dummies Questions & Answers

Restarting a putty session

Hi, Is there any way to refresh the session(for the profile file changes get reflect) in putty? I am tired of closing reopening putty. Thanks, Pandeeesh CTRL + Q to Enable/Disable GoPhoto.it (4 Replies)
Discussion started by: pandeesh
4 Replies

9. UNIX for Dummies Questions & Answers

Putty session freezes when sudo

I have a Windows batch file with the below entry for auto login. putty.exe -ssh user1@10.10.10.7 -pw passwd1 -m command.txtcommnd.txt contains the below entries pwd sudo su - user2Switching from user1 to user2 does not require any password . Output just prints the pwd and not sudo When i... (6 Replies)
Discussion started by: mohtashims
6 Replies

10. UNIX for Beginners Questions & Answers

Text color in Linux scripts via putty

hi Folks, Can anyone help with changing the color of the words in a linux shell script? I get how to change default background etc in putty, but for some reason the text in the script has different colors for different parts of the cript. Is there a way to have one color in a linux shell... (5 Replies)
Discussion started by: jonnyd
5 Replies
TERMINAL_COLORS.D(5)						 terminal-colors.d					      TERMINAL_COLORS.D(5)

NAME
       terminal-colors.d - Configure output colorization for various utilities

SYNOPSIS
       /etc/terminal-colors.d/[[name][@term].][type]

DESCRIPTION
       Files in this directory determine the default behavior for utilities when coloring output.

       The name is a utility name.  The name is optional and when none is specified then the file is used for all unspecified utilities.

       The term is a terminal identifier (the TERM environment variable).  The terminal identifier is optional and when none is specified then the
       file is used for all unspecified terminals.

       The type is a file type.  Supported file types are:

       disable
	      Turns off output colorization for all compatible utilities.

       enable Turns on output colorization; any matching disable files are ignored.

       scheme Specifies colors used for output.  The file format may be specific to the utility, the default format is described below.

       If there are more files that match for a utility, then the  file  with  the  more  specific  filename  wins.   For  example,  the  filename
       "@xterm.scheme" has less priority than "dmesg@xterm.scheme".  The lowest priority are those files without a utility name and terminal iden-
       tifier (e.g. "disable").

       The user-specific $XDG_CONFIG_HOME/terminal-colors.d or $HOME/.config/terminal-colors.d overrides the global setting.

EXAMPLES
       Disable colors for all compatible utilities:
	      touch /etc/terminal-colors.d/disable

       Disable colors for all compatible utils on a vt100 terminal:
	      touch /etc/terminal-colors.d/@vt100.disable

       Disable colors for all compatible utils except dmesg(1):
	      touch /etc/terminal-colors.d/disable

	      touch /etc/terminal-colors.d/dmesg.enable

DEFAULT SCHEME FILES FORMAT
       The following statement is recognized:

	      name color-sequence

       The name is a logical name of color sequence (for example "error").  The names are specific to the utilities.  For more details always  see
       the COLORS section in the man page for the utility.

       The color-sequence is a color name, ASCII color sequences or escape sequences.

   Color names
       black,  blink,  blue,  bold,  brown,  cyan,  darkgray,  gray, green, halfbright, lightblue, lightcyan, lightgray, lightgreen, lightmagenta,
       lightred, magenta, red, reset, reverse, and yellow.

   ANSI color sequences
       The color sequences are composed of sequences of numbers separated by semicolons.  The most common codes are:

	       0   to restore default color
	       1   for brighter colors
	       4   for underlined text
	       5   for flashing text
	      30   for black foreground
	      31   for red foreground
	      32   for green foreground
	      33   for yellow (or brown) foreground
	      34   for blue foreground
	      35   for purple foreground
	      36   for cyan foreground
	      37   for white (or gray) foreground
	      40   for black background
	      41   for red background
	      42   for green background
	      43   for yellow (or brown) background
	      44   for blue background
	      45   for purple background
	      46   for cyan background
	      47   for white (or gray) background

   Escape sequences
       To specify control or blank characters in the color sequences, C-style -escaped notation can be used:

	      a   Bell (ASCII 7)
	         Backspace (ASCII 8)
	      e   Escape (ASCII 27)
	      f   Form feed (ASCII 12)
	      
   Newline (ASCII 10)
	      
   Carriage Return (ASCII 13)
	      	   Tab (ASCII 9)
	      v   Vertical Tab (ASCII 11)
	      ?   Delete (ASCII 127)
	      \_   Space
	      \   Backslash ()
	      ^   Caret (^)
	      #   Hash mark (#)

       Please note that escapes are necessary to enter a space, backslash, caret, or any control character anywhere in the string, as  well  as  a
       hash mark as the first character.

       For example, to use a red background for alert messages in the output of dmesg(1), use:

	      echo 'alert 37;41' >> /etc/terminal-colors.d/dmesg.scheme

   Comments
       Lines where the first non-blank character is a # (hash) are ignored.  Any other use of the hash character is not interpreted as introducing
       a comment.

FILES
       $XDG_CONFIG_HOME/terminal-colors.d
       $HOME/.config/terminal-colors.d
       /etc/terminal-colors.d

ENVIRONMENT
       TERMINAL_COLORS_DEBUG=all
	      enables debug output.

COMPATIBILITY
       The terminal-colors.d functionality is currently supported by all util-linux utilities which provides colorized output.	For  more  details
       always see the COLORS section in the man page for the utility.

AVAILABILITY
       terminal-colors.d  is  part  of	the  util-linux package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils
       /util-linux/>.

util-linux							   January 2014 					      TERMINAL_COLORS.D(5)
All times are GMT -4. The time now is 01:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy