Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ login screen, greeting ansi

login screen, greeting ansi

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 3  

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #15 on Mon 27 Oct 2003 06:17 AM (UTC)
Message
You only have those colors, I believe.. (see Nick's post), but, what you CAN do is set the bold attribute. Most MUD clients consider "bold" to be the "light" version of the color.

To do this:

[0;1;37m

Note the added 1. That means "bold" (or "bright").

I'm glad that it's all sorted out now. :)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Kalmah   (17 posts)  Bio
Date Reply #16 on Mon 27 Oct 2003 06:44 AM (UTC)
Message
Thanks again. You have been a great amount of help to me.

:-)
Top

Posted by USER007   (124 posts)  Bio
Date Reply #17 on Thu 30 Oct 2003 09:28 PM (UTC)
Message
Where can I get VI? :P
Top

Posted by Rash   United Kingdom  (56 posts)  Bio
Date Reply #18 on Thu 30 Oct 2003 09:38 PM (UTC)
Message
I manged to get  to display color, just change the number before the m to one of the ones nick said and it should work a treat it works on my greet msg (the one that displays as soon as u connect to a mud) Hope that helps...

Rash

P.S: I think VI is apart of Cygwin and i know its on the Wolfpaw Hostiing Shell's dont know about anything else sorry
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #19 on Thu 30 Oct 2003 09:45 PM (UTC)
Message
Geez people... vi is a standard text editor that comes with most implementations of Unix. Cygwin is not some magic, random program, but is instead an "implementation" of Unix on Windows that creates a sort of virtual Unix environment for programs to run in, and also includes most Unix libraries. It's a sort of emulator.

You guys should do more research on what it is you're doing if you want to understand what's actually going on. :)

In other words, you don't just go "get" vi. You need a Unix environment first, and most come with vi anyways. With Cygwin, you need to remember to install the vi editor.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #20 on Sat 01 Nov 2003 02:45 PM (UTC)
Message
Actually, there are versoins of vi available for download that are tweaked to run in windows. However, for those that need a good low end (read free) text editor for windows that won't completely muck up *nix formatting, I'd recommend metapad from www.liquidninja.com

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by USER007   (124 posts)  Bio
Date Reply #21 on Sun 02 Nov 2003 01:34 PM (UTC)
Message
This is a pretty niffty program. Thanks. :)
Top

Posted by USER007   (124 posts)  Bio
Date Reply #22 on Tue 25 Nov 2003 09:47 PM (UTC)

Amended on Tue 25 Nov 2003 10:14 PM (UTC) by USER007

Message
What are the basic commands to use VI? I want to add color to my login screen. :p

==EDIT== nvm I found one. :p Ok I still need help I type vi help.are and it didn't work it showed nothing except these: ~. Any help? :/
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #23 on Tue 25 Nov 2003 10:53 PM (UTC)
Message
There are tons of manuals for vi. Just search on google.

As for why you have ~s, that's probably because the twiddle is the line-end marker. Why your file only has those, is another problem, that most likely has nothing to do with vi.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by USER007   (124 posts)  Bio
Date Reply #24 on Wed 26 Nov 2003 02:06 AM (UTC)

Amended on Thu 27 Nov 2003 12:44 AM (UTC) by USER007

Message
==EDIT== One of my friends told me so ignore this post.
Top

Posted by Sylaer   (20 posts)  Bio
Date Reply #25 on Tue 09 May 2006 07:39 PM (UTC)
Message
hrm, out of curiosity, what are the drawbacks to hardcoding ansi into the login screen?
also, are there many clients that don't support ansi color?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #26 on Tue 09 May 2006 07:45 PM (UTC)
Message
There may be some clients out there that don't support ANSI, but not many.

One of the main problems is that there are people who don't want color. And you'd be forcing color on to them.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Dace K   Canada  (169 posts)  Bio
Date Reply #27 on Tue 09 May 2006 07:47 PM (UTC)
Message
Easiest way is to ask if they want color before you display the greeting. There's a snippet for it on Samson's page, I think.

ASJ Games - .Dimension 2, Resident Evil, and snippets - oh my!
http://asj.mudmagic.com

Drop by the area archives and find something for your mud. http://areaarchives.servegame.com
Top

Posted by Malti   USA  (55 posts)  Bio
Date Reply #28 on Tue 09 May 2006 08:27 PM (UTC)
Message
Most clients should support ansi. Ansi is a part of the standard so, if you are writting a client, you should include ansi. Hell, even telnet is ansi enabled. Plus forcing the color should have no effect on non-ansi clients and no effect on performance. I guess the point i am trying to make is that your client should have color and your users should use color, and plus they are given the option to turn it off anyway.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #29 on Tue 09 May 2006 09:47 PM (UTC)
Message
Quote:

Where can I get VI?


Vim (VI Improved) is available from:

http://www.vim.org/

There is a stand-alone Windows version, I think.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


91,794 views.

This is page 2, subject is 3 pages long:  [Previous page]  1  2 3  [Next page]

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.