Displaying 1 result from an estimated 1 matches for "do_winconsolefocus".
2003 Oct 22
1
Windows RConsole Focus
...I tried implementing a quick solution (below) which seemes
to work.
Regards,
James
src/gnuwin32/rui.c
------------------
int winconsolefocus()
{
show(RConsole);
return 0;
}
src/gnuwin32/rui.h
------------------
int winconsolefocus(void);
src/gnuwin32/extra.c
--------------------
SEXP do_winconsolefocus(SEXP call, SEXP op, SEXP args, SEXP rho)
{
SEXP ans;
Rboolean success = TRUE;
winconsolefocus();
PROTECT(ans = allocVector(LGLSXP, 1));
LOGICAL(ans)[0] = success;
UNPROTECT(1);
return ans;
}
src/main/names.c
----------------
{"winConsoleFocus",do_winconsolefoc...