From owner-freebsd-questions@freebsd.org Thu Oct 20 07:49:25 2016 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 ABB34C19AEE for ; Thu, 20 Oct 2016 07:49:25 +0000 (UTC) (envelope-from david.guyot@europecamions-interactive.com) Received: from mail-qk0-x230.google.com (mail-qk0-x230.google.com [IPv6:2607:f8b0:400d:c09::230]) (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 6E2A91FB for ; Thu, 20 Oct 2016 07:49:25 +0000 (UTC) (envelope-from david.guyot@europecamions-interactive.com) Received: by mail-qk0-x230.google.com with SMTP id o68so77788796qkf.3 for ; Thu, 20 Oct 2016 00:49:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=europecamions-interactive.com; s=google.europecamions-interactive.com; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=f6M0LoinkK1/apgOY5vHqgg8QM8vWrPDuePFhTgQ4IQ=; b=WHCbTcwtj25fGpvJacm2iGYXjCIi4VWepVzagZ5OWpwCZf5CtfgAJj3qXObP+KqB+6 mhGIALiTxz4qrpd+n5o2OeUpFh/fPRD1WW2LniJt7jjU/YYc8eOyUYOxV0vVzngAavlI 9Z6hA+2bHdzIiJPHFzPNyrx7/eLWcYUdufbqM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=f6M0LoinkK1/apgOY5vHqgg8QM8vWrPDuePFhTgQ4IQ=; b=bNQ2j6jMtXnzGpP3rIL/c0z76LNLKEpyrry3GhwdByfGmASFDDXdIJVrftrvcb0LaN BaAlklkH8stkj2QKxVnJu/jZA8aNz6xJUxLGl8Vnho2DDwtMNK3RKoKFJBKfi3uLjBTL mWo2U992ycyrbUZwENHLt0P/8qX686X26iJVvf6lqLBMWrsRjmJz4QBkKw9fgZPfLDIt c8k2iXcwTFTlaFgphVQyelu3TsYulGTk6ALIBbChFk6yJ4PK/vqG0gxE6DoHKjdrKGS+ HY6AO6SC0o+lEw3QYo07ezt58DbQ0ks5XYrRYm98rL9dfGxhY0Odttj8lhqI+Lzk0q1c Ofdw== X-Gm-Message-State: AA6/9RnebjW43bp+Be/3O8F0Y+cZDV9NBtcEitzD/aut8xCsZbzxMYiw+tJmgkogVgj9iQ== X-Received: by 10.194.85.51 with SMTP id e19mr7462440wjz.59.1476949764238; Thu, 20 Oct 2016 00:49:24 -0700 (PDT) Received: from [192.168.0.162] ([88.202.70.61]) by smtp.gmail.com with ESMTPSA id uq6sm76469569wjc.37.2016.10.20.00.49.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Oct 2016 00:49:23 -0700 (PDT) Message-ID: <1476949753.9540.9.camel@europecamions-interactive.com> Subject: Re: fish: arrows and backspace keys no longer supported after =?ISO-8859-1?Q?11=2E0-RELEASE=A0upgrade?= From: David Guyot To: Polytropon Cc: freebsd-questions@freebsd.org Date: Thu, 20 Oct 2016 09:49:13 +0200 In-Reply-To: <20161019183025.ad55425f.freebsd@edvax.de> References: <1476877902.1196.27.camel@europecamions-interactive.com> <20161019183025.ad55425f.freebsd@edvax.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2016 07:49:25 -0000 On mer., 2016-10-19 at 18:30 +0200, Polytropon wrote: > On Wed, 19 Oct 2016 13:51:42 +0200, David Guyot wrote: > > > > Hello, there. > > > > I was using a 10.3-RELEASE FreeBSD with the packaged fish 2.2.0 > > installed, without customization, and upgraded my system and > > packages > > to 11.0-RELEASE. fish were upgraded to 2.3.1, and I lost the > > previous > > default prompt, but that doesn't really matter. My main problem is > > that > > it lost support of arrows and backspace keys: whenever I try to use > > them, I get this: > > # Up arrow for autocompletion with the last command > > penegal@Aethelthryth-FreeBSD~/usr/home/penegal> [A > > # Right arrow for autocompletion with the last similar command, > > then > > # left arrow to correct input > > penegal@Aethelthryth-FreeBSD~/usr/home/penegal> ls[C[D > What you see there is the escape code sequence of those > keys, without the actual escape happening. > > The code ^[[A (read: ^[ = escape, [ = left bracket, A) > is the cursor up key; ^[[C and ^[[D are right and left > respectively. > > There has been a regression recently regarding sh not > interpreting escape characters anymore, caused by libedit: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211360 > > It could be possible that you're seeing something related > to the same origin. Well, that seems related, but I can't be sure of it, as I'm not accustomed to such a technical level. I tested arrows with /bin/sh as a shell, but it correctly processed the inputs. > What does > > $ stty -a > > show for those control character? I'm not sure of what I'm looking for, so here comes the full output: penegal@Aethelthryth-FreeBSD~/usr/home/penegal> stty -a speed 9600 baud; 69 rows; 272 columns; lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip icrnl -inlcr -igncr -ixon -ixoff ixany imaxbel -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -ocrnl tab0 -onocr -onlret cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = ; eol2 = ; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W; > > I suspect a configuration that broke upon the upgrade, but am > > unsure > > about it, and the fish changelog doen't seem to have anything > > related, > > but I'm not accustomed to its internals and can have missed it. > > Does > > somebody have suggestions? > Read the bug report mentioned above. Does this sound reasonable? > Maybe you should also file a bug report or add something to the > existing one. I'll report my problem on this bug report; if I'm told it's unrelated, then I'll assume this is a new bug. In the case this is a different bug, should I contact the package mainainer, or open a FreeBSD bug? (Newbie question, but I'm a newbie, so I prefer to ask.) Thank you, Polytropon. P.-S. : also, thanks, James Keenan. -- David Guyot Administrateur système, réseau et télécom / Sysadmin Europe Camions Interactive / Stockway Moulin Collot F-88500 Ambacourt 03 29 30 47 85