Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to prevent word wrap on command line in unix

Posted on 2011-03-18
8
Medium Priority
?
1,080 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 1000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month12 days, 3 hours left to enroll

916 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