From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: read a reply from the terminal Date: Sun, 15 Jul 2007 18:53:47 -0400 Message-ID: References: <200707140242.l6E2gpBC015778@oogie-boogie.ics.uci.edu> <200707150034.l6F0YYxT013883@oogie-boogie.ics.uci.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1184540045 26244 80.91.229.12 (15 Jul 2007 22:54:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2007 22:54:05 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 16 00:54:03 2007 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.50) id 1IACyW-0003zk-O3 for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2007 00:54:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IACyW-00006u-5l for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2007 18:54:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IACxW-00089Y-CJ for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:52:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IACxV-000892-MX for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:52:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IACxV-00088x-Iq for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:52:57 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IACxV-0005Vp-8j for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:52:57 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IACyJ-0003ro-9J; Sun, 15 Jul 2007 18:53:47 -0400 In-reply-to: <200707150034.l6F0YYxT013883@oogie-boogie.ics.uci.edu> (message from Dan Nicolaescu on Sat, 14 Jul 2007 17:34:34 -0700) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:74855 Archived-At: ! ;; Try to find out the type of terminal by sending a "Secondary ! ;; Device Attributes (DA)" query. ! (send-string-to-terminal "\e[>0c") ! ! ;; The reply should be of the form: \e [ > NUMBER1 ; NUMBER2 ; NUMBER3 c ! (when (equal (read-event) ?\e) ! (when (equal (read-event) 91) Is there any danger that some terminal programs won't implement that query, and that these read-event calls will hang? Perhaps the best thing to do is install the patch and see if anyone complains. + (defun xterm-turn-on-modifyOtherKeys () Please rename that to xterm-turn-on-modify-other-keys. Likewise the following function.