lists.zerezo.com



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

***BOGO*** Re: [Mingw-users] ANSI escape sequences problem



Alright,

My application use stdin, stderr and stdout only using read (not really but almost) and write/fprintf so I guess this makes it a pty-aware application right? But I only get writing to a stream to work. What I'm trying to do is a shell like behaviour of the input/output. I need to read without local echo and print data (also escape sequences) to create a custom way to enter a string. The output part now works in rxvt but the input part that worked before no longer operate. Since termios.h (used for echo disable and other good edit related stuff) is not avaialable I used kbhit() and getch() to read without echo nor any blocking. Any solution would be greatly appreciated.

/Bengt

-----Original Message-----
From: mingw-users-bounces@xxxxxxxxxxxxxxxxxxxxx [mailto:mingw-users-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Brian Dessent
Sent: den 24 juni 2008 11:01
To: MinGW Users List
Subject: Re: [Mingw-users] ANSI escape sequences problem

Bengt Werstén wrote:

> Most welcommed information. I have updated cygwin for rxvt support. However, when I use rxvt it seems to do local echo of everything I type. How can I read data from stdin without local echo using MinGW and rxvt?

rxvt is only useful when using pty-aware apps, as all Cygwin apps are. 
It will be anywhere from mildly annoying to all but useless to use for
non-pty-aware apps, as most all non-Cygwin apps are.

Brian

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users