CLI mode. Can I modify the output content?

Source: Internet
Author: User
CLI mode. Can I modify the output content? Cmd

CLI mode. Can I modify the output content? For the CMD interface, only stack-based output is allowed. cannot I update the display of a certain place?


Reply to discussion (solution)

What do you mean? Output by format?
Cli output is a byte stream, which can be understood by others.

How to clear the screen?

What do you mean? Output by format?
Cli output is a byte stream, which can be understood by others.

Php does not have this capability
Use PHP_GTK or WinBinder

How to clear the screen?


What do you mean? Output by format?
Cli output is a byte stream, which can be understood by others.

Full screen cleaning should not work, but the current output can be cleared with flush ()

I guess you want to output a roughly fixed content on the screen. a branch in the middle may change at any time or program progress.
See http://snipplr.com/view/29548/
This is a php CLI progressbar
The principle is that when the percentage increases, the screen is refreshed and the same content is output except for some changes (the other content of the progress bar remains unchanged, new numbers are replaced, and the overall output is repeated)

I guess you want to output a roughly fixed content on the screen. a branch in the middle may change at any time or program progress.
See http://snipplr.com/view/29548/
This is a php CLI progressbar
The principle is that when the percentage increases, the screen is refreshed, and the same content is output in addition to some changes (other content of the progress bar remains unchanged, new numbers are replaced, and the overall output is repeated ).

I guess you want to output a roughly fixed content on the screen. a branch in the middle may change at any time or program progress.
See http://snipplr.com/view/29548/
This is a php CLI progressbar
The principle is that when the percentage increases, the screen is refreshed and the same content is output except for some changes (the other content of the progress bar remains unchanged, new numbers are replaced, and the overall output is repeated)

What is the progress bar?

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.