From owner-freebsd-questions@FreeBSD.ORG Thu Feb 28 12:23:19 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1B750DCC for ; Thu, 28 Feb 2013 12:23:19 +0000 (UTC) (envelope-from gkeramidas@gmail.com) Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id B1740D2 for ; Thu, 28 Feb 2013 12:23:18 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id fm10so1352184wgb.33 for ; Thu, 28 Feb 2013 04:23:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to; bh=Sx7kPP0zPslR9Ghl1jWbiuxrrYJb4K8XmAV4CZWPn/g=; b=TvAwBbDdeVexyH8lnS+g3AWDPiomZyWpA4ONrAov7B1s/E0lmkKmN6qP7FsVjZz98X y5bev6efkv7cuT2h81624/silD7RzB30zi/ogXFop56YDzbxx+iyxeLh7jRxK2fMXlue YGLF8tfxSGSeKKHT6lsi32EcKFwXrMt/zjmQflqa/m7uDnMbEg3BO7TZRxGfzhx/IIxv UWJrYbvGv8FpW9+PFb4f1v7Tdx23b5jhfTVQEKLrPaPNCkCSktQiC9EbbDXfwOYDPOWT Tce4aCz4WeAcc4XvwxorZhGOkQYehBWGpjA8fl+dJEwrRiUDH3KW0LLHl16Apbgqh4Ex T2kQ== X-Received: by 10.194.239.202 with SMTP id vu10mr10443967wjc.49.1362054192684; Thu, 28 Feb 2013 04:23:12 -0800 (PST) Received: from saturn (217-162-217-29.dynamic.hispeed.ch. [217.162.217.29]) by mx.google.com with ESMTPS id n10sm15060286wia.0.2013.02.28.04.23.11 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 28 Feb 2013 04:23:11 -0800 (PST) Sender: Giorgos Keramidas Date: Thu, 28 Feb 2013 13:23:08 +0100 From: Giorgos Keramidas To: s m Subject: Re: backspace shows ^? in serial communication Message-ID: <20130228122307.GA15927@saturn> References: <1361950827.74767.YahooMailClassic@web142502.mail.bf1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1361950827.74767.YahooMailClassic@web142502.mail.bf1.yahoo.com> 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: Thu, 28 Feb 2013 12:23:19 -0000 On 2013-02-26 23:40, s m wrote: > hello all, > > i have problem with backspace in freebsd 8.2. when i run a serial > program to communicate via a serial port to the other system, > backspace shows ^? in opened terminal. i use termios and fcntl to > open, read, write and close serial port. i set erase and erase2 for > ttyu2(my serial port) but backspace shows ^? yet. > > any body knows what i'm doing wrong? just erase and erase2 should be > set to backspace works correctly or any other options should be set? Just run: stty erase '^?' in your serial console terminal. The backspace key sends ^? so you are seeing it because it's not mapped to 'erase'.