Displaying 3 results from an estimated 3 matches for "initconsolegetchar".
1997 Dec 31
0
R-beta: small patch for R-0.61 on SGI Irix 5.3
...e fixed by the following patch:
*** scan.c.000 Fri Nov 21 00:06:43 1997
--- scan.c Wed Dec 31 12:11:05 1997
***************
*** 27,33 ****
static char ConsoleBuf[CONSOLE_BUFFER_SIZE];
static char *ConsoleBufp;
! static char ConsoleBufCnt;
static char ConsolePrompt[32];
static void InitConsoleGetchar()
--- 27,33 ----
static char ConsoleBuf[CONSOLE_BUFFER_SIZE];
static char *ConsoleBufp;
! static int ConsoleBufCnt;
static char ConsolePrompt[32];
static void InitConsoleGetchar()
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -...
1998 Mar 09
1
bug in menu, readline
Neither do_menu nor do_readln (in src/main/scan.c) call the function
InitConsoleGetchar. They need to do this to reset ConsolePrompt. If you
use "scan" to read in data from the terminal, then ConsolePrompt is set
to "n:" for some integer n and this prompt makes an unwelcome appearance
when you use the "menu" or "readline" functions.
Incidental...
1999 Mar 25
4
readline() (PR#147)
Dear R developers,
I have found the following bug with readline() in R 0.63.3:
if you execute the menu-function and then the readline() function, then
readline() prompts "Selection:"
> a <- readline()
hello
> a
[1] "hallo"
> a <- menu(c("a", "b"), title="bitte:")
bitte:
1:a
2:b
Selection: 2
> a <- readline()
Selection: