Issues in Console Programming

Pages: 123
chrisname (5896)
It is still command prompt box in Windows
And UNIXes. http://invisible-island.net/ncurses/ncurses-intro.html particularly http://invisible-island.net/ncurses/ncurses-intro.html#mouse

In fact ncurses is cross platform; on Windows I think it's pdcurses; so the tutorial should probably cover that when/if he (Duoas) writes it.
Last edited on
fengxu (13)
Hi, thanks a lot for your information.
And I have a question.

Is there any alternatives for 'kbhit()' from standard libraries. Thanks.
Duoas (6732)
Yes:
1
2
3
4
5
6
7
8
9
#include <windows.h>

bool iskeypressed()
  {
  return WaitForSingleObject(
    GetStdHandle( STD_INPUT_HANDLE ),
    0
    ) == WAIT_OBJECT_0;
  }
http://www.cplusplus.com/forum/general/3389/page1.html#msg14326

Hope this helps.
firedraco (5413)
Interesting...this got stickied. Guessed that means you'll have to finish it some time Duoas. XP
tummychow (1210)
Wasn't this stickied a while back?
Duoas (6732)
Alas, it is currently on the back burner... I won't be able to finish it at least until after I've finished moving and I reinstall Linux (Kubuntu update hosed my system)...

I haven't forgotten it though.
chrisname (5896)
Duoas wrote:
back burner

mrrrph mf mrr mrrrph!
tummychow (1210)
Is that a pyro reference?
EDIT: Bet it is.
Last edited on
chrisname (5896)
IS NOT POSSIBLE!

</derailment>
Duoas (6732)
I love my gas range. (I can't stand electric.)
chrisname (5896)
http://www.steamgames.com/tf2/pyro/images/pic_backburner.jpg
tummychow (1210)
Don't worry, I know what the backburner is. (was that for Duoas?)
chrisname (5896)
Yes.
williamparkar (1)
Yeah! This is the sort of thing I've been wanting to see.


<a href="http://www.berkeley-term-papers.com">Term papers</a>
Last edited on
chrisname (5896)
Please don't advertise.
troy123 (1)
can someone here tell me the best seo techniques


http://forum.seoranksmart.com

http://www.seoranksmart.com/seo-services/seo-packages.htm
Duoas (6732)
Yes. First, you go and join random forums on the internet, and post unrelated advertizing to as many useful threads as you can find...
a4apple (3)
hi there, i'm new on here and don't if i'm posting the right place but, I have this problem with a program it keeps giving me a "no match for 'operator==' " error, which is really strange. I am trying to compare strings using if-statements and I just don't get why i'm getting that error. Please help, thanks

escarlanmarlo (2)
Hello guys!

any can help me? i find whole C++ library.

Thanks
MottMan (329)
Not to put any pressure on anybody but is this article series still a go? I'd really like to see
How to set up a nice console-programming environment

Anyway, I hope to see more of these in the future :)
Pages: 123