Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6812175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:25:00+00:00 2026-05-26T20:25:00+00:00

I am using the Turbo C compiler on a Windows platform, Intel x86 architecture.

  • 0

I am using the Turbo C compiler on a Windows platform, Intel x86 architecture.

In my program I am scanning user input from the keyboard. It is a login password program that takes in username and password as user inputs.

For the username I am using getchar(), where while entering the username if the user presses the backspace key, on the keyboard, the previous character gets deleted, on it’s own, I mean I don’t need to write any explicit code to do this.

But for the password I am using getch() and corresponding to every keystroke I am displaying a * on the screen. In this case if user presses the backspace key on the keyboard, it does not delete the previous character, but rather takes it as another key stroke and displays a * corresponding to it on the screen.

I tried out bioskey from bios.h, tried using \b to work around, none worked.

Any suggestions or workarounds….????

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:25:01+00:00Added an answer on May 26, 2026 at 8:25 pm

    Sure. Keep track of the characters for yourself. If your program is receiving the backspace so that it displays a *, then check for that character and back up one space. After backing up one space, print a space to erase the *, then back up again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running a graphical program in Turbo C++ using DosBox on Windows 7 64
I'm a beginner at C, and using Turbo C++ compiler (16 bit). In the
Using the http://www.ifans.com/forums/showthread.php?t=132024 post from another question i am allowing the user to enter
I came across this: Writing a compiler using Turbo Pascal I am curious if
I am using Turbo C++ 3.0 Compiler While using the following code .. char
I always find that some people (a majority from India) are using turbo C.
I am trying to write data stored in a binary file using turbo C++.
I made a basic snake game in a DOS enviroment using turbo C++ 3.0,
I remember some years ago, when I learned C using Turbo C, it had
I'm using FastReport 4.7.31 in Turbo Delphi Pro. The following procedure processes the data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.