LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-30-2007, 08:03 AM   #16
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63

Try this:
Code:
unset LS_COLORS
ls
 
Old 10-31-2007, 12:21 AM   #17
babu198649
Member
 
Registered: Oct 2007
Posts: 160

Original Poster
Rep: Reputation: 30
no change had took place . can u explain what is the function of the code.


thanks
 
Old 10-31-2007, 12:26 AM   #18
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Maybe your monitor is set up a little wrong, and the output is going to the left of screen, which is outside of viewable area. Try changing by hand the width of the onscreen display (using monitor's controls).
 
Old 10-31-2007, 01:03 AM   #19
babu198649
Member
 
Registered: Oct 2007
Posts: 160

Original Poster
Rep: Reputation: 30
thanks duryodhan

i wonder why this very logical idea did not occured to me .but do u know when i changed the screen towards left in the gnome it did not affect the text virtual terminal.

but changing in the text virtual terminal using ctrl-alt-f1 affects all the other three text virtual terminals (ctrl-alt-f2,ctrl-alt-f3,ctrl-alt-f4)
but not gnome terminal.

does this settings memory(horizontal movement) is independent of cpu or controlled by cpu.
 
Old 10-31-2007, 05:12 AM   #20
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Quote:
Originally Posted by babu198649 View Post
no change had took place . can u explain what is the function of the code.
thanks
The very oldest type of terminals which were used with unix-like OSes were in fact teletype terminals which used a printer as a display. The output was literally printed out. The printers had pretty limited functionality, but it was possible to achieve special printing styles using simple methods. For example, to print in bold, the teletypes would print over the same letters more than once. This would be accomplished by sending a letter, a backspace and the letter again. The over-printing which resulted gave the effect of bold type.

Even through the teletypes were replaced with terminals with video displays, this method of sending special formatting information to the terminal persisted. New terminals added new control codes for doing things like using a larger font, moving the cursor around the screen and so on.

As new features were added to terminals it became possible to write terminal applications which would provide pseudo GUI-like features, but all drawn in a text terminal. For example the full-screen editors nano and vi, or emacs's text mode. Also mail clients like elm and pine. To avoid the programmer having to cater for many different terminal types with different capabilities, libraries which can be used to make these apps (most famously curses and the modern version, ncurses) hide the details from the programmer.

The curses programs (and other programs which use special terminal control codes) know which codes to send based on the TERM environment variable. This should identify the type of terminal which is in use, and is used to look up the terminal's capabilities in the termcap database when one of these libraries is used to draw some part of an applications interface.

Colours, like other terminal capabilities are sent using special control sequences which are "printed" to the terminal before the text which is to be printed in the chosen colour. If the codes do not match the capability of the terminal it might result in the first character of the coloured word not printing - the symptom you described. The command I gave you removes printing of colours by ls. If this worked then we would have taken a look at the TERM and the LS_COLORS values to see if we colulf fix it. But it was not your problem.
 
Old 09-02-2010, 03:30 AM   #21
StephSmith
LQ Newbie
 
Registered: Aug 2010
Posts: 6

Rep: Reputation: 0
Quote:
make | tee hi.txt
This is exactly what I have been searching for, thanks!
 
  


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
Redirecting output to a compressed file rrosnowski Linux - Software 3 06-13-2007 07:51 AM
Redirecting socket output to a file elmafiacs Programming 1 10-15-2005 05:18 AM
redirecting make output not working - pl help mselvam Linux - Newbie 3 07-08-2005 05:38 PM
Redirecting colsole output to file. danimallv Linux - General 4 07-05-2005 02:44 PM
redirecting output of compile to a file halfcan Linux - Hardware 1 02-05-2005 10:01 PM


All times are GMT -5. The time now is 03:54 AM.

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