Re: DOS programs under screen

2009-05-01 Thread Andy Koppe
2009/4/21 Barry Kelly: 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

Re: DOS programs under screen

2009-05-01 Thread Christopher Faylor
On Fri, May 01, 2009 at 08:26:31PM +0100, Andy Koppe wrote: 2009/4/21 Barry Kelly: 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

Re: DOS programs under screen

2009-05-01 Thread Barry Kelly
Andy Koppe wrote: 2009/4/21 Barry Kelly: 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

Re: DOS programs under screen

2009-05-01 Thread Andy Koppe
2009/5/1 Barry Kelly: ReadConsoleOutput() on the hidden console only gives you the cooked output in terms of character cell contents and attributes, whereas the raw output as it came from the console app would need to be sent to the pty to be displayed by the likes of screen. As far as I can

Re: DOS programs under screen

2009-04-21 Thread Andrew Schulman
I could imagine some kind of a DOS-to-Unix terminal wrapper program, but I've never seen one and have no idea how it would work. ...and if one was possible why wouldn't the techniques that it incorporates be part of cygwin? Laziness on your part? hahahahahaha -- Unsubscribe info:

Re: DOS programs under screen

2009-04-21 Thread Christopher Faylor
On Tue, Apr 21, 2009 at 06:39:27AM -0400, Andrew Schulman wrote: I could imagine some kind of a DOS-to-Unix terminal wrapper program, but I've never seen one and have no idea how it would work. ...and if one was possible why wouldn't the techniques that it incorporates be part of cygwin?

Re: DOS programs under screen

2009-04-21 Thread Andy Koppe
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 never seen one and have no idea how it would work. It

Re: DOS programs under screen

2009-04-21 Thread Barry Kelly
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. Maybe someone knows a solution to this, but I don't. Although I maintain screen for Cygwin, I know almost nothing of the

Re: DOS programs under screen

2009-04-21 Thread Christopher Faylor
On Tue, Apr 21, 2009 at 06:46:05PM +0100, Andy Koppe wrote: Andrew Schulman wrote: 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

Re: DOS programs under screen

2009-04-20 Thread Andrew Schulman
James Calfee jcal...@xxx.xxx wrote on 04/20/2009 02:02:33 PM: Hi Andrew. I have change request for screen.exe under cygwin. I did not get any response from the cygwin mailing list. I guess the request is a bit too specific. Do you know where I might direct the request? In case your

Re: DOS programs under screen

2009-04-20 Thread Christopher Faylor
On Mon, Apr 20, 2009 at 03:56:16PM -0400, Andrew Schulman wrote: James Calfee jcal...@xxx.xxx wrote on 04/20/2009 02:02:33 PM: Hi Andrew. I have change request for screen.exe under cygwin. I did not get any response from the cygwin mailing list. I guess the request is a bit too specific.

DOS programs under screen

2009-04-08 Thread James Calfee
We need to run a DOS program as a service. The program provides valuable information in the DOS window in an interactive ASCII color interface but does not provide any method to connect to this interface if started as a service. One solution is to run this program under screen. Unfortunately,

Re: DOS programs under screen

2009-04-08 Thread William Sutton
I suppose you could always use the 'clear' command instead of cls. If you need cls specifically, you can alias it to clear. From the edit point of view, is this something you could accomplish with another command-line editor (say vim)? William Sutton On Wed, 8 Apr 2009, James Calfee wrote:

RE: DOS programs under screen

2009-04-08 Thread James Calfee
Sutton [mailto:will...@trilug.org] Sent: Wednesday, April 08, 2009 2:29 PM To: James Calfee Cc: cygwin@cygwin.com; InformationTechnology Subject: Re: DOS programs under screen I suppose you could always use the 'clear' command instead of cls. If you need cls specifically, you can alias it to clear

Re: DOS programs under screen

2009-04-08 Thread Matt Wozniski
] http://www.cygwin.com/acronyms/#PCYMTNQREAIYR Sent: Wednesday, April 08, 2009 2:29 PM To: James Calfee Cc: x...@xxx.xxx; InformationTechnology Subject: Re: DOS programs under screen [ snip http://www.cygwin.com/acronyms/#TOFU ] Disclaimer: This message (including attachments