LinuxQuestions.org
Visit Jeremy's Blog.
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, 05:23 PM   #1
traene
Member
 
Registered: Jan 2005
Distribution: Archlinux, Debian, grml
Posts: 210

Rep: Reputation: 33
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, 10:27 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958
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, 08: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:35 AM
BASH : find max character per line in a console romainp Linux - General 13 09-06-2007 01:43 PM
Cat5 Max Length Jane Linux - Networking 7 06-07-2007 11:26 AM
POSIX - max line length? lowpro2k3 Programming 1 08-24-2005 09:59 PM
Max pass length xathras Linux - Security 1 06-26-2004 04:46 PM


All times are GMT -5. The time now is 09:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration