|
Command Line Programming, why didn't I realize before? My bad!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Since you don't explain further what do you mean with 'Command Line Programming', I suppose you're talking about Console applications, i.e. character oriented ones. Now what has to do a window control, like the progress bar, with a character oriented application?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
In graphical mode.
Maxwell Chen
|
|
|
|
|
?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Remember the graphical mode in the old DOS time? It applies to the command prompt window.
Maxwell Chen
|
|
|
|
|
No, I can't understand what you're talking about. Can console applications access single pixels on screen?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
CPallini wrote: Can console applications access single pixels on screen?
Yes. You can run this command edit from a command-prompt or from "Run", and you see a blue DOS application with the menu items in gray.
edit
Maxwell Chen
|
|
|
|
|
And if you have the 16-bit version Ghost v11 (run under pure DOS [Win98 boot diskette] ), You see it even draw pretty windows.
Maxwell Chen
|
|
|
|
|
OK, but edit does not appear to access the single pixel, while for the real graphic stuff you suggest the dos mode...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
CPallini wrote: while for the real graphic stuff you suggest the dos mode...
There are some, but I don't quite remember their names.
Maxwell Chen
|
|
|
|
|
Oh, oh, oh, GraphInit or smth like that in old Pascal, was also something for C afaik. You could anyway init a EGA/VGA/SVGA graphics mode with some asm also anyway. Gave you a certain resolution and colors. Think I used 800x600 with 256 colors mostly, which was ok for back then.
|
|
|
|
|
CPallini wrote: Can console applications access single pixels on screen?
No, but where did pixels become part of the "requirements?" You can have a progress bar in a console application.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: No, but where did pixels become part of the "requirements?" You can have a progress bar in a console application.
They became because (as you probably supposed) I wasn't aware about the possibility of having a progress bar in console application.
BTW how could one show the progress bar (i.e. something quite similar to the windows control, not, for instance, a sequence of '.' ) in such kind of applications?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
CPallini wrote: BTW how could one show the progress bar (i.e. something quite similar to the windows control, not, for instance, a sequence of '.') in such kind of applications?
printf("%c%c", 219, 219);
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
OK, a sequence of blocks instead of dots.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
sharanu wrote: I want use progress bar using command line programming...plz help me...
What ? I think you have to be a lot more clear in order to receive some help. How does command line programming relate to progress bar ??
|
|
|
|
|
I am writing a command line program. where i check for server connection.Till it checks for the server connection i want to use progress status...
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
And, what's the problem, where are you stuck exactly ?
And BTW, what is a command line program ? You mean a console program ?
Because there's no such thing as a command line program. There is a 'command line' which is a string that you can pass to your program when you start it. So basically, every program is a 'command line program' because all of them can accept command lines (even if they don't use it).
|
|
|
|
|
I think u want to display progress of the task in the console window,
u need to make use of control codes (backspace, ...) and graphic characters if necessary to update bar like appearance. say, if you want to display percent of completion, print the number and clear the number using backspace escape sequence and print the updated value. U can also go the graphic mode (making use of C graphics)
I also suggest u that move your biodata from signature to the member settings, than if some body wants to view they will go and see your profile.
|
|
|
|
|
Can i hve some example to do...
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
here is a simple example,
for (int i = 0; i < = 100; i++)
{
printf ("%d percent", i);
Sleep(10)
printf ("\r"); // carriage return, goes back to beginning of line
}
|
|
|
|
|
Thank u
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
yes its a console application
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
I guess you want to make a "console application" ...
Maxwell Chen
|
|
|
|
|
yes sir
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|