General :: How To Color Part Of Text Of Output To Console

Jun 9, 2011

Is there a way to color particular words printed on console based on user preference? For example I need to color text 'error' when a particular program is compiled.

View 2 Replies


ADVERTISEMENT

General :: How To Print Part Of Text File In Bold And Color

Jul 6, 2011

I have a procedure say X
output of X is :
Fund name: Mutual
NAV is: 1234

So I appended this output into a file using shellscript. But now my requirement is changed. The part of output like Fund name and 1234 should be in bold. How can I do this using shell script.

View 14 Replies View Related

Slackware :: Change Base Console Text Color

Sep 5, 2010

I'm interested in changing the console text color. I can change the console color easily in X, but I'd also like to change the color of the text when my computer first boots up (like right after LILO).Is this something I can modify without rebuilding the kernel? If not, does anyone know where in the source I could make a change like this?

View 6 Replies View Related

Debian Multimedia :: MPlayer Video Output In Layer Beneath Console Text

Jan 26, 2011

When I try to play a dvd and give mplayer no options, it defaults to "X11" for the video output, which maxes out the cpu. To get around this, firstly I tried to play the dvd using "cvidix" in the console.

I used the following command:
mplayer -ao alsa -vo cvidix -fs -framedrop -stop-xscreensaver -dvd-device /dev/dvd1 dvd://1
This played the dvd, but the console text was still visible over the top of the movie; i.e. mplayer was playing in the layer beneath the console text

Then I tried using xvidix in X:
mplayer -ao alsa -vo xvidix -fs -framedrop -stop-xscreensaver -dvd-device /dev/dvd1 dvd://1
This gives a green line about 5mm thick down the right side of the screen, but other than that it is ok.

View 6 Replies View Related

General :: Changing Color Of Console Permanetly To Green

May 17, 2009

I am bored of watching the same white color on my console and want to change everything to green color including the start up.I did something like this Code: setterm -background black - foreground green -store It did change the color but not permanently.

View 4 Replies View Related

General :: How Display Part Of An Output Stream

Feb 4, 2011

Though I have little experience in the past, i just can't get to work what i have in mind.i want to display part of an output stream.

cat sample.xml
<packet or="recv" ljid="d.sample@test.local/" ts="20110204T15:02:55"><message from='j.sample2@test.local/' to='d.sample@test.local' type='chat' xml:lang='en' id='sd61'>

[code]...

View 4 Replies View Related

Ubuntu :: Text Editor That Will Let Color Or Highlight Text On Demand?

May 11, 2010

Is there a simple text editor for Linux that will let you color or highlight text on demand? Something like gedit or leafpad with color? I know I can probably do this with vi or emacs, but I'm looking for something simple, need not be feature rich.

View 4 Replies View Related

General :: How To Specify Text Message Color On Gnome Terminal

Aug 11, 2010

OS is CentOS 5.5, and GNOME terminal emulator (v2.16.0). However I regard the question is not related with OS/Gnome version level. My question is whether if color setting is available or not for the text character outputted by kernel (or shell, i.e. Bash). Normally we can specify/modify text character color (and background color) with property setting on the terminal. However, it only takes affect to the text for inputting character, not for outputted character by kernel/shell. For example, when we type a shell command "ls -al <cr>", the text appears with the color along with the terminal property.

Meanwhile, the text message displayed on the console (output message against "ls -al" command), in this case it must be file and/or directory names, will appear with some preset color which we've not preliminarily set. In my case, I set Text color with "White", Background color with "Black". Then I expect the text output message color displayed by kernel/shell would be some brighter color. But the color is "blue" which does not look better brightness against "Black" background. For this situation what I'd like to know is how to set/specify the color outputted by the kernel/shell (or whether or not it is possible to set manually).

View 4 Replies View Related

General :: Not Able To Log Into Text Console / Resolve This?

Jan 7, 2010

I have just come over from the darkside (Microsoft) and am finding problems with a few items.

I am trying to configure the monitor/video card as I am having problems with the nvidia geforce 4 integrated video card. Some instructions I have sat to press ctrl alt and f1 to go to the text console. I do but it asks for a login and does not accept my user name and password.

What have I done wrong?

View 11 Replies View Related

General :: Highlight Console Output - Any Command / Tool?

Oct 13, 2010

when I use e. g. cat file.txt | grep --color=tty "pattern" I get the pattern I search highlighted. When I want some more context around each hit, grep has the -A, -B and -C parameters. However, I want to display the whole file (or whatever command output) and highlight a certain pattern. Does such a highlight command or tool exist?

View 5 Replies View Related

General :: Bash Script Output To Console Without Login?

Dec 30, 2010

i'm looking for a way to output a bash script to the console before login.It should be executed after boot in rc.d scripts with the output on the console0. It is for a asterisk box.This is the script. It use the watch command to output the active calls on the box in realtime.Code:watch "asterisk -vvvvvrx 'show channels verbose'"Btw,

View 6 Replies View Related

General :: Finding A Console / Text Based XDM / GDM?

May 22, 2010

I would like that users can log to X but this with a text based xdm + how to active it as last in inittab since it is text what contains my inittab

Code:

1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3

[code]....

View 10 Replies View Related

General :: Kmail Notification When In A Text Console?

Jun 9, 2010

GNU/Linux kernel 2.6, Slackware 12.0
KDE 3.5.7, Kmail 1.9.7

To any user of an email program running on KDE: Let's call Kmail to such a program. When I am in the GUI, Kmail notifies me of any email that is entering. It does so by playing a .wav file through the loudspeakers (and displaying a little window in the desktop). But what happens if I am in a text console? Let's says I pressed Ctrl+Alt+F3. So now I am in virtual console #3. Shall I hear the sound? This question mortifies me.

View 1 Replies View Related

General :: Left Arrow Button Is Not Working In The Output Console?

Dec 6, 2010

I am having a java program which will read characters from console. i have started my program from bash shell and now the program starts and waiting for the inputs. Say I have typed text , "hello". If i try to move the cursor position back wards using the left arrow button it was not working. Instead some junk characters are printed on the console like ^[[C .

hello^[[C^[[C^[[C^[[C^[[C

Below is my program.

public static void main(String as[]) {
BufferedWriter outputWriter =
new BufferedWriter(new PrintWriter(System.out));

[code]....

Note: In windows its working fine.

View 6 Replies View Related

Debian :: Gfxpayload And Console Color?

Mar 21, 2011

I'm trying to setup X-less (console only) system on my old laptop. Everything works great, except colors of the console. When grub2's "gfxpayload" is not set, all colors appear fine, but when I set gfxpayload=1024x768" it starts with the correct resolution, but all color that's supposed to be white, appears teal (sea green).Interesting thing is that bold text in man pages appears white but not bold. Hyperlinks in links also appear white, although the selected hyperlink appears with a teal background. So the driver apperently can display other colors, but what's stopping it? Erasing "gfxpayload=1024x768" restores the colors back. Changing font's face and size didn't help. Using screen didn't help. GPM's pointer appears as a teal rect.

View 3 Replies View Related

Programming :: Get Console Font Color

Jun 20, 2011

I've coma across a problem I have not been able to solve myself. Is there a function in the linux API similar to GetConsoleScreenBufferInfo() on Windows? refer to: http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

I only need to get the current color settings of the active terminal.

View 3 Replies View Related

General :: Turn Off Monitor (Energy Saving) While In Text Console Mode

Nov 3, 2010

How to configure Linux text console to automatically turn of the monitor after some time? And by "text console" I mean that thing that you get on ctrl+alt+F[1-6], which is what you get whenever X11 is not running. And, no, I'm not using any framebuffer console (it's a plain, good and old 80x25 text-mode). Many years ago, I was using Slackware Linux, and it used to boot up in text-mode. Then you would manually run startx after the login. Anyway, the main login "screen" was the plain text-mode console, and I remember that the monitor used to turn off (energy saving mode, indicated by a blinking LED) after some time. Now I'm using Gentoo, and I have a similar setup.

The machine boots up in text-mode, and only rarely I need to run startx. I say this because this is mostly my personal Linux server, and there is no need to keep X11 running all the time. (which means: I don't want to use GDM/KDM or any other graphical login screen). But now, in this Gentoo text-mode console, the screen goes black after a while, but the monitor does not enter any energy-saving mode (the LED is always lit). Yes, I've waited long enough to verify this. Thus, my question is: how can I configure my current system to behave like the old one? In other words, how to make the text console trigger energy-saving mode of the monitor?

View 1 Replies View Related

General :: Output The Mirror Image Of This Text?

Mar 3, 2011

I copied and pasted this from someones signature.d/__How did they write that horizontally mirrored 'd' at the end? How do I do that in Linux?

View 5 Replies View Related

General :: Saving The Output Of "ls" Command In Color?

Nov 25, 2010

When I save the output of "ls" command to a "txt" or "rtf" file, the color information is lost. Is there any way to retain the color code of different files/directories obtained by the command "ls --color" while saving?

View 14 Replies View Related

General :: Errors In Console-text That Appears While The Debian OS Is Loading - Play Music - No Sound

Jul 11, 2011

I've been using Linux for about a week, now, and yesterday I finally got my audio to work. Before shutting-down yesterday, I installed some more audio-plugins. When I started-up my computer today, there were errors in the console-text that appears while the Debian Linux OS is loading. When I got to the desktop, I tried to play music, but no sound came-out. So, I tried to uninstall the plugins I installed yesterday and restarted. I got similar errors in the console-text as earlier. When my desktop loaded, I still had no sound. I had several problems with the entire sound architecture of the computer. I made some more changes in the application-download-manager-thingy and restarted and I no longer got the errors at boot-time.

Unfortunately, I still have absolutely no sound, and it appears as if ALSA is effectively dead. My soundcards are Rocketfish (PCI) and Realtek HD Audio (Integrated). I got Realtek to work yesterday with OSS.

Another problem is that WINE doesn't work, with the exception of WINE's default programs. I've been trying to get this thing to work for at least four days now, and I've made absolutely no progress...

Also, after fighting with it for a few days, I finally managed to get the internet to work, but Linux still thinks that I'm offline. It's really weird. This one's not so much of a problem as it is annoying. In addition, if I click-on the network-manager-thingy, it says that none of my connections have ever been used. Odd.

View 4 Replies View Related

Programming :: Sed To Output Block Of Text If Specified Text Is Matched?

Feb 13, 2010

I am trying to find sed command combination to print out the "start command" line, the id line and all lines between "details" and "stop command" only if "error" exists. Here's the original output (test.txt):

start command
id 1
kajsdlfjsalj

[code]...

View 3 Replies View Related

General :: Output A Text File In Proper Format?

Mar 4, 2010

it compares two files using md5... if they are same , a corresponding character is output to a text file .. but the problem is it gets appended by default.. is there any way to output in a normal way because the text is a message and it should be of proper format
here is my script

Code:

#!/bin/bash
g=`tail -1 new.txt|head -n 1`
array=( a b c d e f g h i j k l m n o p q r s t u v w x y z )
for((i=1 ; i <$g+1 ; i++))

[code]....

the message is supposed to be hello , i need to get rid of the endlines somehow..

View 2 Replies View Related

General :: Output To A Text File, The Results Of Compound Command?

Jul 28, 2010

How to output to a text file the compound command:

Code:
find -type f -print0 | xargs -0 grep -l "desired text"
I have not been able to find the answer.

[code]...

View 5 Replies View Related

General :: Read Data From Text File And Output Into A Table?

Apr 12, 2010

I'm having a slight dilemma on reading data from a text file and outputting it into a table then displaying it. Basically I'm writing a shell script that takes information from text files then outputs the data into a table with 4 headings.he extracting of the data is fine, but creating a table i'm having problems with. I think it is possible to do it using the awk function, but so far i'm having a lot of difficulties.

View 14 Replies View Related

General :: Iperf Won't Export All Command Output To Text File?

Oct 18, 2010

I've created a script to test network speeds but I've run in to a little problem. The command outputs this:

Code:
Client connecting to 192.168.111.230, UDP port 5001
Sending 1470 byte datagrams

[code]...

View 1 Replies View Related

General :: Script To Output Both The Stderr And Stdout To The Same Text File?

Aug 5, 2011

Am having issues getting the output from a script to be logged in a file. I need the script to output both the stderr and stdout to the same text file.

At present I have the following script:

Code:
#!/bin/bash
echo TR3_1 > printers.txt
snmpget -v 1 -c public 10.168.**.* SNMPv2-SMI::mib-2.43.10.2.1.4.1.1 &>> printers.txt

[Code].....

View 4 Replies View Related

General :: Write Expdp Output In A Text File Using A Shell Script ?

Feb 7, 2011

I want to write expdp output in a text file using a shell script

If i write like below:

It will write whatever is there in log file to text file

But, sometimes export fails with out start taking export (without generating log file) because of job already exists error. such times, we dont know about that error until we check manually... so i wrote like below:

But still it is not writing anything in to text file using above stmt...

View 1 Replies View Related

Red Hat / Fedora :: Change Input/Output Color In Bash?

Jun 5, 2009

When in the interactive envirment, my Input and Output are all mess-up. So i want to color the Input and Output with two different colors.. so i can figure them out..

View 1 Replies View Related

Programming :: Changing Color Of Output From Bash Script?

Apr 22, 2010

I am writing a bash script that utilizes the output of another script (which I will refer to as script#2.) Script#2 is not owned by me, I cannot modify it. All of the output from script#2 is blue, which makes it difficult for me to read.

I would like to have the output of it changed to grey. Is there a way I can do that in my script? A command I can pipe the output to?

Edit: One other question related to this. I put a trap function in my script that works well. Script#2 essentially runs a tail -f. When I ctrl+c to stop it, it stops script#2 and never calls the trap in my script. Is there any way I can work around that?

View 3 Replies View Related

Ubuntu :: Firefox Menu Text Color?

Oct 8, 2010

I just upgraded to Maverick this afternoon, and have run into one very small, but very annoying problem.

Since upgrading, the text color for the Firefox menu is black. This makes it unreadable/invisible using probably the majority of personas. I have been able to find no way of changing this color. This was not an issue in Lucid.

There have been other threads on this subject, some of which suggest editing a userChrome.css file. I have edited that file, but upon restarting Firefox, the changes I have made revert back to what they had been before I made my edits.

I have also fiddled around with trying to change all manner of GTK settings, but still nothing has had any influence. I logged into a Gnome session, as well, but was still unable to remedy this.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved