Terminal User Interface

This is a discussion on Terminal User Interface within the Windows Programming forums, part of the Platform Specific Boards category; Hello. I was wondering if i can use curses lib for windows with C language. This is what i've found. ...

  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    34

    Terminal User Interface

    Hello.

    I was wondering if i can use curses lib for windows with C language.

    This is what i've found.

    PDCurses - Public Domain Curses

    whats your opinion?

    Thanks in advanced.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,485
    Yes.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    34
    Hmm i create the .lib file with nmake and in the project (Visual studio 2010) in
    properties/Linker/Input/aditional dependancies i add 'pdcurses.lib' (without quotes).

    Then im trying to compile a simple hello world and this error

    1>LINK : fatal error LNK1104: cannot open file 'pdcurses.lib'
    What that means. ?

    I search in c:\windows\system32 and i ve found the file pdcurses.lib

    Why this happens . Does anyone know ?

    EDIT:

    Finally instead of pdcurses.lib i put the whole path c:\Windows\System32\pdcurses.lib and that worked.


    Does anyone know a good tutorial in curses programming?

    Thanks
    Last edited by netpumber; 10-31-2011 at 12:43 PM.

  4. #4
    Registered User
    Join Date
    Aug 2008
    Location
    Belgrade, Serbia
    Posts
    163
    Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
    What profit hath a man of all his labour which he taketh under the sun?
    All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
    For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.

  5. #5
    Registered User
    Join Date
    Apr 2010
    Posts
    34
    Hello once again..

    I have read the tutorial but now i want to create a simple menu but i can't do this with pdCurses. The menu.h is nowhere..

    When im trying to use it, an error returned.

    Is there any way to create a menu with pdCurses ?

    Thanks in advance.

  6. #6
    language hopper dennis.cpp's Avatar
    Join Date
    Jan 2011
    Location
    Herborn, Hesse, Germany
    Posts
    197
    How could anyone properly answer such a question, except with "Yes, there is."?
    Hardware: Intel® Core™ i7-3630QM CPU @ 2.40GHz × 8
    Operating system: Fedora 19 (64-Bit) / Linux 3.11.6-200.fc19 / KDE SC 4.11.2
    Compiler: gcc 4.8.2 with Netbeans IDE 7.4

  7. #7
    Registered User
    Join Date
    Apr 2010
    Posts
    34
    Ok. Here are the clear questions
    How to create a menu while the menu.h file doesn't exists ?
    Which is the way you could create a menu on pdcurses ?
    Last edited by netpumber; 11-02-2011 at 11:03 AM.

  8. #8
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    How to create a menu while the menu.h file doesn't exists ?
    You don't. Make sure your setup is correct.

    Which is the way you could create a menu on pdcurses ?
    The HOW-TO link above has an excellent example. Read it.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. User interface for C++
    By Sclomps in forum C++ Programming
    Replies: 11
    Last Post: 06-17-2010, 03:36 PM
  2. Creating a user interface
    By kjarli in forum C++ Programming
    Replies: 9
    Last Post: 10-26-2007, 09:52 AM
  3. TUI - Text User Interface
    By leonelmfreire in forum C Programming
    Replies: 2
    Last Post: 08-22-2005, 01:39 PM
  4. game user interface
    By DavidP in forum Game Programming
    Replies: 3
    Last Post: 06-19-2004, 12:44 PM
  5. Getting user input without echo to terminal
    By cliff78 in forum C Programming
    Replies: 1
    Last Post: 04-27-2004, 08:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21