LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-08-2006, 08:56 PM   #1
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Programming with NCurses


I'm really interested in programming with ncurses. I started reading the TLDP HOWTO on ncurses (link).

Unfortunately, as with most things in the Linux/UNIX world, it revolves around C, and my C know-how is practically non-existant *gong sound*.

Is it possible to obtain curses/ncurses libraries for other languages (interpreted or compiled)?
I'm particularily interested in obtaining it for KSH or BASH.

PS. I know BitTorrent (which is written in Python) uses curses, so that leaves me some hope in there being "ports" of it to other languages.
 
Old 07-08-2006, 09:18 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Is this the ncurses how-to that you are working with. I believe that the Mandrake distro you are using uses perl/ncurses for a lot of the admin scripts. However, you might find C to be easier than Perl! But you have some real world real examples on hand.

---

Just to betray how unschooled I am, is your sig a quote from some work. Look at me, I'm quoting Zippy the pinhead. No wonder I don't recognize the Ukrainian reference.
 
Old 07-08-2006, 09:47 PM   #3
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Original Poster
Rep: Reputation: 65
I know Perl quite well, C/C++ not so much, so I'll use Perl::Curses as a last resort, in case I can't find any libraries for including curses with KSH.

Quote:
Just to betray how unschooled I am, is your sig a quote from some work. Look at me, I'm quoting Zippy the pinhead. No wonder I don't recognize the Ukrainian reference.
I'm actually amazed that you recognized it as being Ukrainian!
Unfortunately, the only things I'm quoting are a Ukrainian beer shirt (Я Українець = I am Ukrainian -- the equivalent to Molson Canadian's "I Am Canadian."), and Ющенко. Так. (Yushchenko. Yes.) is me showing my support for the Orange Revolution, by quoting their motto "Так."

PS. Thanks for the response.
 
Old 07-08-2006, 10:52 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Thanks for the explanation. I used to keep up with politics a couple decades ago. It's been a few years since I watched CSPAN and the Christian Science Monitor Report doesn't air anymore. I didn't connect Ющенко with the politician. It also took me 4 minutes to find the correct keys on my keyboard typing his name.
 
Old 07-09-2006, 11:09 AM   #5
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Original Poster
Rep: Reputation: 65


oddly enough, I've never actually watched CSPAN...I only follow the political shtuff by reading the Ukrainian newspapers my grandparents get...go figure.

so, as far as I've found, there's ncurses for C/C++, Perl, and Python...anything for any shell scripting languages (preferrably KSH)?
 
Old 07-11-2006, 06:05 AM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Everything I've seen in shells is where the ncurses library is used in a compiled c program that is called in a shell script.
 
Old 07-11-2006, 01:57 PM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,725

Rep: Reputation: 450Reputation: 450Reputation: 450Reputation: 450Reputation: 450
Usually one uses 'dialog' to access the ncurses libs from shell.
 
Old 07-11-2006, 02:56 PM   #8
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Original Poster
Rep: Reputation: 65
thanks for the reply gnashly.


That's pretty much what I'm looking for. Thanks a bunch.

Last edited by indienick; 07-11-2006 at 02:59 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Top Down programming & Bottom up programming minil Programming 1 06-17-2005 02:42 AM
C programming HELP, ncurses window functions naomi Programming 3 02-06-2005 05:54 AM
Parallel programming with ncurses problem StressedLemming Programming 4 02-26-2004 11:54 AM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 12:00 AM


All times are GMT -5. The time now is 02:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration