Re: piping escape into dosemu

Mike McCarty <[email protected]>
Newsgroups org.kernel.vger.linux-msdos
Message-ID <[email protected]>
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!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.