🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #60202

Re: jak odczytać dane wpisane z klawiatury aby nie było "echa" ?

#60202
From: M(dot)Kedzierawski
Date: Tue, 25 Oct 2005 18:24
19 lines
1676 bytes
> jaka funkcja albo sposobem odczytac dane wpisywane z klawiatury
> aby nie pojawialy sie znaki na ekranie

W pliku unistd.h można znaleźć coś takiego:

...
/* Prompt with PROMPT and read a string from the terminal without 
echoing. Uses /dev/tty if possible; otherwise stderr and stdin.*/

extern char *getpass (__const char *__prompt) __nonnull ((1));
...

-- 
Mariusz Kędzierawski
+--------------------------------------------------------------+
  Jeżeli planujesz wyrzucić komputer a jest na nim zainstalowany
  Windows, to zainstaluj na nim wcześniej Linuxa. Niech poczciwa
  maszyna przynajmniej umrze z godnością.
+--------------------------------------------------------------+
Technical Details
Message-ID: <djlt1m$q1i$1@julia.coi.pw.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!uw.edu.pl!news.pw.edu.pl!not-for-mail
References: <djl5if$nff$1@atlantis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!uw.edu.pl!news.pw.edu.pl!not-for-mail
From: "M(dot)Kedzierawski"@elka.pw.edu.pl
Newsgroups: pl.comp.os.linux.programowanie
Subject: Re: jak odczytać dane wpisane z klawiatury aby nie
 było "echa" ?
Date: Tue, 25 Oct 2005 20:24:41 +0200
Organization: Warsaw University of Technology
Lines: 19
Message-ID: <djlt1m$q1i$1@julia.coi.pw.edu.pl>
References: <djl5if$nff$1@atlantis.news.tpi.pl>
NNTP-Posting-Host: helios.riviera.pw.edu.pl
Mime-Version: 1.0
X-Trace: julia.coi.pw.edu.pl 1130264438 26674 10.1.102.56 (25 Oct 2005 18:20:38 GMT)
X-Complaints-To: usenet@pw.edu.pl
NNTP-Posting-Date: Tue, 25 Oct 2005 18:20:38 +0000 (UTC)
In-Reply-To: <djl5if$nff$1@atlantis.news.tpi.pl>
X-Accept-Language: en-us, en
User-Agent: Mozilla Thunderbird 1.0 (X11/20050319)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit