Dumb Q about console I/O under ObjC

2012-05-27 Thread William Squires
I'm trying to develop my retro CRPG game engine as a console app, but how do I test the input part? I can output to stdio with either printf() or NSLog, but the debug console only supports output, not input. What's the normal way to redirect this to terminal.app so that scanf() will work?

Re: Dumb Q about console I/O under ObjC

2012-05-27 Thread Thomas Davie
On 27 May 2012, at 18:26, William Squires wrote: I'm trying to develop my retro CRPG game engine as a console app, but how do I test the input part? I can output to stdio with either printf() or NSLog, but the debug console only supports output, not input. What's the normal way to

Dumb Q

2008-08-06 Thread William Squires
What's the proper way to make a C/ObjC program (Foundation tool) be used with the pipe operator? I want to make a simple filter that takes the output of ls -la and reformats it to appear more like the MS-DOS directory listing. So, I would do something like ls -la | mydosfilter and get a

Re: Dumb Q

2008-08-06 Thread Thomas Davie
On 6 Aug 2008, at 15:57, William Squires wrote: What's the proper way to make a C/ObjC program (Foundation tool) be used with the pipe operator? I want to make a simple filter that takes the output of ls -la and reformats it to appear more like the MS-DOS directory listing. So, I would

Re: Dumb Q

2008-08-06 Thread Marco Masser
I want to make a simple filter that takes the output of ls -la and reformats it to appear more like the MS-DOS directory listing. So, I would do something like ls -la | mydosfilter and get a directory listing with the filename first, the # bytes second, then the timestamp (leaving out