LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   max line length in console (https://www.linuxquestions.org/questions/linux-newbie-8/max-line-length-in-console-655362/)

traene 07-12-2008 04:23 PM

max line length in console
 
Often i do cut / paste text output from one programme and paste it in a terminal window, like so:

Code:

# cat > newfile.txt
--- paste the output of another programme
...
-- end
<ctrl>+<c>

The maximum length of the line in my terminals is now about 8K. I try to copy longer lines to the terminal and they get truncated. Afaik there can be different programmes involved, like what terminal do i use (xterm, rxvt, konsole, putty, etc.), do they use terminfo or termcap, terminal settings, stty.


Where can i set the maximum line length?

David the H. 07-13-2008 09:27 AM

I don't know how to fix the terminal problem, but you can use either xsel or xclipboard to access the x clipboard or the copy buffer from the terminal. For example:
Code:

xsel -b > textfile.txt
will pipe the the current clipboard contents into a text file.

jamesapnic 07-13-2008 07:50 PM

What I tend to do, is to open vi or your favourite text editor and just paste it in.
You will then bypass the buffer size issue.


All times are GMT -5. The time now is 11:59 AM.