Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: vinceASPECT on November 01, 2020, 08:34:01 AM
-
Hello Forum,
is there a way to increase the buffer size of the terminal window?......(so that more text can be typed into one single command
)
please, what method is there to do that?
thx
V
-
$ aterm -help
...
-sl number number of scrolled lines to save
-
Hi, guys!
@Juanito, seems, that vinceASPECT asked about the length of single command line, am I right, vinceASPECT? By the way, You haven't mentioned, You mean X terminal emulator or pure busybox console?
-
Hi jazzbiker
... seems, that vinceASPECT asked about the length of single command line, ...
I think you are right.
It's possible the ASH shell might be involved here. Type this into a terminal (but don't hit enter yet):
echo xxxxxx | wc -c
now move the cursor back to the x characters. Hold down the x key until no more characters are produced. Now hit
enter. I got 1010 for an answer plus another 13 characters to either side of the Xs for 1023 total.
Now, in the same terminal, run:
bash
and try the same thing again. I got over 3600 before I stopped trying.
-
Hello forum,
yes, i mean the regular terminal that tcl offers.
Yes. it is the lengh of the command line and amount of chars it can take........ and then (enter key)
V
-
In busybox-1.29.3_config_nosuid I see
CONFIG_FEATURE_EDITING_MAX_LEN=1024
@Rich, this correlates good with Your measurements.
-
Hi jazzbiker
... @Rich, this correlates good with Your measurements.
Actually, it correlates exactly.
The maximum length is 1023 characters plus the \0 required to terminate a string for a total of 1024.
By the way, nice find.
-
Hi, vinceASPECT!
Try to rebuild busybox - it's not very compicated - with CONFIG_FEATURE_EDITING_MAX_LEN changed according to Your requirements. And then You need to remaster rootfs.gz, following the brilliant instructions by Curaga in Corebook. It is not harder than to drink a good cup of coffee, thanks TinyCore Creator and Team!
-
right....
also going to look into possible more easy solutions. Another terminal for example.
tmux.....etc
thanks
v
-
Hi vinceASPECT
I don't think another terminal will solve your issue. I just tried with lxterminal and got the same result, 1023 characters.
Install bash.tcz. Then open a terminal and enter:
bash
I suspect you will be able to enter at least 4095 characters.
-
rich,
yes i did download and install bash....and i tried bash at the command line....
it didn't seem to do anything......hmmm?......
i will take a look at it again.
"tmux" had some issue about utf 8.........google said it's easily solvable but ofcourse all descriotions online refer to ubuntu.........on tcl there turned out to be deps missing for their silver bullet "utf 8 issue" solution.
thx
v
-
Hi vinceASPECT
... it didn't seem to do anything......hmmm?...... ...
You won't see it do anything. All you did was to replace the ASH shell with BASH. If you then type exit it will drop
you back into the the ASH shell. In both cases you just get back your command prompt. If you enter exit a second
time, it will close your terminal.
So the question remains, after you entered bash , is the buffer large enough?
-
ahh right rich...
well then, if what you say is correct then the buffer should be large enough for me.
it's just so that one can paste in multimedia content links and watch them....
will try it soon and report back...
many thanks
v
-
yes Rich, many thanks,
you can mark this thread is solved.
Buffer is large enough via bash.
thankyou indeed.
v
-
Hi vinceASPECT
Marked as solved.