Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 15 Oct 2004 09:44:49 +0200 From: "Maria Green" To: cygwin AT cygwin DOT com Subject: Problem with Cygwin reading/storing backspace character MIME-Version: 1.0 Content-Type: text/plain Message-ID: X-Authenticated-Sender: marigren AT kau DOT se X-Spam-Processed: kau.se, Fri, 15 Oct 2004 09:44:52 +0200 (not processed: message from valid local sender) X-MDRemoteIP: 127.0.0.1 X-Return-Path: marigren AT kau DOT se X-MDaemon-Deliver-To: cygwin AT cygwin DOT com Hi, I program in C++ and have a problem while reading characters from the stdin. Cygwin doesn't behave the same way as my Linux do and I don't know if it's supposed to or not. I've searched the web for several hours but I can't find any informtion about this so I will be very thankful for some help. My problem I use readline to read one line and store the characters in an array. If I write something wrong and removes it with backspace, both the character deleted and the backspace character is stored in the array as well. This does not happen when you use Linux. My questions Is Cygwin supposed to behave like this? If so, is there anyway to make it behave like Linux instead? Cygwin version: 1.5.11-1 Operating system: Windows XP Linux version: Linux Mandrake 10.0. The code I used to test this: int main() { char text[] = {'A', 'A', 'A', 'A', 'A', 'A', 'A'}; cin.getline(text, 7); //Print the whole string cout<(text[i])<<":"; } cout<