From owner-freebsd-bugs@FreeBSD.ORG Sun Nov 21 16:00:22 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D811210656B1 for ; Sun, 21 Nov 2010 16:00:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B26EF8FC12 for ; Sun, 21 Nov 2010 16:00:22 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oALG0MI2026363 for ; Sun, 21 Nov 2010 16:00:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oALG0MiL026342; Sun, 21 Nov 2010 16:00:22 GMT (envelope-from gnats) Date: Sun, 21 Nov 2010 16:00:22 GMT Message-Id: <201011211600.oALG0MiL026342@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jilles Tjoelker Cc: Subject: Re: kern/152146: [syscons] Virtual consoles ignore kb and kD termcap entries. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jilles Tjoelker List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2010 16:00:22 -0000 The following reply was made to PR kern/152146; it has been noted by GNATS. From: Jilles Tjoelker To: bug-followup@FreeBSD.org, crockabiscuit@yahoo.com Cc: Subject: Re: kern/152146: [syscons] Virtual consoles ignore kb and kD termcap entries. Date: Sun, 21 Nov 2010 16:54:32 +0100 The general philosophy of termcap/terminfo is that it describes what the terminal does. It is used by applications to find how to interact with the terminal. In this model, the terminal itself does not interact with termcap/terminfo. However, whatever is starting the application that is using a terminal should try to set proper TERM and/or TERMCAP variables. In case of a serial or dialup line, the administrator or user will have to set a proper value in /etc/ttys. For syscons, this could be done better but instead the same approach is used; however, the value in the default /etc/ttys is usually good enough. In case of xterm, it passes TERM and TERMCAP variables matching its behaviour, and has lots of options to configure it. Most other graphical terminal emulators assume TERM=xterm is good enough. I think modifying syscons to use termcap/terminfo would be confusing and unnecessary. I think we can choose one good default Backspace/Delete way and keep the current options to change it. -- Jilles Tjoelker