Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 02-26-2009, 04:56 PM   #1
Thomas Wagner
LQ Newbie
Registered: Aug 2008
Posts: 8

Rep: Reputation: 0

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.
Old 02-28-2009, 08:09 AM   #2
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
You have to use initscr() to setup the library before calling any of it's functions.


echo, tty

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

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
[SOLVED] 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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:50 AM.

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