LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-12-2008, 04:23 PM   #1
traene
Member
 
Registered: Jan 2005
Distribution: Archlinux, Debian, Centos
Posts: 222

Rep: Reputation: 35
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?
 
Old 07-13-2008, 09:27 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.
 
Old 07-13-2008, 07:50 PM   #3
jamesapnic
Member
 
Registered: Jul 2008
Posts: 40

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the max length of ID description? dwarf007 Linux - General 6 10-10-2007 10:35 AM
BASH : find max character per line in a console romainp Linux - General 13 09-06-2007 12:43 PM
Cat5 Max Length Jane Linux - Networking 7 06-07-2007 10:26 AM
POSIX - max line length? lowpro2k3 Programming 1 08-24-2005 08:59 PM
Max pass length xathras Linux - Security 1 06-26-2004 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration