Skip to content

Commit a34f071

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: Add sleep to observe the changes in the terminal when executing the code.
2 parents a789350 + 6dc3cc3 commit a34f071

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

console.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,19 +319,23 @@ method, which returns an instance of
319319

320320
$section1->writeln('Hello');
321321
$section2->writeln('World!');
322+
sleep(1);
322323
// Output displays "Hello\nWorld!\n"
323324

324325
// overwrite() replaces all the existing section contents with the given content
325326
$section1->overwrite('Goodbye');
327+
sleep(1);
326328
// Output now displays "Goodbye\nWorld!\n"
327329

328330
// clear() deletes all the section contents...
329331
$section2->clear();
332+
sleep(1);
330333
// Output now displays "Goodbye\n"
331334

332335
// ...but you can also delete a given number of lines
333336
// (this example deletes the last two lines of the section)
334337
$section1->clear(2);
338+
sleep(1);
335339
// Output is now completely empty!
336340

337341
// setting the max height of a section will make new lines replace the old ones

0 commit comments

Comments
 (0)