www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=1.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS,URI_BLOGSPOT |
X-Spam-Check-By: | sourceware.org |
From: | Barry Kelly <bkelly DOT ie AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: DOS programs under "screen" |
Date: | Tue, 21 Apr 2009 19:10:54 +0100 |
Message-ID: | <q4uru498ltbhiqfl8vt877lk0va00pk3ih@4ax.com> |
References: | <C2163734F5AC6346B64F4DD53C7F7A2803155C5A AT rxsprimary DOT accessrxs DOT com> <okjpu495u4a7ad3cupjt10nd4iv53pt2ni AT 4ax DOT com> |
In-Reply-To: | <okjpu495u4a7ad3cupjt10nd4iv53pt2ni@4ax.com> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Andrew Schulman wrote: > > In general, non-cygwin programs can't be run reliably inside of an > > application that uses cygwin PTYs, including xterm, rxvt, and screen. >=20 > Maybe someone knows a solution to this, but I don't. Although I maintain= screen > for Cygwin, I know almost nothing of the details of how terminals work. = I could > imagine some kind of a DOS-to-Unix terminal wrapper program, but I've nev= er seen > one and have no idea how it would work. Windows implements console mode as a client-server protocol between the executable (ntvdm.exe for DOS apps) and winsrv.dll (hosted in csrss.exe), but the protocol isn't easily hookable. I guess one would have to hijack the console APIs, perhaps by stepping into the application using debugging APIs and overwriting the DLL imports, but it would be pretty painful. I don't know how DOS programs that use graphics modes (in fullscreen) are implemented, though these must be rare now given that Vista no longer has a full-screen mode. -- Barry --=20 http://barrkel.blogspot.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |