473,395 Members | 2,079 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to turn off Standard Output

I am in a class at school and we are in the process of implementing an
operating system using 'Nachos'. For my Login Screen, I am trying to
make it so that when someone is logging in, their password does not
display on the screen. I guess the question i am asking is how can i
temporarily stop keystrokes from going to the console. Is this
possible??

May 2 '06 #1
2 1965
mp***@cox.net wrote:
I am in a class at school and we are in the process of implementing an
operating system using 'Nachos'.
How Mexican! I hope they still taste nice after you've finished using them.
For my Login Screen, I am trying to
make it so that when someone is logging in, their password does not
display on the screen. I guess the question i am asking is how can i
temporarily stop keystrokes from going to the console. Is this
possible??


Well, firstly, to clear up what you put in your subject but not in the
question. Your query has nothing to do with turning off standard output.
The fact that what you type is displayed on the screen has nothing to do
with the standard output stream. It's a function of your keyboard or
terminal. Most C implementations provide a way of controlling whether or
not keystrokes are echoed to the screen. It's done in a different way on
each operating system. It's not defined by the C standard, so it's
off-topic here. Try asking in a newsgroup that discusses programming on
your particular platform, for example, comp.unix.programmer if you're on
a Unix-like or Posix-like platform.

Simon.
May 2 '06 #2
Simon Biber <ne**@ralmin.cc> wrote:
mp***@cox.net wrote:
I am in a class at school and we are in the process of implementing an
operating system using 'Nachos'.


How Mexican! I hope they still taste nice after you've finished using them.
For my Login Screen, I am trying to
make it so that when someone is logging in, their password does not
display on the screen. I guess the question i am asking is how can i
temporarily stop keystrokes from going to the console. Is this
possible??


Well, firstly, to clear up what you put in your subject but not in the
question. Your query has nothing to do with turning off standard output.
The fact that what you type is displayed on the screen has nothing to do
with the standard output stream. It's a function of your keyboard or
terminal. Most C implementations provide a way of controlling whether or
not keystrokes are echoed to the screen. It's done in a different way on
each operating system.


And under some circumstances, it's not even possible.

FAQ: <http://c-faq.com/osdep/cbreak.html>

Richard
May 2 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: dan baker | last post by:
I have a page that gets loaded with a meta-refresh hardcoded so that a few things on the page get updated. its kind of a fake chat board. anyway, what I need to do is turn off the meta-refresh once...
2
by: Brian | last post by:
I'm running a dos program via System.Diagnostics.Process. The dos program is very picky about filenames and such, and so I want to show the output to the user so they can verify it did what it...
3
by: Scott Emick | last post by:
I want to be able to turn off these messages in my output window The thread '<bla>' (0xaa4) has exited with code 0 (0x0). When I'm debudding multi-threaded apps it can get annoying. --...
3
by: beliavsky | last post by:
I want to write a function that writes to an output file if specified and otherwise to standard output. How can I connect a file object to standard output in the code below? I could use an if...
4
by: no_spam_for_gman | last post by:
Hi, I can turn off autocommit within the command window but I cannot figure out how to turn it off when you are in the IBM DB2 Command Line Processor. Does anybody knows how? By the way I mean...
9
by: Paulo da Silva | last post by:
Hi. Why is this code not working? How can I implement this? Thanks. class C { private: struct stat st; ....
2
by: Devine123 | last post by:
Hi, I’m creating a perl script that takes incoming http/s requests, logs the standard input, output and error, before returning the output to the client. The input, output and error log is appended...
1
by: terminatorul | last post by:
Hello Sorry if asking a known question. I have a program that reads lines of text from standard input and writes the non-empty ones back to standard output. In most cases it will be used with...
14
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, In my windows applicationm, i need to excute a batch file. this batch file throws some text and questions to the screen, i need to catch the standard Output, check if it's a question, in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.