From owner-freebsd-current@FreeBSD.ORG Sat Nov 13 13:05:44 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 BF93B106564A for ; Sat, 13 Nov 2010 13:05:44 +0000 (UTC) (envelope-from crockabiscuit@yahoo.com) Received: from nm1-vm0.bullet.mail.ne1.yahoo.com (nm1-vm0.bullet.mail.ne1.yahoo.com [98.138.91.74]) by mx1.freebsd.org (Postfix) with SMTP id 831758FC08 for ; Sat, 13 Nov 2010 13:05:44 +0000 (UTC) Received: from [98.138.90.48] by nm1.bullet.mail.ne1.yahoo.com with NNFMP; 13 Nov 2010 12:52:10 -0000 Received: from [98.138.88.234] by tm1.bullet.mail.ne1.yahoo.com with NNFMP; 13 Nov 2010 12:52:10 -0000 Received: from [127.0.0.1] by omp1034.mail.ne1.yahoo.com with NNFMP; 13 Nov 2010 12:52:10 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 716286.94184.bm@omp1034.mail.ne1.yahoo.com Received: (qmail 81324 invoked by uid 60001); 13 Nov 2010 12:52:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1289652730; bh=fOqNqq0vFoXOS6Pgfg7oZ7qdKSWBbaXB6bfbz8neHHg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=5jS72pPZnywaIeZNwnkQKyikiLsFCPQA78bkc9Al/uN2zJL0ilwYJlhIr0sEVuyksy1FWYzUFM0Rryx5xQ709lT7zfJhJGe0EsjfLwfcK+MPfFLvi8RA965En1F4JBtlNMDH6NJ8SL+y9d2e0RRTmp+6/ytUkq44XzeAMQJy5Ac= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=r+bMn2HJBAfViClpJch61hXnL0jqxOFMiE+f/OiJUZidvMlhVF3VxWxPjaYsGDHbofgxBYDK55RPS7mgc4fRWHpLSddpGcbq+jVKE7SpfNSWlilhy/2P3murAU6N+qutXbsCbaF7Re8Qcj9M84UuQgYwndcLcI9Y/7ogygEahYU=; Message-ID: <512851.76377.qm@web120315.mail.ne1.yahoo.com> X-YMail-OSG: VJk0BZYVM1l1RSNDaYTeZpGAgootQopG_isl30.feZgQ8hO Y06zKj2KCQo0erj1Xhs6cWgHkL5lBGM1kOLMh69j.e1mYJeuHIBx1Ammt7R. YYAawknqw65RAnhmZBJF2E_94sDDgLDvt7LWqEx5awDnGsymOfXFiVC1eah1 I8I7jm74sdwT3k7337P1UqWdZCjzYt8mdSwmw Received: from [180.68.85.212] by web120315.mail.ne1.yahoo.com via HTTP; Sat, 13 Nov 2010 04:52:10 PST X-Mailer: YahooMailClassic/11.4.9 YahooMailWebService/0.8.107.285259 Date: Sat, 13 Nov 2010 04:52:10 -0800 (PST) From: crocket To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Sat, 13 Nov 2010 13:39:04 +0000 Subject: 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 13:05:44 -0000 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. 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.