Original Post
Hi, I know this probably should have gone in the linux forum, but i had a feeling that it might get more attention here. The problem is with curses. For a uni project we have to write a basic shell for linux and it has to have the commands 'pwd', 'cd', 'ls', 'kill' and 'ps' coded, ourselves. Well i have coded all but ls and ps and have also given it the ability to fork-exec external commands. Now the problem lies in the fact that i am writing the interface using curses. I am testing fork-exec by running the commands 'ls -l' , therefore the external command. ut the problem seems to be that since im in curses mode and since ls appears NOT to use curses, the formatting is messed up and i get staircasing of data. I have looked on various curses tutorials for this kinda thing and have turned up nothing. So somehow what i need to do is drop out of curses (which i know how to do), leave the curses output on the screen (i dont know how to do in coop with the first), have ls run without staircasing with propper formatting then lastly having curses back on and resume my shell at the bottom of the ls output. I'm pretty sure this is doable in some form, if not how ive described, but i cant figure out how. Any pointers would be greatly appreciated. ace