Sponsored Content
Full Discussion: using colors in mailx
Top Forums Shell Programming and Scripting using colors in mailx Post 302145274 by porter on Tuesday 13th of November 2007 03:20:02 PM
Old 11-13-2007
This has been asked a number of times but basically there are two main forms of mail...

1. simple text

2. mime encoded html

unless you do something fancy, mailx will assume 1.

If you want colours, font attributes etc, then you need to send it as legal HTML and need to set the mime encoding to indicate such. This will then be illegable to people without HTML parsers in their mail clients.

If people are using small handhelds to receive these emails I advise against HTML, keep things simple.
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

xterm colors

I'm a new user to unix and I want to be able to pick and choose different xterm colors via 3rd botton menu. I'm currently pico'd into my .fvwm2rc file and this is what I have under my bottons: Please advise ############ # Button 1 #... (2 Replies)
Discussion started by: blica777
2 Replies

2. UNIX Desktop Questions & Answers

colors

Hello, I am somewhat new to linux. I just installed Red Hat 7.2 and when I try to load gnome or KDE in colors above 8bit it will kind of lock up and display some wierd scrambled cable look. I have an ATI Radeon 7000. I check out my monitor settings they are fine. Is it the graphics card? I set my... (1 Reply)
Discussion started by: Sage3k
1 Replies

3. UNIX for Dummies Questions & Answers

mailx error message : mailx: NUL changed to @

If I use the "Mail" link instead of the "mail" link to ../mailx I get this error. Mail so-n-so @whatever.com mailx: NUL changed to @ Unknown command: "postmaster" The email still goes through but i get the error. If I use "mail" it goes thru without the error. Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

4. Solaris

Console colors

Guys i used to the black background in BSD, now im using Sun Solairs, how can i change the background and font colors in console ?, i heard about setterm but i didnt get the right syntax, any ideas ? (5 Replies)
Discussion started by: XP_2600
5 Replies

5. UNIX for Dummies Questions & Answers

Directory colors

Hey guys, When I used a Solaris box way back I had directory, file , symbolic link colors, etc... I can't seem to find the .dircolors file and how i set it up for bash on Solaris... anyone remember how to do it? Thanks! (2 Replies)
Discussion started by: kingdbag
2 Replies

6. UNIX for Dummies Questions & Answers

Colors

Is there a way with the bourne shell to have different types of files show up a different color when you do ls? (1 Reply)
Discussion started by: resullivan
1 Replies

7. UNIX for Advanced & Expert Users

Terminal colors

Hi, is there a way to change the colors used in ls --color=always? I tried to define LSCOLOR and CLICOLOR but it doesn't work! Bye... (2 Replies)
Discussion started by: TShirt
2 Replies

8. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

9. UNIX for Dummies Questions & Answers

Colors not being Interpreted

Hello, I am having an issue with ANSI colors in Redhat linux. I am running a script where the colours have been set very early on as follows: # Reset Color_Off='\033 Later in the script these are used to color define sections of output by reffering to them using: ${White} blah blah blah... (4 Replies)
Discussion started by: Pedro72
4 Replies

10. Programming

Ncurses colors

I am using ncurses to develop a user interface. Perhaps I should be using something else, but I am reasonably comfortable with ncurses and don't really want to climb another learning curve at this time. One problem I have dealt with for many years is ncurses' colors. I have simply been... (23 Replies)
Discussion started by: BillLee
23 Replies
I3-MSG(1)							     i3 Manual								 I3-MSG(1)

NAME
i3-msg - send messages to i3 window manager SYNOPSIS
i3-msg [-t type] [message] IPC MESSAGE TYPES
command The payload of the message is a command for i3 (like the commands you can bind to keys in the configuration file) and will be executed directly after receiving it. get_workspaces Gets the current workspaces. The reply will be a JSON-encoded list of workspaces. get_outputs Gets the current outputs. The reply will be a JSON-encoded list of outputs (see the reply section). get_tree Gets the layout tree. i3 uses a tree as data structure which includes every container. The reply will be the JSON-encoded tree. get_marks Gets a list of marks (identifiers for containers to easily jump to them later). The reply will be a JSON-encoded list of window marks. get_bar_config Gets the configuration (as JSON map) of the workspace bar with the given ID. If no ID is provided, an array with all configured bar IDs is returned instead. DESCRIPTION
i3-msg is a sample implementation for a client using the unix socket IPC interface to i3. EXAMPLES
# Use 1-px border for current client i3-msg "border 1pixel" # You can leave out the quotes i3-msg border normal # Dump the layout tree i3-msg -t get_tree ENVIRONMENT
I3SOCK If no ipc-socket is specified on the commandline, this variable is used to determine the path, at wich the unix domain socket is expected, on which to connect to i3. SEE ALSO
i3(1) AUTHOR
Michael Stapelberg and contributors i3 4.1.2 01/01/2013 I3-MSG(1)
All times are GMT -4. The time now is 03:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy