From owner-freebsd-current@FreeBSD.ORG Sat Nov 13 16:55:07 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36D26106564A for ; Sat, 13 Nov 2010 16:55:07 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id B0D318FC15 for ; Sat, 13 Nov 2010 16:55:06 +0000 (UTC) Received: by bwz2 with SMTP id 2so3999670bwz.13 for ; Sat, 13 Nov 2010 08:55:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=WGigoBuSeCjNIcikU4lLmyno6n0NOCH0x22L3ec2qI4=; b=x+9jelNQ/sc61Org0jBWdO2btDSOEGXgV3+VWTYPZlyObuX/pDU5JaYM/3/rdKmW2R evv9QupNpl9R64uqIsOpR4hKpQmAsadDrCY+O+MRqv7Z0K4O4ngWhHFiDRYlnxZLuOGo EwfrcuJ3TM/U0riRyBS7EAumoL2t/iTa/jq6E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=g13FOOP2uME1nRNodgBOsAhr79o2UWd6R221fTTjYs7O2f383gg70yMYD4LZgnHlY8 UkGEJFjgFpn9oy2nYSyacMLptxa0K5qCZYIy4DMTkpG79DDLgdIgmIhVHL+VSQQB15hu m2u3AE2AEoeXPpTLqxVJqY4E7Ggw1cW0XNiNQ= Received: by 10.204.52.7 with SMTP id f7mr4121540bkg.190.1289667305533; Sat, 13 Nov 2010 08:55:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.123.131 with HTTP; Sat, 13 Nov 2010 08:54:45 -0800 (PST) In-Reply-To: <512851.76377.qm@web120315.mail.ne1.yahoo.com> References: <512851.76377.qm@web120315.mail.ne1.yahoo.com> From: Eir Nym Date: Sat, 13 Nov 2010 19:54:45 +0300 Message-ID: To: crocket Content-Type: text/plain; charset=UTF-8 Cc: freebsd-current@freebsd.org Subject: Re: Keymaps in X11 and consoles should be the same with TEKEN_XTERM in the kernel. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Nov 2010 16:55:07 -0000 On 13 November 2010 15:52, crocket wrote: > TEKEN_XTERM turns on xterm mode. > I compiled a kernel with TEKEN_XTERM, and changed cons25 to xterm in /etc/ttys. > > When I executed vim on a console, the keyboard acted weirdly. > After setting TERM back to cons25 again, vim acted normally again on consoles. > I could assign xterm console characters in /etc/termcap to fkeys by writing keychanges="fkeycode consolecharacter" in /etc/rc.conf, but it is just a quick hack, and it is just a solution for me but not for everyone. > Oh... you can do `vidcontrol -T xterm` and your keybindings will be correct. > I would be glad keymaps in X11 and consoles became the same with TEKEN_XTERM in the kernel. > If the keymaps in consoles and X11 are the same, 99% of configurations I needed to make in applications will be unneeded. It will benefit everyone. > > As Ed said some days before, you should use TEKEN_XTERM _or_ TEKEN_CONS25 in your kernel.