From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: "dumb" terminal of daemon intefering with backspace/del keys Date: Sun, 13 Feb 2011 22:09:53 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297663855 17226 80.91.229.12 (14 Feb 2011 06:10:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Feb 2011 06:10:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 14 07:10:49 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pore1-0007go-BF for ged-emacs-devel@m.gmane.org; Mon, 14 Feb 2011 07:10:45 +0100 Original-Received: from localhost ([127.0.0.1]:33861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pore0-0001T8-PQ for ged-emacs-devel@m.gmane.org; Mon, 14 Feb 2011 01:10:44 -0500 Original-Received: from [140.186.70.92] (port=48232 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pordr-0001SS-M1 for emacs-devel@gnu.org; Mon, 14 Feb 2011 01:10:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pordq-0007aR-FI for emacs-devel@gnu.org; Mon, 14 Feb 2011 01:10:35 -0500 Original-Received: from igloo.linux.gr ([62.1.205.36]:40068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pordq-0007Ym-0b for emacs-devel@gnu.org; Mon, 14 Feb 2011 01:10:34 -0500 X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.9, required 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90) X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-ID: p1E6A1xK026326 Original-Received: from gkeramidas-glaptop.linux.gr (207.47.25.82.static.nextweb.net [207.47.25.82]) (authenticated bits=0) by igloo.linux.gr (8.14.3/8.14.3/Debian-9.4) with ESMTP id p1E6A1xK026326 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 14 Feb 2011 08:10:16 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 62.1.205.36 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135989 Archived-At: Hi all, I am trying to run an Emacs daemon process in the background, but it breaks backspace / DEL key handling in amusing ways. I start by launching the daemon: gkeramidas:~$ echo $TERM xterm-256color gkeramidas:~$ utf-emacs --daemon ("/opt/emacs/bin/emacs") Ido mode disabled Loading vc... Loading vc...done Starting Emacs daemon. But then in new text frames created by the daemon process TERM is set to the "dumb" terminal type. gkeramidas:~$ emacsclient -e '(getenv "TERM")' "dumb" This means that instead of `DEL' my laptop's backspace key generates `C-d' in new text frames. So instead of typing backspace to invoke `delete-backward-char', I now get `delete-char' from the keyboard's backspace key. Is there any way to reconfigure the terminal type to "xterm-256color" when new text frames are created? More importantly, if this is not possible, is there a way to avoid the dump vs. xterm differences when using daemon mode?