XP is just a number | |
PerlMonks |
Re^3: How to Get XTerm Titleby afoken (Chancellor) |
on Sep 04, 2009 at 05:24 UTC ( [id://793363]=note: print w/replies, xml ) | Need Help?? |
When I did echo ^[[21t; > STDOUT.txt 2> STDERR.txt I get nothing in either file, yet I can see the window title on the screen. Putty is returning it, but I can't seem to capture it. It seems you did not read or at least did not understand my posting. PuTTY and any other terminal emulator returns answers to status queries on the same channel where it returns user input: STDIN. STandarD INput, not STDOUT, not STDERR. You see the answer on screen because the terminal handling code of your operating system works in echo mode and writes back everything coming in from the terminal back to the terminal. This happens in the kernel, in a layer below the file handle layer. Stupid example that lacks disabling echo and a reasonable reading routine:
Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|