all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: emacs-devel@gnu.org
Subject: "dumb" terminal of daemon intefering with backspace/del keys
Date: Sun, 13 Feb 2011 22:09:53 -0800	[thread overview]
Message-ID: <xeia7hd3405q.fsf@kobe.laptop> (raw)

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?




             reply	other threads:[~2011-02-14  6:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-14  6:09 Giorgos Keramidas [this message]
2011-02-14  8:57 ` "dumb" terminal of daemon intefering with backspace/del keys Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xeia7hd3405q.fsf@kobe.laptop \
    --to=keramida@ceid.upatras.gr \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.