Skip to content
Permalink
Browse files
increase console line limit to 4095 bytes
git-svn-id: https://svn.r-project.org/R/trunk@45684 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed May 14, 2008
1 parent 20199c4 commit 5aebdcf95e353cf0fbede4ea8a48fb59ffdf4d8d
Showing 3 changed files with 12 additions and 4 deletions.
9 NEWS
@@ -49,7 +49,7 @@ NEW FEATURES
accept that are now rare.

o The behaviour of readLines() for incomplete final lines on
non-text-mode connections has been changed to be like blocking
binary-mode connections has been changed to be like blocking
rather than non-blocking text-mode connections.

o ?pkg::topic and ?pkg:::topic now find help on 'topic' from
@@ -174,6 +174,13 @@ UTILITIES
available, else by name.


C-LEVEL FACILITIES

o R_ReadConsole will now be called with a buffer size of 4096
bytes, (rather than 1024): maintainers of alternative
front-ends should check that they do not have a smaller limit.


BUG FIXES

o @ now gives an error (and not just a warning) if it is being
@@ -487,7 +487,7 @@ and indicate continuation by simple indenting.
Command lines entered at the console are limited@footnote{some of the
consoles will not allow you to enter more, and amongst those which do
some will silently discard the excess and some will use it as the start
of the next line.} to about 1024 bytes (not characters).
of the next line.} to about 4095 bytes (not characters).

@node Recall and correction of previous commands, Executing commands from or diverting output to a file, R commands; case sensitivity etc, Introduction and preliminaries
@section Recall and correction of previous commands
@@ -894,8 +894,9 @@ extern0 Rboolean known_to_be_utf8 INI_as(FALSE);
#define R_FILE 2
#define R_TEXT 3

/* The maximum length of input line which will be asked for */
#define CONSOLE_BUFFER_SIZE 1024
/* The maximum length of input line which will be asked for,
in bytes, including the terminator */
#define CONSOLE_BUFFER_SIZE 4096
int R_ReadConsole(const char *, unsigned char *, int, int);
void R_WriteConsole(const char *, int); /* equivalent to R_WriteConsoleEx(a, b, 0) */
void R_WriteConsoleEx(const char *, int, int);

0 comments on commit 5aebdcf

Please sign in to comment.