Solved

how to prevent word wrap on command line in unix

Posted on 2011-03-18
8
1,040 Views
Last Modified: 2013-12-16
I would like to know the parameter that should go into .Xdefaults file that prevents word wrap on a command line on Linux Redhat.
0
Comment
Question by:monocacy570
8 Comments
 

Author Comment

by:monocacy570
ID: 35169939
would like to know the syntax that should go into .Xdefaults file that would prevents word wrap on a command line on Linux Redhat
0
 
LVL 9

Expert Comment

by:svs
ID: 35181151
This doesn't make sense.  "command line" is normally provided by shell (/bin/sh and the like), but shells are not configured via .Xdefaults.

More details, please?
0
 

Author Comment

by:monocacy570
ID: 35181986
svs, your point is noted and therefore the question should be asked like this:  how do I prevent word wrap from occuring at the 80 character limit on a command line?
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 9

Expert Comment

by:svs
ID: 35182320
I've seen this happen, but do not recall in which shell and which OS.  sorry.
0
 
LVL 62

Expert Comment

by:gheist
ID: 35188016
.Xdefaults has no influence on word wrapping.

bash input is controlled by ~/.inputrc /etc/inputrc

i suspect wrapping at :80 happens because of a wrong TERM setting
0
 
LVL 4

Accepted Solution

by:
m_walker earned 250 total points
ID: 35188306
Are you talking about the terminal window under xwindows or from a remote terminal eg: putty.

The way I see it is you can change the line length with the stty command
eg:  stty cols 120
But, the terminal program may notice the line "needs" to be wrapped.  As such you would need to check the settings for the terminal app.

The terminal program must do something with the data, so it could just drop the exta data (trunc it) or store in a buffer and add a scroll bar.
0
 
LVL 19

Expert Comment

by:jools
ID: 35281662
have you tried not typing in anything bigger than 80 chars?
0
 

Author Closing Comment

by:monocacy570
ID: 35396711
Thanks to all who responded.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using gawk to read and manipulate multiple texts from a file 1 67
How to clone solaris 10 machine 33 149
Image not there 4 57
spectrum scale snapshot  resotre/mount 1 14
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question