Generally speaking, the buffers associated with a command line interface have a limited number of lines stored, even thought it's typically greater than the number of lines visible. If this is the case, then a scroll bar bill covesr the amount buffered. If the buffer holds less than the amount that has been displayed, then that material is lost.

The whole thing is a somewhat silly question. Computers are not magic. Presume that you have several million tokens and a container to transfer them to. What happens if the container is non-existent, or holds 2000 items, or 2,000,000. It's unlikely that you will find one which is infinite and holds every thing ever displayed to a command window since its creation.

Think of a way to solve the container/token problem and apply it.