Sponsored Content
Full Discussion: Using color in scripts
Operating Systems Linux Ubuntu Using color in scripts Post 303033804 by wisecracker on Thursday 11th of April 2019 07:08:41 PM
Old 04-11-2019
I had to change my-hilite to ./my-hilite as I ran both files from my current directory:

My terminal is the default Apple Macbook Pro OSX 10.14.3, a derivative of xterm IIRC.

I called the first file 'Colour_test.sh' and the second 'my-hilite' see attached image.
The code works perfectly.


EDIT:
It's late here.
Goodnight all...
Using color in scripts-colourspng

Last edited by wisecracker; 04-11-2019 at 08:11 PM.. Reason: See EDIT:
 

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to change the background color in the init 3 mode(not line color)

Hello, I am using RHEL 6.1 on VMware I am searching for a way to change background color (not line by line color wich one can using tput command) basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies

2. UNIX for Beginners Questions & Answers

Text color in Linux scripts via putty

hi Folks, Can anyone help with changing the color of the words in a linux shell script? I get how to change default background etc in putty, but for some reason the text in the script has different colors for different parts of the cript. Is there a way to have one color in a linux shell... (5 Replies)
Discussion started by: jonnyd
5 Replies
vte(1)								   User Commands							    vte(1)

NAME
vte - virtual terminal emulator SYNOPSIS
vte [-2] [-A] [-a] [-B image] [-b] [-C] [-c command] [-D] [-d] [-f font] [-g] [-h] [-i] [-k] [-n] [-r] [-S] [-s] [-T] [-t terminal-type] DESCRIPTION
vte is simply a window wrapped around the vte embeddable terminal emulation control, which does most of the work for gnome-terminal. vte is used mainly to test the control. Most users do not need to use vte directly, but use gnome-terminal instead. OPTIONS
The following options are supported: -2 Toggle double buffering. Enabled by default. -A Toggle antialiasing. The default is that of the current GTK+ default. -a Toggle audible bell on/off. If audible bell is enabled, visible bell is disabled. If audible bell is disabled, visible bell is enabled. Audible bell enabled by default. -B image Use image as background. -b Toggle cursor blinking. Enabled by default. -C Open a "console" connection. -c command Fork the specified command. -D Use dingus clicking: as the cursor moves over text matching a certain pattern, the matched text is highlighted and the cur- sor changes shape. Disabled by default. -d Toggle update debugging. Disabled by default. -f font Specify the font to use. Default font is "Sans 12". -g Toggle whether to set geometry hints if font is changed. Enabled by default. -h Toggle highlighting. Disabled by default. -i Toggle whether to obey attempts to set the icon name, if applications running in the terminal request this. -k Toggle whether to keep program running after GTK main loop. Disabled by default. -n Specify the number of scrollback lines. Minumum number of scrollback lines is 100. Default number of scrollback lines is 100. -r Toggle whether to set cursor color to pale red. Disabled by default. -S Toggle launching a shell. Enabled by default. -s Toggle whether to scroll background image along with text. This option is only useful when combined with the -B option. Disabled by default. -T Use transparent background. Overrides the -B option. -t terminal-typeSpecify the terminal type to emulate. EXTENDED DESCRIPTION
vte is designed to emulate the xterm program provided by the X Consortium. In turn, xterm is an almost complete emulation of the DEC VT102 terminal. vte supports the same extensions to VT102 as those provided by xterm, through special escape sequences. xterm is an evolving program. Recent changes to xterm have been been incorporated into vte. This includes emulation of the newer DEC VT220 escape sequences. EXAMPLES
Example 1: Launching the Virtual Terminal Emulator example% vte ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables: VTE_PROFILE_MEMORY Virtualize memory allocation for debugging purposes. EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/vte Executable for virtual terminal emulator ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWvte | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
gnome-terminal(1), xterm(1), libvte(3) NOTES
Written by Johan Steyn, Sun Microsystems Inc., 2004. SunOS 5.10 6 Sep 2004 vte(1)
All times are GMT -4. The time now is 12:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy