From owner-freebsd-questions@FreeBSD.ORG Mon Feb 11 14:59:00 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AF431596 for ; Mon, 11 Feb 2013 14:59:00 +0000 (UTC) (envelope-from sam.gh1986@gmail.com) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by mx1.freebsd.org (Postfix) with ESMTP id 3FA0978A for ; Mon, 11 Feb 2013 14:59:00 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id gg13so4620514lbb.2 for ; Mon, 11 Feb 2013 06:58:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=y7b+BmKnGg/caVMfnF9ImGLIskYFgcya+46hJrNXVog=; b=SSr0BRHKvGE6IJNCRiR6a2Z8T1i9o6+OwswW6decmvm8YIx9cDJ3Q1p5wbJEqhVdEz Qn6gV0hRePoAz+pGjQBH6YRNlZTXU8VXWC8TYTaj0jnzwGaAw2NWWyc5vj1JOwRg7o2P dsCsWhfrOW/ybqhLuooavOxa7JppO+fwYoUwN6zRsrUFEaShQWM07j21uHAiFJcmThOa F6n/jyvSsjJRameJkzDbmugUF8q9tPaW9jfpGEWZ7Yg8O6x8siv20PPMHPQqJsGsTGwz mRRFeD1taCek2WcQgenAd/ufOBaA9WMNIrGy+I2pnG/d7oGi3qpqmnqcJwo/pkg+s1Ph Z+NQ== MIME-Version: 1.0 X-Received: by 10.152.110.6 with SMTP id hw6mr1623241lab.43.1360594733248; Mon, 11 Feb 2013 06:58:53 -0800 (PST) Received: by 10.112.143.201 with HTTP; Mon, 11 Feb 2013 06:58:53 -0800 (PST) In-Reply-To: <201302061143.r16Bhnx2016113@mail.r-bonomi.com> References: <201302061143.r16Bhnx2016113@mail.r-bonomi.com> Date: Mon, 11 Feb 2013 18:28:53 +0330 Message-ID: Subject: Re: backspace shows ^? in serial communications From: s m To: Robert Bonomi Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 14:59:00 -0000 thanks Robert, i try it before but nothing happened. do you know how i can set erase and erase2 for stty via termios structure? and what should be their value to backspace correct well? On Wed, Feb 6, 2013 at 3:13 PM, Robert Bonomi wrote: > > From owner-freebsd-questions@freebsd.org Wed Feb 6 00:19:04 2013 > > Date: Wed, 6 Feb 2013 09:44:37 +0330 > > Subject: backspace shows ^? in serial communications > > From: s m > > To: freebsd-questions > > > > hi all > > > > i have a problem with backspace in serial communications. i have a > > freebsd8.2 box with a serial card on it. when i connect to other freebsd > > box via serial port backspace does not act as i expected. backspace shows > > ^? on screen. i searched alot and find out that stty has two parameters > > -erase and erase2- to identify erase characters in terminal and they > should > > be set correctly. i set erase and erase2 to ^? by "stty erase \^?" and > > "stty erase2 \^?" commands but nothing happened. > > please let me know how i can fix it. i know it is simple issue but i > really > > do not know how to do that. > > stty erase {press the backspace key} > > Then hit the enter/return key >