|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-11-15 08:38 UTC] remi@php.net
-Assigned To:
+Assigned To: remi
[2013-11-15 08:43 UTC] remi@php.net
[2013-11-15 08:53 UTC] remi@php.net
[2013-11-15 08:53 UTC] remi@php.net
-Status: Assigned
+Status: Closed
[2013-11-15 10:08 UTC] ab@php.net
[2013-11-17 09:30 UTC] laruence@php.net
[2014-01-20 07:41 UTC] remi@php.net
[2014-01-20 17:07 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 20:00:01 2025 UTC |
Description: ------------ I am running a PHP script at the command line and piping the output through less: ./myScript | less Since less is an interactive program it puts the terminal into 'raw' mode so that it can read characters one at a time. However, when I do the above I find that the commands that I type to less are echoed back to me and not acted on until I type <RETURN>. This is not as it should be. The sript is not doing anything clever, just generating 100 lines: for($i = 0; $i < 100; $i++) echo "i=$i\n"; This has been discussed on the Internals mail list, the thread starts here: http://marc.info/?l=php-internals&m=137915919531612&w=2 Test script: --------------- I suggest a solution here: http://marc.info/?l=php-internals&m=137951748702534&w=2