Maximum value of Buffer Rows

Rex,

It would appear, from experimentation, that the maximum value for ConsoleBufferRows and its equivalent in the GUI options is 20,000 (and has been for some time). Is that an arbitrarily chosen limit, an architectural one, or neither of those things and whatever the reason, might it be increased in this age of systems with multiple gigabytes of RAM??
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
It's not entirely arbitrary -- it was chosen several years ago because that was the maximum size where you could still get respectable performance when scrolling and when scanning the hidden console window for changes. (The first is a conhost limitation; the second is a TCMD limitation.)

Do you have a need for > 20K lines?
 
May 20, 2008
11,401
99
Syracuse, NY, USA
How does that work? I always thought that the limit in a real console was 9999 because that's all the properties dialog allows. But it's easy to see 20000 if that's set in TCMD and the console is detached. With MODE.COM I can get up to 32766 (with an error message thereafter). I can also get 32766 in a new console after a little registry edit.
 
Do you have a need for > 20K lines?
Define 'need' :) I have certainly found myself in the situation several times recently where 20,000 was not enough to show all of the output from a REXX routine that I was running in TCC in a Take Command window. You could reasonably argue (and I wouldn't necessarily disagree with you) that I should be sending that amount of output somewhere other than the console, but in general these are debugging statements, oftentimes in long running routines, and I say them to the console from REXX so that I can see that things are working as desired. When things go awry I may need to work my way back up the output to try and figure out what is going on, which is where I've found myself lacking the necessary output in several cases in the past couple of weeks.
 
May 20, 2008
11,401
99
Syracuse, NY, USA
How does that work? I always thought that the limit in a real console was 9999 because that's all the properties dialog allows. But it's easy to see 20000 if that's set in TCMD and the console is detached. With MODE.COM I can get up to 32766 (with an error message thereafter). I can also get 32766 in a new console after a little registry edit.
And with MODE.COM you can get up to 16384 columns before an error message. I wonder why it's 2^15-2 for rows and 2^14 for columns.
 
I would pipe the output through tee. Not only do you get rid of the limit, you have a lot more search capabilities with it as a file.

However I might be misunderstanding your use case as this is a pretty simple suggestion that I'm sure you have considered.

Michael
 
Similar threads
Thread starter Title Forum Replies Date
S How to? What's the maximum size of the thread text ? Support 5
D Range command dialog with blank maximum size erases everything Support 5
C Maximum length for a variable Support 8
Jay Sage TCMD11: Maximum Description Length Support 1
Fross Deleting Registry DWord Value Support 2
R Problem with @INT[ value] in V26 Support 9
Peter Murschall OPTION //directive=value is a ENDLOCAL Support 3
T Returning a value from internal Lua scripts to TCC Support 2
A How to safely print variable's value without quotes? Support 9
D Envar _tcexit has value, even with /IX startup parameter Support 0
I Change value of a variable while debugging Support 3
S How to? Monitor shutdown event and write registry value Support 2
G WAD _DOS and VER/r returns incorect value Support 2
D Minor problem. Incorrect value internal var _dir_files Support 7
B Why Does @GETDIR Repeat Selected Directory Name In Returned Value Support 7
samintz How to? Sort on hex value Support 7
T Strange CPU value Support 3
vefatica DO variable left with empty value Support 0
vefatica Is this of any value? Support 2
D Bad CPU value in status bar Support 2
J How to use RegQuery for value with \name Support 2
Charles Dye Create empty registry value? Support 5
M No line wraps if last line of the screen buffer is reached Support 5
R New Clear Buffer in TCMD Home Menu Support 2
vefatica Win10, alternative screen buffer, cursor doesn't blink Support 11
R Find in screen buffer - find next behavior Support 0
S Documentation @SMPEEK refers to binary buffer Support 0
C TCC scrollback buffer size Support 11
C Size of keystack buffer? Support 2
J Color command and Screen Buffer. Support 2

Similar threads