From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: multi-tty breakage on MS-Windows Date: Sat, 22 Sep 2007 15:00:47 +0200 Message-ID: References: <200709081532.l88FWcUu014489@oogie-boogie.ics.uci.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1190466074 32450 80.91.229.12 (22 Sep 2007 13:01:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2007 13:01:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 22 15:01:08 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 1IZ4bc-0003yb-6E for ged-emacs-devel@m.gmane.org; Sat, 22 Sep 2007 15:01:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZ4bZ-0000k0-Nb for ged-emacs-devel@m.gmane.org; Sat, 22 Sep 2007 09:01:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZ4bQ-0000j0-T1 for emacs-devel@gnu.org; Sat, 22 Sep 2007 09:00:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZ4bP-0000hr-D5 for emacs-devel@gnu.org; Sat, 22 Sep 2007 09:00:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZ4bM-0000ha-P3 for emacs-devel@gnu.org; Sat, 22 Sep 2007 09:00:53 -0400 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IZ4bM-0005ck-76 for emacs-devel@gnu.org; Sat, 22 Sep 2007 09:00:52 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-122-46.inter.net.il [84.229.122.46]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id IYF70510 (AUTH halo1); Sat, 22 Sep 2007 15:00:35 +0200 (IST) In-reply-to: (message from Eli Zaretskii on Sat, 08 Sep 2007 19:29:45 +0300) X-Detected-Kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:79495 Archived-At: > Date: Sat, 08 Sep 2007 19:29:45 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > > . "emacs -nw" crashes on startup; backtrace attached below. > > > > This is a known problem, Jason Rumney stated that this does not work > > in his message announcing that multi-tty was ported to Windows. > > Can you please help fixing it? > > I will, if I find enough time. I fixed a few problems, and now "emacs -nw" starts on Windows. Please test. Some problems that are still to be fixed, before "emacs -nw" can be considered operable on Windows: o Colors don't work. Details: . Emacs knows it has 16 colors, but draws only white on black and reverse video. (Try "M-x list-colors-display".) . Mode line and menu bar are not in reverse video, as they should be. . Under a debugger, each face returns the value 7 (white on black) as character attribute from w32_face_attributes. o Ctrl-C keystrokes are swallowed and don't get to Emacs input queue. For example, "C-x C-c" will not kill Emacs. o The screen buffer dimensions are not restored by Emacs when it exits. You will see that the scroll bar of the DOS box is not restored, for example. (Use the Properties of the DOS box to restore manually.) After these problems are solved, I think we need to decide whether it makes sense to use several tty's on Windows. I know that one use case for the multi-tty Emacs on Posix platforms is to connect to the same Emacs session remotely; I think this use case doesn't make much sense on MS-Windows (but if I'm wrong, please correct me). Are there other use cases? if so, what are they? If we find legitimate use cases for multi-tty on MS-Windows, more coding will be needed to provide the Windows equivalents of opening a non-default tty device, emulate suspension, etc.