From owner-freebsd-questions@freebsd.org Fri Nov 3 17:44:07 2017 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 0FB51E5739F for ; Fri, 3 Nov 2017 17:44:07 +0000 (UTC) (envelope-from non.euc.geo.1854@gmail.com) Received: from mail-pf0-x233.google.com (mail-pf0-x233.google.com [IPv6:2607:f8b0:400e:c00::233]) (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 D07686D0E2 for ; Fri, 3 Nov 2017 17:44:06 +0000 (UTC) (envelope-from non.euc.geo.1854@gmail.com) Received: by mail-pf0-x233.google.com with SMTP id n14so2697543pfh.8 for ; Fri, 03 Nov 2017 10:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:disposition-notification-to:date :user-agent:mime-version:content-transfer-encoding:content-language; bh=0WuA0v9GhxwPQX+80jifr24xt5FgQK6mBfXmsQtwaiM=; b=lz5WD7foPeNKJj5obMcAwL+ZLBpXLDhBXPTNxMVSOZGMUbgNa8Y1thFruJILlSFEJ2 oGKHSIymbqcJnLgDmiuCGl+bFK+3Xy+LZIfxHa/P7KvUtpEj6SpjvDv04sfz8CYa4q7h 4xkOABRG+gTn1HRiLTw/82RlMX++ehMYhUiCUDsCb+0tS3b49GhU8esCnWjkpErCmPxh Y2D0pFtJVZhP7Jh8YFxw55pMrBEyH64jxtu5RnVhl9bXoLMcsQ5p9r0UNKj9E15iWucX iv+yGYF1A2o4J0nXHPlHtTphLOluI8/yVcVSjpT1TTztgVDam1TacuTC4fMMLcEyxd5s 6o9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id :disposition-notification-to:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=0WuA0v9GhxwPQX+80jifr24xt5FgQK6mBfXmsQtwaiM=; b=Z0sWhh75w7tZBO2mftAeBUZrM4BycdoHhwlWj2rHaXC4/fepXAwoJOPdXS4KQd17eF iDRx3klUvE7Xh7BNJ7UPldrRtzxilCxbSKGZtKF/WADALO0hwOdRI8q3OrwfSq6bCozv vgMh2NJHPjVoa3zrfbfDv9SGujW56CTus5pt4tmjJOQYMTjb01SaGSlOqijbppOH0KaH qCXaMtsdjhobwfyv/4zahtsMPfZADbF3I6NtYLe1X9HC+XHWPMil1PC191anlK6lDUpQ PNuE9w43+IY3nl7NsQNaJHLHMgPwt6qehOy/LcoGJsqjnX55hhKehhZSSpPk1/KsPwsa 4xhg== X-Gm-Message-State: AMCzsaUp0b4JxxNI/5vr3+vtHOHo+UJjME9+9DWh6kAiAp5DrxkgAsIa 4m0vhMU/Z/+hNbaLdpHHxTJxDw== X-Google-Smtp-Source: ABhQp+R+ZbPwTSt35pe4r+ISsW46OXk3POT/m1Wdu9Jo2FYb/nclCu1Odl6e87dXgFqQyLo0XddfuQ== X-Received: by 10.84.128.75 with SMTP id 69mr7567094pla.151.1509731046139; Fri, 03 Nov 2017 10:44:06 -0700 (PDT) Received: from [192.168.1.7] (47-33-76-3.dhcp.rvsd.ca.charter.com. [47.33.76.3]) by smtp.googlemail.com with ESMTPSA id p12sm10210508pgn.90.2017.11.03.10.44.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Nov 2017 10:44:05 -0700 (PDT) To: freebsd-questions@freebsd.org From: "J.B." Subject: VT_ALT_TO_ESC_HACK for sc (syscons) Message-ID: <184bbd63-e635-1d52-19a6-3e9c1a414e40@gmail.com> Date: Fri, 3 Nov 2017 10:44:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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: Fri, 03 Nov 2017 17:44:07 -0000 FreeBSD 11.1-RELEASE is using vt as the default console driver, and it contains a hack which maps an ESC sequence to the Alt key on your keyboard. FreeBSD 10.3-RELEASE uses sc as the default driver, and the Alt keys don't register a keystroke for most cases. On vt, Alt-b, Alt-f, Alt-Backspace, etc., behave as they do when logged in over SSH using a bash shell (with its default emacs bindings): move the cursor backwards one word, forwards one word, delete word to the right of the cursor, etc. How can that effect be replicated on sc? I tried a new keymap using kbdcontrol, but there's no way to map key combinations onto the alt-b, alt-f, alt-bs, etc., sequences -- the mapfile only allows for single keystrokes. I know I can set vt as the console driver on 10.3-RELEASE, but the font in vt is so ugly I want to gouge other peoples' eyes out to save them from the horrors of seeing it. Adjusting the screen resolution only helped a tiny bit -- not enough to save peoples' eyes from my angry fingers. Tried the sample fonts inside /usr/share/vt/fonts/ already.