Psh: Cmd.exe Replacement

Developed or developing a new product in PureBasic? Tell the world about it.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Ok, I've updated the program (see links in the first post). I've added the up/down arrow scrolling and (hopefully) addressed the 100% CPU usage.
~I see one problem with your reasoning: the fact is thats not a chicken~
stubbsi
User
User
Posts: 50
Joined: Tue Jul 04, 2006 8:59 pm
Location: Mt Martha, Australia

Post by stubbsi »

I'm noticing two things - the scrolling I meant was scrolling of the commands which you had entered at the prompts - and the CPU problem seems to still be present.
Vincit qui primum gerit
"The Old Farts Wins" or "He Conquers Who First Grows Old"
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

Can you add in "exit" and I do not see the CPU problem. That part seems fine. Also, can you add in a "CLS" (clear screen)?

TIA
Intrigued - Registered PureBasic, lifetime updates user
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Those two shouldn't be two hard too add, am I right in saying 'exit' will just close the program?

@stubbsi

Could you explain the scrolling behaviour you'd like to see a bit more clearly, I'm still a bit confused. As for the CPU problem can you post your machine specs, because I can't recreated here on either my laptop or computer. The latest version I posted took a max of 11% CPU time for a very short period.
~I see one problem with your reasoning: the fact is thats not a chicken~
stubbsi
User
User
Posts: 50
Joined: Tue Jul 04, 2006 8:59 pm
Location: Mt Martha, Australia

Post by stubbsi »

just use the cmd program, type in a couple of dos statements, and then use the arrow keys on the keyboard.

you will be able to move through the statements you have typed.

sorry if i haven't been making myself clear
Vincit qui primum gerit
"The Old Farts Wins" or "He Conquers Who First Grows Old"
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

I see it now - thanks.
~I see one problem with your reasoning: the fact is thats not a chicken~
CadeX
Enthusiast
Enthusiast
Posts: 124
Joined: Mon Oct 02, 2006 2:56 pm
Location: Australia
Contact:

Post by CadeX »

i like it, its a great idea. 2 bugs with the console though.. One is if you press things like 'ESC', 'CTRL+C' etc, you guy a funny character show up on the screen and the positiony marker thing goes ahead a few more spaces... The second one is, open the console up, hold 'e' for a little bit... You'll soon notice you get one e on the next line, and you can now go up lines... :shock:

Other then that, I love it, great work.
Pro-Gamer, Programmer, Pro-Grammer
User avatar
kenmo
Addict
Addict
Posts: 2047
Joined: Tue Dec 23, 2003 3:54 am

Post by kenmo »

Dir seems to only work on the home directory... change it with "cd" and then try it...

(edit) Actually it works if you use an absolute path with "cd"... apparently relative paths don't work.
Post Reply