Share your knowledge at the LQ Wiki.
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 09-22-2003, 04:34 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Need Linux Help:Problem with disabling echo

Ok linux programmers I need some help. I am writing a simple client - server program that lhas the client connecting to the server via username and password. When entering the password I want to disable echo so the password is not displayed on the screen. I have it working so that the password isnt displayed but when I exit out of my program all the prompts and everything else is just a mess of scrambled sybols causing me to have to go to a new terminal each time, because I cant really do anything on the current terminal in its state.

This is what my code looks like
static struct termios Otty,Ntty
Ntty = Otty;
Ntty.c_lflag &= ~ECHO;
/*read input in yadda yadda yadda*/

It works except upon exiting everyting is jarbled. Any Suggestions?
Old 09-22-2003, 05:04 PM   #2
LQ Newbie
Registered: Sep 2003
Distribution: SuSE 8.2 Pro
Posts: 9

Rep: Reputation: 0

Last edited by Yamakaze; 09-22-2003 at 05:10 PM.


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
Kphone echo (echo echo) scabies Linux - Software 0 10-18-2004 03:59 PM
echo $PATH problem acbenny Linux - General 15 08-12-2004 06:15 PM
audio problem in mic echo derekzxcv Linux - Hardware 0 07-09-2004 07:59 AM
telnet remote echo off problem aanand Linux - Networking 1 01-08-2003 02:52 PM
Echo /devPrinting doesn't work, echo /usb/lp0 works, Testpage works, Printing doesn't Hegemon Linux - General 3 08-15-2002 02:13 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:56 PM.

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