From owner-freebsd-questions@freebsd.org Tue Nov 7 00:38:30 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 E4435E6AA56 for ; Tue, 7 Nov 2017 00:38:30 +0000 (UTC) (envelope-from non.euc.geo.1854@gmail.com) Received: from mail-pf0-x236.google.com (mail-pf0-x236.google.com [IPv6:2607:f8b0:400e:c00::236]) (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 A3B1968947 for ; Tue, 7 Nov 2017 00:38:30 +0000 (UTC) (envelope-from non.euc.geo.1854@gmail.com) Received: by mail-pf0-x236.google.com with SMTP id b85so8996486pfj.13 for ; Mon, 06 Nov 2017 16:38:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=wDiZ0DsEBOmluNKQ39kckynrAKS36MfgdPOPy3t3v9k=; b=ae6oDAZH09LtvdZjaBZnaRatFTTvywmBj4uO3ZUMXOLe9q7nNRusT8GdpevhEpOYmR rdFILMOKdAw9mlrVaXUpRlL8nywWZ9vjsCXtfN+Xr/hz4ClYCfMwd7NKzZGWLpcZwVH/ SY0tkrC7Os/LIOgZd8gZeWdhb8axcOZ6RUMidFd7RlPaz8+KkLIObLs4CyDmNMAfAU8G qKbtSOO7QIuZWtN/5acR/zcOcOP5/N0Lg/XE/YP/mgPJeypmrgqGGGNUe6KWmAhJ4tSV dYCvdNSMILM6V5TNB5/170wP87ksCS++MCcKqzUQnQsX6VIfQ39ZgmPaHHLPblvC5C08 vVvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id :disposition-notification-to:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=wDiZ0DsEBOmluNKQ39kckynrAKS36MfgdPOPy3t3v9k=; b=srn+9siGITU50W2f+q+wyi77gZYqVApnad9IB/AvdrcHPCEfS0LZ/yYFY8VEgkGxy8 TEAvrQX5VYGiHpUj8/K4S+IW8FeauvtNfOOwSkEtEGpnqVbH/k0MMn1PGMUltlztsAE1 FrcETTJGvkC1VMxDifF4TD7lL+BNbVx1cAMNlrNbkOdMFYyxGBYpVxm3C3uoNk8wBbDI QBvu/0WUqgYUo1QU3s2IMlHvUmAGARiPO2VtkDzCc2HA0GU1nAJ4QCwN8rJIRnZpMKbQ Du7x229//AlkYLLNN35+UJDe+NMn+OP1wm+poLwuziV3rsfYpweOQ2CC38JZhXY5DQg/ QNig== X-Gm-Message-State: AMCzsaXbxaoPLQ5zcnErBJghV0VO/ZYAmBN4vrJ0cVLgLJvEkg3KL1FQ cpiD5zbrtEDgysYFeUXb84G+cA== X-Google-Smtp-Source: ABhQp+R+jmmMeId3tS6w47MXuaEiwOfORYwvbfijyJAw5v3A7qTSepsVkdBvEYwNeNzeFLN/r2WRfQ== X-Received: by 10.99.7.70 with SMTP id 67mr17275380pgh.238.1510015109890; Mon, 06 Nov 2017 16:38:29 -0800 (PST) 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 w9sm3696pfk.16.2017.11.06.16.38.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 16:38:29 -0800 (PST) Subject: Re: freebsd-questions Digest, Vol 700, Issue 6 To: Polytropon Cc: freebsd-questions@freebsd.org References: <977cc6e1-219b-8213-4790-1f28cbaebb67@gmail.com> <20171106025959.231c2772.freebsd@edvax.de> From: "J.B." Message-ID: Date: Mon, 6 Nov 2017 16:38:28 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171106025959.231c2772.freebsd@edvax.de> 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: Tue, 07 Nov 2017 00:38:31 -0000 On 11/05/2017 05:59 PM, Polytropon wrote: > On Sun, 5 Nov 2017 17:16:38 -0800, J.B. wrote: >>> Message: 4 Date: Fri, 3 Nov 2017 10:44:04 -0700 From: "J.B." >>> To: freebsd-questions@freebsd.org >>> Subject: VT_ALT_TO_ESC_HACK for sc (syscons) Message-ID: >>> <184bbd63-e635-1d52-19a6-3e9c1a414e40@gmail.com> Content-Type: >>> text/plain; charset=utf-8; format=flowed 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. >> Nobody knows how to implement that hack or replicate its effect on sc? > As far as I know, sc does not support this kind of capturing key > events. A notable exception is Alt+PF1, Alt+PF2 and so on for > switching the virtual terminals which is "handled interally" (by > the console driver itself) and won't be available to text mode > programs. > > Maybe /usr/src/sys/dev/syscons/syscons.c reveals the magic, which > probably involves ioctl()... > > > >> Then what about getting vt's display to look like sc? > Not possible, as it seems. This has been discussed recently. There > are too many "moving parts" within vt and in the surrounding tools. > Essentially, text mode is dead. > I'm sad to hear that, P. -- text mode is my favorite mode :( Thanks for the info.