Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

curses non-curses

Name: Anonymous 2009-07-21 2:33

I want to call ls or other unix commands in my curses programme, but when I call them through system() in a curses programme, they are misaligned; what do I do? I tried to call them after endwin, and that works, but I'd like to do that without going back to the actual terminal.

Name: Anonymous 2010-05-21 5:13

NO EXCEPTIONS

Name: Anonymous 2010-05-21 5:15

Did you remember to call cbreak/nocbreak before calling system?

Name: Anonymous 2010-05-21 5:20

>>2
That reply should really be reserved for threads that are so dumb they don't merit a real one, not for situations where you're too inept to think of something worth contributing. Otherwise you might as well say something about your anus.

Name: Anonymous 2010-05-21 5:26

>>4
SAY SOMETHING ABOUT MY ANUS, FUCKER. DO IT.

Name: Anonymous 2010-05-21 5:26

take a look at the bosh sourcecode

Name: Anonymous 2010-05-21 6:54

man 3 popen

Name: Anonymous 2010-05-21 7:23

>>7
That did the trick. Thanks.

Name: Anonymous 2010-05-21 9:43

>>8
Ten months after the fact, really? That's patience.

Name: Anonymous 2010-05-21 14:47

>>4
>>2 posted because of http://dis.4chan.org/read/prog/1274427431.
>>2, you should try to be less easily influenced by others.

Name: Anonymous 2010-05-23 9:20

call endwin() before shelling out, then refresh() to bring your curses back up.

could be ncurses specific i duno lol

Don't change these.
Name: Email:
Entire Thread Thread List