From owner-freebsd-questions@freebsd.org Tue Dec 29 12:32:53 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A86CA5360B for ; Tue, 29 Dec 2015 12:32:53 +0000 (UTC) (envelope-from zgreenfelder@gmail.com) Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5CD271186 for ; Tue, 29 Dec 2015 12:32:53 +0000 (UTC) (envelope-from zgreenfelder@gmail.com) Received: by mail-qk0-x231.google.com with SMTP id n135so83716842qka.2 for ; Tue, 29 Dec 2015 04:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=6zAm6KvOyLIQRPiTW5rw/b3pgj+MrXdFU76GAgydWSw=; b=XiLCDUA7Kqoi6F25kDmG8Yyz/qFbj6nRYyIKjofkqVVvM80Wd2ncZxxem9eInV9yd1 P5NTuiPc6RluuZYEBfW2V3Cjgemxszxu9glL9FqsCWnzySlF5E+Uzu80kD3swfzdxRfw Kad5cC5FKxwDZDtfR5riws0raQxh4TvZCvPlV0RGZlsct/OEkAFmsYarzirS/IbuxW3J vE5FuiGc63V6hswh8DgDiCY+i1vXTujK/FY2eBqcCfSpbJZFkvc7bY8V3vKXVg9/GrYh AwQ79PW8Md10wLglcXZIHaPZvnhIP6NReak5JL2K4LU9gWDh3X/n9GaiddVAefg9lftj TcMw== X-Received: by 10.55.48.130 with SMTP id w124mr75194760qkw.79.1451392372399; Tue, 29 Dec 2015 04:32:52 -0800 (PST) Received: from [192.168.10.31] (pool-96-241-237-72.washdc.fios.verizon.net. [96.241.237.72]) by smtp.googlemail.com with ESMTPSA id i136sm6884465qhc.42.2015.12.29.04.32.50 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Dec 2015 04:32:51 -0800 (PST) Subject: Re: delete button in console To: freebsd-questions@freebsd.org References: <56825701.30908@gmail.com> From: zep X-Enigmail-Draft-Status: N1110 Message-ID: <56827D72.4050602@gmail.com> Date: Tue, 29 Dec 2015 07:32:50 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <56825701.30908@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2015 12:32:53 -0000 On 12/29/2015 04:48 AM, Sergei G wrote: > When I ssh to a FreeBSD machine and press 'Delete' button in csh > prompt I get character '~' printed on screen. Backspace works just fine. > > I think even an actual console behaves the same way. > > Is there a way to "map" the Delete button to work appropriately? Would > it be my SSH client application or FreeBSD itself? > _______________________________________________ I would do it at the shell, perhaps at login via .files (profile, bashrc, tshrc, all depends how you have things setup), from the command line it should be: stty erase it wouldn't be a bad idea to look through the man page. alternatively you might be able to fix the terminal type that's being detected (the TERM environment variable) or hard set it to something that will work (I tend to use the vt100, it seems pretty close to universal, xterm is also often workable) or you could change the type of terminal on your originating machine which is difficult to guess from this info. -- public gpg key id: 0x5B8147CB