LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 02-26-2009, 04:56 PM   #1
Thomas Wagner
LQ Newbie
 
Registered: Aug 2008
Posts: 8
Thanked: 0
tty


[Log in to get rid of this advertisement]
Tring to use the tty routines echo, noecho, cbreak and nocbreak.

Using the include file curses.h and the library libcurses.a to
link my routine, I get an error:

Program received signal SIGSEGV, Segmentation fault.
0x06580b8e in echo ( at ../../ncurses/base/lib_echo.c:51
in ../../ncurses/base/lib_echo.c

Am I linking with correct library? Is there something missed?
Any help would be appreciated.


wagner@dawson3d.com
Thomas Wagner is offline  
Tag This Post , ,
Reply With Quote
Old 02-28-2009, 08:09 AM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 460
Thanked: 11
You have to use initscr() to setup the library before calling any of it's functions.
niknah is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reset/restart a tty from another tty? armandino Linux - General 4 02-25-2009 04:09 AM
can a tty execute command on another tty? BeacoN Linux - Desktop 3 11-08-2008 10:39 AM
Tty soplin Linux - General 2 05-11-2007 09:20 AM
I it possible to kill a tty or find which tty is being using by which process? geletine Linux - Software 2 01-15-2006 09:40 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 08:37 AM


All times are GMT -5. The time now is 09:26 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration