Escape code problem again

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Escape code problem again
# 1  
Old 09-12-2011
Power Escape code problem again

Now theres another problem. I would like to output not just a colored block, but how would I output not a solid block character, but a shaded block instead?

Please help. I'm writing a library for these codes and this would really help.
# 2  
Old 09-12-2011
Assuming that this question builds on another thread, you should at the very least include a link to that thread.

# 3  
Old 09-12-2011
HTML Code:
# 4  
Old 09-13-2011
What type of terminal are you using (eg xterm, putty, vt220)?

For example if your using uxterm with a nice unicode (anything with the iso8859-1 eg -adobe-courier-bold-r-normal--34-240-100-100-m-200-iso8859-1)
You can just paste the U+2592 character straight into your echo:

$ echo -e '\E[46m\E[0m'

Last edited by Chubler_XL; 09-13-2011 at 01:53 AM..
# 5  
Old 09-14-2011
I need to echo it in Cygwin. So that doesn't work. And I also need it in a different color.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with escape in code

i want to add the code below to the end of every line in file4 im using this awk command to do this awk '{print $0"txt-to-print-here"}' file4 its not working because i think i need to escape the code please can someone show the right way thanks | sed 's~http*:/https:///~~g' > file1... (3 Replies)
Discussion started by: bob123
3 Replies

2. Shell Programming and Scripting

Perl/sed Escape Syntax Problem . . .

Greetings! I've run into this before; and am having a spot of trouble trying to figure out the way that Perl would prefer the following example syntax to be formed:#!/usr/bin/perl use strict; use warnings; use diagnostics; `sed -i 's/Hi Mom!\|Hi Dad!/Bye Everyone!/I' ./test.txt`;Perl... (5 Replies)
Discussion started by: LinQ
5 Replies

3. Shell Programming and Scripting

Escape Sequences

Hi Gurus, Escape sequences \n, \t, \b, \t, \033(1m are not working. I just practiced these escape sequences. It worked first. Later its not working. Also the command - echo inside the script editor shows as shaded by a color. Before that echo inside the script editor wont show like this.... (4 Replies)
Discussion started by: GaneshAnanth
4 Replies

4. Shell Programming and Scripting

Auto escape script to escape special chars in script args

This is a bit off the wall, but I often need to run scripts where there are argument values that contain special characters. For example, $ ./process.exe -t M -N -o temp.mol.s -i ../molfiles/N,N\',N\'\'-trimethylbis\(hexamethylene\)triamine.mol && temp.mol.s temp.s It... (1 Reply)
Discussion started by: LMHmedchem
1 Replies

5. Shell Programming and Scripting

Problem with Output of escape characters

I'm trying to figure out a problem. I echo a colored block character with this code: echo -e '\E It works. But the challenge is echoing two different blocks with two different colors. I tried everything. Heres what i tried: echo -e '\E Doesn't work. It only echoes the first block.... (2 Replies)
Discussion started by: tinman47
2 Replies

6. Shell Programming and Scripting

Problem with using a sed to add escape character \ before $ and ' symbols

Hi all, I've got a problem with sed. Want to use it to add escape character \ before $ and ' symbols so condition='1'$some will become condition=\'1\'\$some echo "condition='1'$some" | sed 's/\($\)/\\\1/g' is not working properly. Can somebody help me with this please? Regards,... (7 Replies)
Discussion started by: johny_be_good
7 Replies

7. Shell Programming and Scripting

SED: Replacing $1 with $2 escape problem

Hi all, I have a script which uses sed to replace one string with another. The problem is, the string to be matched, and its replacement are coming in as two command line arguments $1 and $2 $1 and $2 can be absolutely anything, but both should be treated purely as strings. My sed command... (7 Replies)
Discussion started by: mark007
7 Replies

8. Shell Programming and Scripting

Escape character

Hi , I want to change space to ' in my script. I tried doing this, sed 's/ /\'/g' filename but i could not get it. can some one help me please. Thanks, Deepak (4 Replies)
Discussion started by: deepakpv
4 Replies

9. UNIX for Advanced & Expert Users

escape from alom

No, its not a movie, its a command to get you from the sc> ALOM prompt back to the console or ok prompt. You must log into the ALOM, then to jump back to the console enter "console -f". Problem is that this leaves you logged in on the ALOM. Question: is there an escape key sequence to get... (1 Reply)
Discussion started by: jsy
1 Replies

10. UNIX for Dummies Questions & Answers

escape codes

I did a search and found the link for escape codes,- but I am not sure how to modify this script to set the margins. I started with a script that was already written on my system to set a printer to print landscape. I need to send an report that is in an ascii file to multiple printers from my... (1 Reply)
Discussion started by: MizzGail
1 Replies
Login or Register to Ask a Question