Hallo Martin, Du schriebst am Sat, 22 Oct 2011 07:43:13 +0200:
> > That's probabely because pacman gets fed its input by pipe - I said ... > ptytee should make an exact copy of the data into the file, so there is > something wrong because the file and the xterml input are not the same. Not neccessarily - the only difference is the "y" and newline following it that do not appear in the log file. That means these two characters were not output via the same mechanism as the rest of the text. Now, it's possible for a program to set its terminal into "raw" mode to receive every input character, even every key press, immediately and without translation. The terminal doesn't even neccessarily echo them, but may let the application do that itself. These characters might not even be output via stdout/stderr, but could be sent to the terminal directly. On the other hand, a Unix terminal has a whole lot of options to handle input and output internally, without an application's interaction, and maybe without reflection on any of the standard I/O channels. You might consult "man stty" or just study the output of "stty --help" on this. > > It's sufficient to pass it a response by pipe to make it suppress the > > progress display as well as the newline after the input prompt. > > In theory current ptytee and tterminal should use a PTY on input and > output so there is something wrong again. Does ptytee pass the "y"-newline sequence as keyboard actions? If not, this might be sufficient to trigger the alternate behaviour of pacman already - the missing progress display indicates that this has happened indeed. So there's probabely nothing wrong with ptytee and tterminal, the unwanted behaviour is just due to pacman's overly "cautious" method of input acquisition, which cannot be correctly reflected by any means except real keyboard entry. And even that might not be able to capture the automatic action of the terminal itself on input, because they might not appear at all in the output stream. -- (Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem) ----------------------------------------------------------- Mit freundlichen Grüßen, S. Schicktanz ----------------------------------------------------------- _______________________________________________ MSEide-MSEgui-talk mailing list MSEide-MSEgui-talk@lists.berlios.de https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk