Ask a Question related to PHP Development, Design and Development.
-
Dade #1
php and console
hello all,
i'm doing a program that run in console (ms-dos prompt), but i have 2 smalls
problems:
1) how can i clear the screen? i tryed with system("cls") but doesn't work
2) how can i colorize the output of echo ?
thanx all
Dade
Dade Guest
-
Console Isn't Working
When I put in my information for my server console. Nothing happens. It doesn't do anything. I press login. No response. Nothing. Then if I... -
console app w/o seeing console?
OK, here's a silly question: I want a console application to run totally un-noticed - without the console window popping up. How do I accomplish... -
console output ?
hello group, I've a stupid question concerning console I/O after installation (yes, I've googled this newsgroup, without success). Recently I've... -
Logging to /dev/console
When I am building application and have to log things I do use the echo command to print out whatever I want. I then use the curl command to... -
Console redirection SCO
Lars Oberg wrote: There is no support for writing console messages to dual destinations. You can write them purely to a serial port; see... -
Christian Fersch #2
Re: php and console
Dade wrote:
There is no such command. But you can just echo enough empty lines to> 1) how can i clear the screen? i tryed with system("cls") but doesn't work
clear the screen.
greetings Christian
Christian Fersch Guest
-
Dade #3
Re: php and console
"Christian Fersch" <Chronial@web.de> ha scritto nel messaggio
news:cb41ar$tc5$05$1@news.t-online.com...work> Dade wrote:> > 1) how can i clear the screen? i tryed with system("cls") but doesn't>
> There is no such command. But you can just echo enough empty lines to
> clear the screen.
>
> greetings Christian
Dade Guest
-
Dade #4
Re: php and console
"Christian Fersch" <Chronial@web.de> ha scritto nel messaggio
news:cb41ar$tc5$05$1@news.t-online.com...work> Dade wrote:> > 1) how can i clear the screen? i tryed with system("cls") but doesn'tyes, i also thought to this solution, the problem is move the cursor in the>
> There is no such command. But you can just echo enough empty lines to
> clear the screen.
>
> greetings Christian
top - left position ....
thanx
Dade
Dade Guest
-
Colin McKinnon #5
Re: php and console
Dade spilled the following:
A better solution would be to use the ANSI emulation available in MS-DOS>
> "Christian Fersch" <Chronial@web.de> ha scritto nel messaggio
> news:cb41ar$tc5$05$1@news.t-online.com...> work>> Dade wrote:>> > 1) how can i clear the screen? i tryed with system("cls") but doesn't>>>
>> There is no such command. But you can just echo enough empty lines to
>> clear the screen.
>>
>> greetings Christian
> yes, i also thought to this solution, the problem is move the cursor in
> the top - left position ....
through Windows XP.
See [url]http://is-it-true.org/nt/utips/utips181.shtml[/url] for instructions on how to
enable it.
You'll also need to know what codes to send to do particular things - the
right way of doing it would be to use the ncusrses library but installing
it on Microsoft is likely to be a pain. At
[url]http://www.evergreen.edu/biophysics/technotes/program/ansi_esc.htm[/url] there is
a well explain list of what sequences perform what operations.
(PHP supports binary strings)
HTH
C.
Colin McKinnon Guest
-



Reply With Quote


