src/taesooLib/MainLib/OgreFltk/mac/terminal.cpp
void NslookupButtonCB(Fl_Widget*, void *cbdata) {
    MyTerminal *term = (MyTerminal*)cbdata;
    std::string errmsg;
    char *cmd_argv[10];
    int i = 0;
    cmd_argv[i++] = "nslookup";
    cmd_argv[i++] = 0;
    if ( term->StartChild(cmd_argv, errmsg) < 0 ) {
	term->append("ERROR: ");
	term->append(errmsg.c_str());
    } else {
        term->append("\n\n*** nslookup(1) started\n");
    }
    Fl::focus(term);		// return focus to editor
}
// TEST BUTTON: START NSLOOKUP INTERPRETER
TEST BUTTON: START NSLOOKUP INTERPRETER
TEST BUTTON : START NSLOOKUP INTERPRETER
void NslookupButtonCB(Fl_Widget*, void *cbdata) {
    MyTerminal *term = (MyTerminal*)cbdata;
    std::string errmsg;
    char *cmd_argv[10];
    int i = 0;
    cmd_argv[i++] = "nslookup";
    cmd_argv[i++] = 0;
    if ( term->StartChild(cmd_argv, errmsg) < 0 ) {
	term->append("ERROR: ");
	term->append(errmsg.c_str());
    } else {
        term->append("\n\n*** nslookup(1) started\n");
    }
    Fl::focus(term);		
}
void NslookupButtonCB ( Fl_Widget * , void * cbdata ) { MyTerminal * term = ( MyTerminal * ) cbdata ; std :: string errmsg ; char * cmd_argv [ 10 ] ; int i = 0 ; cmd_argv [ i ++ ] = " " ; cmd_argv [ i ++ ] = 0 ; if ( term -> StartChild ( cmd_argv , errmsg ) < 0 ) { term -> append ( " " ) ; term -> append ( errmsg . c_str ( ) ) ; } else { term -> append ( " \n \n \n " ) ; } Fl :: focus ( term ) ; }
TEST BUTTON: START NSLOOKUP INTERPRETER
TEST BUTTON : START NSLOOKUP INTERPRETER
// return focus to editor