From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.devel Subject: Re: the old no working alt key in linux console Date: Mon, 6 Jan 2020 08:16:26 +1100 Message-ID: References: <87k167ezmw.fsf@local.lan> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e3232d059b6b0e78" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="180096"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Emacs developers To: Harry Putnam Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 05 22:17:23 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ioDH0-000kf4-Qg for ged-emacs-devel@m.gmane.org; Sun, 05 Jan 2020 22:17:22 +0100 Original-Received: from localhost ([::1]:45356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioDGz-0007zL-9h for ged-emacs-devel@m.gmane.org; Sun, 05 Jan 2020 16:17:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60608) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioDGK-0007ZJ-DY for emacs-devel@gnu.org; Sun, 05 Jan 2020 16:16:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioDGJ-0005Ya-1q for emacs-devel@gnu.org; Sun, 05 Jan 2020 16:16:40 -0500 Original-Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]:45131) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioDGI-0005Wi-DJ for emacs-devel@gnu.org; Sun, 05 Jan 2020 16:16:38 -0500 Original-Received: by mail-ot1-x32b.google.com with SMTP id 59so68898271otp.12 for ; Sun, 05 Jan 2020 13:16:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CmGZf35pdl14Yl8WviPIWm5zVaHaNuu7IQ0Iv4q8vtw=; b=dPfi5m/jl0R3E+ADOi7tIb5vIVqzGkpv4IGe6YWmN77WBkuyQZJ/1jxXXxWmwtjR3/ mWZYphMmf/2qOrrYJVtirEN7Q2ZXiLz5EBvmtj8VmQQ70OG4RGPckblo2aKJhJMdz8IQ K59+69Oe0dyh0daDfOtjVte5mng/TY5n0+TUM8+2seq/cZKVa/4fhXL4WkLzTvPJSs34 1KXarW2TragjXbPdyB3icXQJ9jaRwajbiSvyGCAeGtd3/gKDkvffiBGrBQkwzWoyN2sG 8cZx7dSyrXrIfrcbns5fnV+6s50SFVOVGG6YkGrDsLj+l60utDHkcqBKHnu+xoo+zClw roYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CmGZf35pdl14Yl8WviPIWm5zVaHaNuu7IQ0Iv4q8vtw=; b=ldaucBFgHprsYm0hmYLu6G7aouLzB+3vQT0FDomiiT33etFGyy+0DBN2iqX/IcT/vz EhFt5uvDsYCmeyEnMVUafI7WWQsU+C45dF7xbel2XSSJSZTYqIeSpMf43ygSPwcOXGAd yECjK6yXh4TZGys4DN3k2JbldWuPSlA4PkK6nl8bGQdjdgU7Br5ZKIPYcXWaF9O9nYeC qY2vdoyjordgbF0o9wG8nMsJEfPyGnjjppZK6srkcBYoN3dWY0XYZrVf+w6bkRwTu5jL kLk6utsqOQkbfZM8y93BtGOiy3QtyWWpgepJ9mxAcHAWvjSZUTMtsFbjNRG9xzokNk3u usxg== X-Gm-Message-State: APjAAAXzoqPbwr8xvPlujIPLw09GDx43OzIqXkk6+7Ez0N4l2nta3MEv kngR4Ll/m6masf3jdEe9gqi5B/nb7Uq+Ibl2c+U= X-Google-Smtp-Source: APXvYqzkSUIwVJqXcoWVyG7S7l7GRhlcYm1HNmnP+JbcMbW/hbi7Uy5Xyj5xpVfmEAlofQKaIYEelvPlPrze+NCJJK8= X-Received: by 2002:a9d:3f61:: with SMTP id m88mr92935547otc.56.1578258997124; Sun, 05 Jan 2020 13:16:37 -0800 (PST) In-Reply-To: <87k167ezmw.fsf@local.lan> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::32b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:244005 Archived-At: --000000000000e3232d059b6b0e78 Content-Type: text/plain; charset="UTF-8" Part of the reason this can seem complicated is due to the different layers involved and some confusing terminology. Most of the time, reference to 'GNU Linux console' refers to using the virtual console i.e. no GUI, no X and not an xterm. People often refer to working in the 'linux console' when they mean working at the command line shell in an xterm. To further confuse matters, there are multiple xterm emulators, so even when they speak of xterm, there are different variants. The reason this is relevant is that the issue you are experiencing can be caused at many levels. If you are working in a real GNU linux console, then you probably need to install an appropriate keymap for the console before Emacs will see Alt+ key combinations. If on the other hand, you are actually running emacs from a shell running in an xterm emulator, then it is highly likely that the xterm emulator is not passing the Alt+ key combinations through and Emacs is simply not seeing them. things become complicated because some emulators do and some don't and they all seem to have different ways for changing the behavior. If your using an xterm emulator which honours the traditional XTerm class setting via .Xresources/.Xdefualts, you need to add XTerm*metaSendsEscape: true to the configuration and either restart your session or do an xrdb --merge to add that change into the database. Note that restart your session means restart your X session, not just the xterm you are using to run emacs. On Sun, 5 Jan 2020 at 07:28, Harry Putnam wrote: > As smart as emacs has gotten surely there is some simple technique to > get emacs to use the alt key in console mode. > > I haven't had to deal with this for a long time, and am finding piles > of serioiusly complex stuff on google about fixing it. > > Working in chroot on linux console (lubuntu) I'm having to use the > escape key to do common things like M-x M-w (copy). Is there some > simple way to control this... > > I'm on emacs 26 .. that what ubuntu has available on the repo. > Working in an xterm but when I call emacs it will only open in -nw > inside the terminal. > > > -- regards, Tim -- Tim Cross --000000000000e3232d059b6b0e78 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Part of the reason this can seem complicated is due t= o the different layers involved and some confusing terminology.
<= div>
Most of the time, reference to 'GNU Linux console= 9; refers to using the virtual console i.e. no GUI, no X and not an xterm. = People often refer to working in the 'linux console' when they mean= working at the command line shell in an xterm.=C2=A0 To further confuse ma= tters, there are multiple xterm emulators, so even when they speak of xterm= , there are different variants.

The reason th= is is relevant is that the issue you are experiencing can be caused at many= levels. If you are working in a real GNU linux console, then you probably = need to install an appropriate keymap for the console before Emacs will see= Alt+ key combinations.=C2=A0 If on the other hand, you are actually runnin= g emacs from a shell running in an xterm emulator, then it is highly likely= that the xterm emulator is not passing the Alt+ key combinations through a= nd Emacs is simply not seeing them.=C2=A0 things become complicated because= some emulators do and some don't and they all seem to have different w= ays for changing the behavior.

If your using an xt= erm emulator which honours the traditional XTerm class setting via .Xresour= ces/.Xdefualts, you need to add
XTerm*me=
taSendsEscape: true

to the configuration and=
 either restart your session or do an xrdb --merge to add that change into =
the database. 

Note that restart your sessio=
n means restart your X session, not just the xterm you are using to run ema=
cs. 

On Sun, 5 Jan 2020 at 07:28, Harry Putnam = <reader@newsguy.= com> wrote:
As smart as emacs has gotten surely there is some simple technique to get emacs to use the alt key in console mode.

I haven't had to deal with this for a long time, and am finding piles of serioiusly complex stuff on google about fixing it.

Working in chroot on linux console (lubuntu) I'm having to use the
escape key to do common things like M-x M-w (copy).=C2=A0 Is there some
simple way to control this...

I'm on emacs 26 .. that what ubuntu has available on the repo.
Working in an xterm but when I call emacs it will only open in -nw
inside the terminal.




--
regards,

Tim

--
Tim Cross

--000000000000e3232d059b6b0e78--