Control characters to emulate a prompt?

This is a discussion on Control characters to emulate a prompt? within the Windows Programming forums, part of the Platform Specific Boards category; I am writing a server that is accessed over telnet. I need to prompt the user for information. I can ...

  1. #1
    Registered User xconspirisist's Avatar
    Join Date
    Nov 2003
    Posts
    44

    Control characters to emulate a prompt?

    I am writing a server that is accessed over telnet. I need to prompt the user for information. I can send a prompt such as : "Enter your name: ", however, if the user holds backspace, it overwrites the prompt, and in general, can overwrite all the output I send the user. I dont want this to happen, obviously. Does anyone have any ideas? I thought it might be possible via sending a control character of some sort.

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Microsoft telnet.exe client supports the operation:

    Code:
    set bsasdel
    Which will send backspace characters as deletes. This makes it so you can't backspace pretty much. This may not be entirely what you want, but being bound by a 3rd party client to interface with your server, things may be restrictive.

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    203
    If you are writing the client then you should have control of it.
    If not, Many telnet programs seperate input and output into different sections. Telnet.exe is really a horrible app and many free alternatives are available.

  4. #4
    Registered User xconspirisist's Avatar
    Join Date
    Nov 2003
    Posts
    44
    Pitty. I wanted any generic telnet client to be able to access the server. Ahwell.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with the control characters
    By vin_pll in forum C++ Programming
    Replies: 12
    Last Post: 10-22-2008, 07:28 AM
  2. HELP!!!!emergency ~expert please help
    By unknowppl in forum C Programming
    Replies: 1
    Last Post: 08-19-2008, 07:35 AM
  3. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  4. Password prompt in unix w/o \b
    By rafe in forum C++ Programming
    Replies: 1
    Last Post: 10-09-2002, 08:54 AM
  5. Using Control Characters in Unix
    By jharley in forum C Programming
    Replies: 2
    Last Post: 12-06-2001, 08:17 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21