From: "Bart Oldeman" Subject: Re: Remote control of Dosemu Date: Sat, 19 Jul 2008 13:14:22 -0400 Message-ID: References: <20080718011954.dc5e47b5.john@jcoppens.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=FaFHjlT8A717EOYBU+yBZMT8S0/UDwmNaRMwBIeiVlg=; b=wjs+gOTKJZq2G8dFClFvRfBMAsPuFbt58qTcuauNAftcNXHxranPvopjWGQLIr3fiG fo/9eHOWCbZwnbLf/rxYJPqBF2X+gJLy3WLZBcuAIIU0kmcXsJnhQ6MNnPHBBWVc9sjN JI23YDiTZ7OF1xRYl34fDvi6SGp8aGxSrLgkY= In-Reply-To: <20080718011954.dc5e47b5.john@jcoppens.com> Content-Disposition: inline Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: John Coppens Cc: linux-msdos@vger.kernel.org 2008/7/18 John Coppens : > I need to 'remote control' an old program. I found in the FAQ that it is > possible to feed keyboard commands into an application. > > The problem is that I would need feedback from the program's screen, > while it is running. Is there any way to get to the screen output? As > usual, this apps write immediately to the scree (bypasses the BIOS). You can try running in terminal mode ("dosemu -t") and redirecting both input and output. The output will contain lots of escape characters but you might be able to fish out the output you need (even with direct video writes, as long as they are characters, not graphics). Dumb mode is most convenient but does not work with direct video writes. E.g., this gives you such a file: echo -e "exitemu\r" | dosemu -t > log You'll probably have to play a bit with pipes to get the whole thing working. Bart