From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Forrest Newsgroups: gmane.emacs.help Subject: Re: `global-set-key' doesn't work in my console Date: Wed, 9 Jan 2008 17:48:13 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1905812704==" X-Trace: ger.gmane.org 1199872132 13863 80.91.229.12 (9 Jan 2008 09:48:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2008 09:48:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Peter Dyballa" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 09 10:49:14 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JCXYe-0002Rz-0k for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jan 2008 10:49:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCXYG-0007CE-IA for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jan 2008 04:48:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCXXm-00077d-C8 for help-gnu-emacs@gnu.org; Wed, 09 Jan 2008 04:48:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCXXl-00075r-3n for help-gnu-emacs@gnu.org; Wed, 09 Jan 2008 04:48:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCXXk-00075h-7P for help-gnu-emacs@gnu.org; Wed, 09 Jan 2008 04:48:16 -0500 Original-Received: from fk-out-0910.google.com ([209.85.128.189]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCXXk-0007mD-0f for help-gnu-emacs@gnu.org; Wed, 09 Jan 2008 04:48:16 -0500 Original-Received: by fk-out-0910.google.com with SMTP id 26so45120fkx.10 for ; Wed, 09 Jan 2008 01:48:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=5C+POnTCSzU2gsFt6x324LkTZuGe44B1pY9EJOD59BM=; b=QTVeW0AIW1atFj4WYmYJptNk2TT9Arv9rZeKtfmf0J9hpAsICKW3PLM6r93VH6Dz8MtgBs+t/6RNNuNfsZem4kaaClkxbX8m1Bkbn2sPpVjApPMux5d7NDUGddUdP9hOThmd0ch+FG9A32PItxBFuoPaO/cGls0hT2r+NFDdxPg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=weA7CROGN/BAuSRn7hamZ1KiVH8qQhutrh3W+iX7ziuK39B4LFsFkkypYbPbPRrtPD3kwoP7wjMWdT7V4JCLNU+5Lu8rPt0A6ErkzevBvgSH4qaHWLRbUgRZg205t4jkNgFv3XcPKU0N3QlrFcS1uVbopnP9w0CAXMpIst1wiYU= Original-Received: by 10.78.138.14 with SMTP id l14mr231092hud.57.1199872093737; Wed, 09 Jan 2008 01:48:13 -0800 (PST) Original-Received: by 10.78.134.3 with HTTP; Wed, 9 Jan 2008 01:48:13 -0800 (PST) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50600 Archived-At: --===============1905812704== Content-Type: multipart/alternative; boundary="----=_Part_54450_14043326.1199872093733" ------=_Part_54450_14043326.1199872093733 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Jan 9, 2008 3:31 AM, Peter Dyballa wrote: > > Am 08.01.2008 um 17:32 schrieb Forrest: > > > > thank you for your patience, however, do you mean that only printing > > characters and C-@ to C-_ can be processed by emacs? > > Please don't mix up GNU Emacs and your console! > > > > then what if you press F1~F12? and Home, End, Del, Ins? and Left, > > Right, Up, > > Down? > > These keys are not producing Control-anything events. Simple proof: C- > q . > > -- > Greetings > > Pete > > There are two major products that come out of Berkeley: LSD and UNIX. > We don't believe this to be a coincidence. > - Jeremy S. Anderson > > > > i wrote a program which invokes `getchar()' at startup, then i press `C-,', nothing happened, while `C-[a~z]' seem ok. so i think the terminal doesn't pass all of the C- combinations to the program, i don't know which ones are chosen, but obviousely `C-,' and `C-.' are not i tried to figure out why, then i googled much but got little helpful, it seems that `terminfo' is the point but i cannot understand what it is, the output of 'infocmp' is a mess for me :( i have changed the scrolling key-bindings to `M-n' and `M-p' and they work good in the console -- Stupid is as stupid does. ------=_Part_54450_14043326.1199872093733 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On Jan 9, 2008 3:31 AM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 08.01.2008 um 17:32 schrieb Forrest:
>
>
> > thank you for your patience, however, do you mean that only printing
> > characters and C-@ to C-_ can be processed by emacs?
>
> Please don't mix up GNU Emacs and your console!
>
>
> > then what if you press F1~F12? and Home, End, Del, Ins? and Left,
> > Right, Up,
> > Down?
>
> These keys are not producing Control-anything events. Simple proof: C-
> q <your key press>.
>
> --
> Greetings
>
> Pete
>
> There are two major products that come out of Berkeley: LSD and UNIX.
> We don't believe this to be a coincidence.
> - Jeremy S. Anderson
>
>
>
>

i wrote a program which invokes `getchar()' at startup, then i press `C-,', nothing happened, while `C-[a~z]' seem ok.
so i think the terminal doesn't pass all of the C-<KeyPress> combinations to the program, i don't know which ones are chosen, but obviousely `C-,' and `C-.' are not
i tried to figure out why, then i googled much but got little helpful, it seems that `terminfo' is the point but i cannot understand what it is, the output of 'infocmp' is a mess for me :(

i have changed the scrolling key-bindings to `M-n' and `M-p' and they work good in the console

--
Stupid is as stupid does. ------=_Part_54450_14043326.1199872093733-- --===============1905812704== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1905812704==--