Prompt in Solaris 5.10 - newb ?


 
Thread Tools Search this Thread
Operating Systems Solaris Prompt in Solaris 5.10 - newb ?
# 8  
Old 11-02-2011
VT100
# 9  
Old 11-02-2011
A VT100 doesn't support colors but anyway, this should work:
Code:
 PS1=$(printf "\033[46;31m%s@\033[1;33m%s:\033[1;34m$PWD \033[0m \$ " $(logname) $(hostname))

Your second syntax isn't compatible with ksh88 and the first one doesn't do colors.
This User Gave Thanks to jlliagre For This Post:
# 10  
Old 11-02-2011
Does Tectia 6.1 support VT100? Could be wrong, but as far as I can see from their online documentation, it assumes an ANSI terminal.
# 11  
Old 11-03-2011
The type of terminal announced is user selectable (Terminal Answerback) and it seems vt100 is the default. In any case, the Tectia client supports ANSI colors so my suggestion should work.
This User Gave Thanks to jlliagre For This Post:
# 12  
Old 11-03-2011
Good Morning, thank you that does work and the colors are now visible as what I saw when I tried it was red user name, yellow server name, blue working directory with a teal like background highlight and my output was white which is awesome. There is only one problem. If I change directories, the prompt does not reflect the then current working directory, its like its stuck and so I cant tell what directory I am in once I get deep into it...
# 13  
Old 11-03-2011
A backslash was missing, here is the command fixed:
Code:
PS1=$(printf "\033[46;31m%s@\033[1;33m%s:\033[1;34m\$PWD \033[0m \$ " $(logname) $(hostname))

This User Gave Thanks to jlliagre For This Post:
# 14  
Old 11-03-2011
that works exactly! so much easier now. if you got time for one last question....can you add the time to the prompt? not date and time but just the time say after the PWD?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Help changing the PS1 prompt in Solaris

Hi, I need help changing PS1 in Solaris. I tried this: MYPROMPT="> " PS1=$LOGNAME@$HOSTNAME:${PWD}$MYPROMPT (NOT SURE WHY IT'S HIGHLIGHTED HERE) export PS1 My problem is that $PWD is not working, when I get the prompt and I change directories, the prompt is not displaying the current... (17 Replies)
Discussion started by: curiousmal
17 Replies

2. Solaris

Unable to move from rsc prompt to ok prompt

Hi, on sunfire v890 unable to move from rsc prompt to ok prompt, i have executed the command break. (9 Replies)
Discussion started by: manoj.solaris
9 Replies

3. Solaris

No prompt from Solaris to WinXP Hyperterminal

hi I am new to unix and have found a SPARCstation 5 in the shed. I'm told by my father that it was working when it was put there about 8 years ago. It seems to boot up and makes all the right noises, both discs appear to make a noise, the keyboard lights flash etc., etc., but i can't seem to get... (2 Replies)
Discussion started by: harrystrickland
2 Replies

4. Solaris

Solaris machine is at # prompt not able to login in GUI mode

Solaris machine is at # prompt not able to login in GUI mode : I want to login solaris server in GUI mode from # prompt. ---------- Post updated 12-30-11 at 11:36 AM ---------- Previous update was 12-29-11 at 02:23 PM ---------- Hi, Please send me some guidelines regarding this.... as... (2 Replies)
Discussion started by: sunray
2 Replies

5. Solaris

Newb questions about Solaris 10.

For some reason, I have a v240 lying around. I was thinking of connecting it to a 1gbit backbone, but I have no experience with Solaris or Linux whatsoever. Here's what I would like to do: - Run a Apache Webserver(XAMPP) - Run a FTP Server and set the Home directory Here's some random... (1 Reply)
Discussion started by: Willekillen
1 Replies

6. Shell Programming and Scripting

How to list files in FTP prompt pagewise in solaris?

Hi, I have a solaris system with only ftp access.Need to get the list of files page wise display.. Also would like to redirect output of "ls" command to a text file in same directory. Can anyone suggest me the sollution for this? Rakesh (2 Replies)
Discussion started by: rakesh_noronha
2 Replies

7. UNIX for Dummies Questions & Answers

Change root prompt (Solaris)

Hello all. I was wondering if there is a way to change the root prompt. I am using Solaris 10 and would like to have the root prompt display the current directory along with 'SU' to indicate root status. What I have tried so far: /etc/passwd changed the root shell to korn with... (10 Replies)
Discussion started by: RobertSubnet
10 Replies

8. Solaris

Solaris 10 install doesn't display Network Connectivity prompt page

I have two Dell x86 machines on which I am attempting to install Solaris 10 from CD. I am not doing a Jumpstart install. This is my first experience in installing Solaris (or any other OS). I am following the instructions at How to Quickly Install the Solaris 10 1/06 OS The first machine... (3 Replies)
Discussion started by: sarahsi
3 Replies

9. UNIX for Dummies Questions & Answers

Ok I'm a Newb, Please Help

I am wanting to download the Linux Program. When i go to download it I see several things to download. What do i download exactly? Then what do I do to install it. Also I have partitioned my hard drive to make way for Linux on the other part to play with it, will any problems arise from this? I... (3 Replies)
Discussion started by: Seeto
3 Replies

10. UNIX for Dummies Questions & Answers

help for a newb

ok i just installed FreeBSD 4.8 on a computer i had lying around and it was working ok but then when i tried to set up KDE's xdm (kdm) i think i must have configured the login manager wrong because i cant login through the kdm and therefore i can log in to BSD at all?! please can someone help me... (5 Replies)
Discussion started by: h3x
5 Replies
Login or Register to Ask a Question