Welcome to GameHourz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

*curses

 
   Game Forums (Home) -> Roguelike -> Development RSS
Next:  Burning Crusade and rep rewards  
Author Message
pol

External


Since: Sep 07, 2006
Posts: 8



(Msg. 1) Posted: Thu Sep 07, 2006 8:12 pm
Post subject: *curses
Archived from groups: rec>games>roguelike>development (more info?)

I currently have my game in a windows console, and was thinking of switching
over to curses.

If I did this, could I use more than the 15 base colors?
I am pretty sure I read somewhere about 256 colors with curses but I cant
find what I was looking at.

also, does anybody use curses and develop in windows?

how do I install it? I tried following the faq's and installing pdCurses,
and nCurses, but no luck.


I am using Visual Studio 2003

 >> Stay informed about: *curses 
Back to top
Login to vote
Yendor

External


Since: Jul 20, 2006
Posts: 43



(Msg. 2) Posted: Thu Sep 07, 2006 8:12 pm
Post subject: Re: *curses [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> If I did this, could I use more than the 15 base colors?
> I am pretty sure I read somewhere about 256 colors with curses but I cant
> find what I was looking at.

Can't answer this as I don't use color (yet).

> also, does anybody use curses and develop in windows?

I use pdcurses on windows with visual studio with no problems.

> how do I install it? I tried following the faq's and installing pdCurses,
> and nCurses, but no luck.

ncurses won't work. so give that up.

download binaries from pdcurses.sourceforge.net and let us know
specifically what isn't working and how you are trying to do it.

 >> Stay informed about: *curses 
Back to top
Login to vote
Ido.Yehieli

External


Since: Feb 02, 2005
Posts: 82



(Msg. 3) Posted: Fri Sep 08, 2006 12:27 am
Post subject: Re: *curses [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yendor wrote:
> ncurses won't work. so give that up.

ncurses work via cygwin, but pdcursese work better (and also without
czgwin Smile

ido.
 >> Stay informed about: *curses 
Back to top
Login to vote
Timofei Shatrov

External


Since: Nov 22, 2004
Posts: 250



(Msg. 4) Posted: Fri Sep 08, 2006 4:55 am
Post subject: Re: *curses [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 7 Sep 2006 20:12:48 -0400, "pol" <pol RemoveThis @pol.net> tried to confuse
everyone with this message:

>I currently have my game in a windows console, and was thinking of switching
>over to curses.
>
>If I did this, could I use more than the 15 base colors?
>I am pretty sure I read somewhere about 256 colors with curses but I cant
>find what I was looking at.

There are 256 possible COLOR_PAIRs, i.e. background and foreground.
There are only 16 base colors.

>also, does anybody use curses and develop in windows?

Yes, PDCurses work on Windows very well.

>how do I install it? I tried following the faq's and installing pdCurses,
>and nCurses, but no luck.
>
>
>I am using Visual Studio 2003
>

I think there are precompiled libraries for Visual Studio (as there are
for MinGW and other compilers). Just edit the preferences of your
project so that it knows where to find the library.

--
|Don't believe this - you're not worthless ,gr---------.ru
|It's us against millions and we can't take them all... | ue il |
|But we can take them on! | @ma |
| (A Wilhelm Scream - The Rip) |______________|
 >> Stay informed about: *curses 
Back to top
Login to vote
John Connors

External


Since: Mar 21, 2006
Posts: 4



(Msg. 5) Posted: Fri Sep 08, 2006 9:23 am
Post subject: Re: *curses [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

pol wrote:
> I currently have my game in a windows console, and was thinking of switching
> over to curses.
>
> If I did this, could I use more than the 15 base colors?
> I am pretty sure I read somewhere about 256 colors with curses but I cant
> find what I was looking at.
>
> also, does anybody use curses and develop in windows?
>
> how do I install it? I tried following the faq's and installing pdCurses,
> and nCurses, but no luck.
>
>
> I am using Visual Studio 2003
>
>
>
An alternative is to use libSDLcurses:

http://developer.berlios.de/cvs/?group_id=7205

that gives you the parts of the curses API needed for a roguelike, but
runs in a window managed by the SDL library http://www.libsdl.org

It depends on libSDL and SDL_ttf. No visual studio project is provided,
but it should be possible to simply add the source files to your
project. It's also portable, so can be used in windows and linux (and
MacOSx) versions of your project.

--
+--------------------------------------------------------+
|Cyborg Animation Programmer | johnc.DeleteThis@yagc.ndo.co.uk|
|http://badbyteblues.blogspot.com -----------------------|
+--------------------------------------------------------+
 >> Stay informed about: *curses 
Back to top
Login to vote
Milesss

External


Since: May 14, 2005
Posts: 60



(Msg. 6) Posted: Tue Sep 12, 2006 5:55 pm
Post subject: Re: *curses [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Timofei Shatrov napisał(a):

[...]

>
> There are 256 possible COLOR_PAIRs, i.e. background and foreground.
> There are only 16 base colors.
>

On Windows I see 64 color pairs and 8 colors. To get bright colors I use
bold attribute.

[...]

--
Milesss zvyrfff.DeleteThis@vagrevn.cy
 >> Stay informed about: *curses 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
C++ interface to curses - Hi guys, I've recently been working a bit on my roguelike after a long holiday and I've started streamlining my IO code to be a little more wieldy. At the moment it's incomplete, but I have built a very handy C++ interface to curses and I can imagine..

[C/C++] Curses refresh problem - Hi all. I'm making a roguelike as an independent project for class, and I'm having a problem with PDcurses. The way I understand it, the virtual screen is never supposed to appear on the physical screen until I refresh somehow(with refresh, doupdate,..

[Curses] Black and white - I'm in process of porting my RL engine to Linux (actually I'm working with Cygwin), and I have very strange problem. For some reason curses window is unable to change colors with attrset. Only A_BOLD flag works. So, the two color schemes I get are gray o...

curses trouble no. 21390: resizeterm / init_color - The (N)curses functions resizeterm / init_color do not seem to work. I have tried multiple vterms (xterm, gnome-terminal, rxvt) and the Linux console : all of them ignored the resizeterm command. When running in a vterm the output works IF you resize....

Running java+curses on MacOS - Hello all As far as I know, JCurses works only for Win and Linux; anybody knows how to access a console cursesly on Mac from Java??? Thanks, -- Slash
   Game Forums (Home) -> Roguelike -> Development All times are: Ekaterinburg, Islamabad, Karachi, Tashkent (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]