CLI mode. Can I modify what has been output?

Source: Internet
Author: User
Tags php cli
Cmd

CLI mode. Can I modify what has been output? For the CMD interface, only the stack output can not update the display of a place?


Reply to discussion (solution)

What does it mean? Output by format?
The output of the CLI is a byte stream, others understand

How to clear the screen?

What does it mean? Output by format?
The output of the CLI is a byte stream, others understand

PHP does not have this ability
Need to use PHP_GTK or Winbinder

How to clear the screen?


What does it mean? Output by format?
The output of the CLI is a byte stream, others understand

Full screen should not work, but clear the current output can be used flush ()

I guess you want to output a roughly fixed content on the screen, and the middle section changes at any time or the program progresses
can refer to http://snipplr.com/view/29548/
This is a PHP CLI ProgressBar
The principle is that when the percentage increases, the brush screen, in addition to the partial changes in the output of the same content (progress bar other content unchanged, replaced the new number, multiple overall output)

I guess you want to output a roughly fixed content on the screen, and the middle section changes at any time or the program progresses
can refer to http://snipplr.com/view/29548/
This is a PHP CLI ProgressBar
The principle is that when the percentage increases, the brush screen, in addition to the partial changes in the output of the same content (the progress bar other content unchanged, replace the new number, multiple overall output) is the demand

I guess you want to output a roughly fixed content on the screen, and the middle section changes at any time or the program progresses
can refer to http://snipplr.com/view/29548/
This is a PHP CLI ProgressBar
The principle is that when the percentage increases, the brush screen, in addition to the partial changes in the output of the same content (progress bar other content unchanged, replaced the new number, multiple overall output)

What kind of progress bar is this?

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.