From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike McCarty Subject: Re: piping escape into dosemu Date: Thu, 11 Mar 2010 00:55:40 -0600 Message-ID: <4B9893EC.70401@sbcglobal.net> References: <4B918324.6000308@sbcglobal.net> <4B94B24E.4070804@sbcglobal.net> <4B958348.4050802@sbcglobal.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: FreeDOS TW wrote: [...] > And yes, now something like > > dosemu -input 'thedosapp.exe\r\^[' > > indeed works, many thanks for pointing me to this! Unfortunately, for > some reason this only works with the -input switch, but not when > piping, like > > echo "keystroke \^[" > dospipe > > (where ^[ is what results from pressing ESC). It doesn't work through > dosctrl or Ruby either. I wonder why this is supported by the -input > switch, but not by the keystroke command... To get back to the use of the echo command... $ echo -n "\033" | wc 0 1 4 $ echo -ne "\033" | wc 0 0 1 This looks like a singe ESC character got sent to the output, to me. In fact... $ echo -ne "\033" | od -x 0000000 001b 0000001 So, od got exactly one character, which was an ESC. Mike -- p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that!