Sponsored Content
Full Discussion: carriage return stamp online
Top Forums UNIX for Advanced & Expert Users carriage return stamp online Post 43749 by tullo on Friday 21st of November 2003 12:08:42 PM
Old 11-21-2003
The program use carriage return for exsample for the BOLD character.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

carriage return/line feeds

Hello, I have a file that has got carriage returns in it and I want to take them out. Anyone know how I can do this in a ksh? thanks (4 Replies)
Discussion started by: pitstop
4 Replies

2. Shell Programming and Scripting

Capture carriage return.

I try to test the carriage return in a variable. $ LENGTH=`expr $VARIABLE : ".*"` will return the length of the variable. But this doesn't work if $VARIABLE has zero length. Any help will be well appreciated. Thanks in advance. Giovanni (4 Replies)
Discussion started by: gio123bg
4 Replies

3. Shell Programming and Scripting

Dont want carriage return

I have observed with print & echo, they produce carriage return <CR> or newline, after they display string next to them. Is there anyway to avoide these <CR> after the intended string is displayed? (3 Replies)
Discussion started by: videsh77
3 Replies

4. UNIX for Dummies Questions & Answers

carriage return and linefeed

hi can anyone please tell me the difference between carriage return, linefeed and newline ? (2 Replies)
Discussion started by: streetfi8er
2 Replies

5. Shell Programming and Scripting

Lost carriage return when assign

Hello . Now i have a different problem, lost "carriage return" when assigning a variable. The assignation is done in a peculair way but its ok. The variable "v_tmp" have spaces and carriage return. Its created with v_tmp=`echo $i | awk '.........'` And the assignation where i lost all the... (6 Replies)
Discussion started by: trutoman
6 Replies

6. Shell Programming and Scripting

2 carriage return within a record

Hi all, need your help in replacing carriage return in a record. Input: col1|col2|col3|col4|col5|col6|col7|col8|col9|col10 1|aa|bb|cc|dd|eee eee|ff|ggggg|hh hhh|iii 2|zz|yy|xx|ww|vv|uu|tt|ss|rr Output: col1|col2|col3|col4|col5|col6|col7|col8|col9|col10... (12 Replies)
Discussion started by: agathaeleanor
12 Replies

7. Shell Programming and Scripting

Search_Replace with a Carriage Return

Hey folks, I've been working on this for some time. Seems simple, but I'm stumped. I need the following data format: New_York:Commercial Geology Geophysics Petrophysics Production_Engineering Reservoir_Engineering Pasadena:Commercial ... (5 Replies)
Discussion started by: leepet01
5 Replies

8. Shell Programming and Scripting

Carriage return ksh

Hello, How do i usecarriage return in ksh. I want to do an echo "bla bla" and another echo "bla bla" will appear and replace the first echo on screen. I tried: until ; do echo "bla bla \r" done please advice. Thanks. (3 Replies)
Discussion started by: LiorAmitai
3 Replies

9. Shell Programming and Scripting

Substitute \n with carriage return

Hello all, I've a flat file in the following format: AB\001\CDED\001\ABC\001\nEG\001\HIJF\001\EFG\001\nHI\003\HIUL\003\HIJ\003 And I want to substitute \n with the carriage return. Any help is appreciated! Regards, - Seth (8 Replies)
Discussion started by: sethmj
8 Replies

10. UNIX for Dummies Questions & Answers

Remove carriage return

I need to remove the carriage return comes inbetween the record. Need to have CR only at the end. I used the below command. tr -d '\n' < filewithcarriagereturns > filewithoutcarriagereturns But its removing all the CR and giving one line output. Input File: 12345 abcdegh... (11 Replies)
Discussion started by: srvn_saru
11 Replies
DHEXRC(5)						      BSD File Formats Manual							 DHEXRC(5)

NAME
dhexrc -- Configuration File for dhex DESCRIPTION
dhexrc is the configuration file that specifies the colorscheme and the key translation tab for dhex(1), Upon starting the program, it is being read and parsed. It is being written and/or created after invoking the keyboard setup. EXAMPLE A typical .dhexrc file looks like this: '#DHEXCOLORSCHEME' '#VERSION 0' '#possible colors are: BLACK,RED,GREEN,YELLOW,BLUE,MAGENTA,CYAN,WHITE' '#possible extra flags are: UNDERLINE,REVERSE,BLINK,DIM,BOLD' 'BRACKETS: FG=BLACK,BG=BLACK,BOLD' 'HEXFIELD: FG=WHITE,BG=BLACK' 'INPUT: FG=BLACK,BG=WHITE' 'CURSOR: FG=WHITE,BG=BLACK' 'TEXT: FG=WHITE,BG=BLACK,BOLD' 'MENU_NORMAL: FG=CYAN,BG=BLACK' 'MENU_HIGHLIGHT: FG=BLACK,BG=CYAN' 'MENU_HOTKEY: FG=YELLOW,BG=BLACK,BOLD' 'MENU_HOTKEY_HI: FG=YELLOW,BG=CYAN,BOLD' 'FRAME: FG=BLUE,BG=BLACK,BOLD' 'NORMAL_DIFF: FG=YELLOW,BG=BLACK' 'CURSOR_DIFF: FG=YELLOW,BG=WHITE,BOLD' 'HEADLINE: FG=BLUE,BG=BLACK,BOLD' 'HEADER: FG=BLACK,BG=CYAN' 'KEYF1:1b 5b 31 31 7e' 'KEYF2:1b 5b 31 32 7e' 'KEYF3:1b 5b 31 33 7e' 'KEYF4:1b 5b 31 34 7e' 'KEYF5:1b 5b 31 35 7e' 'KEYF6:1b 5b 31 37 7e' 'KEYF7:1b 5b 31 38 7e' 'KEYF8:1b 5b 31 39 7e' 'KEYF9:1b 5b 32 30 7e' 'KEYF10:1b 5b 32 31 7e' 'KEYESC:1b' 'KEYBACKSPACE:08' 'KEYDEL:7f' 'KEYENTER:0a' 'KEYTAB:09' 'KEYUP:1b 5b 41' 'KEYDOWN:1b 5b 42' 'KEYRIGHT:1b 5b 43' 'KEYLEFT:1b 5b 44' 'KEYPGUP:1b 5b 35 7e' 'KEYPGDOWN:1b 5b 36 7e' 'KEYHOME:1b 5b 37 7e' 'KEYEND:1b 5b 38 7e' OPTIONS
In the example above, the dhexrc file has three distinct sections: A comment section, a color section and a key conversion tab section. Comments Comments are indicated with a '#' character. Everything afterwards in a line is being ignored when parsing the file Color section There are 14 color groups. Each of the color group has a foreground color, a background color and some extra flags, coming from ncurses. The foreground color is being defined by FG= while the background color is being defined by BG=. They and the extra flags are being separated by ','. Possible colors are BLACK, GREEN, RED, YELLOW, BROWN, BLUE, MAGENTA, WHITE, and exclusively as foreground colors LIGHTBLACK, LIGHTGREEN, LIGHTRED, LIGHTYELLOW, LIGHTBROWN, LIGHTBLUE, LIGHTMAGENTA and LIGHTWHITE. Valid extra flags are UNDERLINE, REVERSE, BLINK, DIM and BOLD. The color pairs are as followed: BRACKETS: This specifies the color for the brackets around text fields. HEXFIELD: This specifies the color in which the file's content is being shown. INPUT: When entering text, it is in this color. CURSOR: The cursor in the hex field has this color. TEXT: This color is for informative text as well as for text fields which are not taking input yet. MENU_NORMAL: Menu items which are not selected belong into this color group. MENU_HIGHLIGHT: The selected menu item gets this special color. MENU_HOTKEY: Hotkeys for menu items are visually distinct from the rest of the text because they have this color. MENU_HOTKEY_HI: If the actual menu item has a hotkey, it is shown in this color. FRAME: Some screens have frames. Those frames have this color. NORMAL_DIFF: Differences in the file's content (either because of changes or because dhex is running in diff mode) are indicated by this color. CURSOR_DIFF: If the cursor is on one of those differences, it will have this color. HEADLINE: On top of the screen, there is a headline. Which is shown in this color. HEADER: In the headline, there are brackets. Within those brackets is the header. It tells you what the window is all about. Key conversion tab section When pressing a "standard" key, something which can be mapped directly to an ascii character, only this character will end up in ncurses' buffer. However, pressing special keys like (for example) F1 or ALT+6 will produce longer sequences. Mapping those sequences back to a spe- cific key is the job of the key conversion tab. (I was dissatisfied how ncurses handled this on its own). The sequences are called (in order) KEYF1, KEYF2, KEYF3, KEYF4, KEYF5, KEYF6, KEYF7, KEYF8, KEYF9, KEYF10, KEYESC, KEYBACKSPACE, KEYDEL, KEYENTER, KEYTAB, KEYUP, KEYDOWN, KEYRIGHT, KEYLEFT, KEYPGUP, KEYPGDOWN, KEYHOME and KEYEND. Sequences itself are a string of lower case hex-values, each two nibbles long. Currently, there is no way of adding an alternative sequence to the same key. It is possible that the sequence made up of hex values does not REALLY belong to the key. (For example if F2 was pressed in the setup program when F1 was prompted). However, when this sequence ends up in the ncurses buffer, it is being interpreted as if that key was pressed. BUGS
Report bugs to <dettus@dettus.net>. Make sure to include DHEX somewhere in the subject. AUTHOR
Written by Thomas Dettbarn SEE ALSO
dhex(1), dhex_markers(5), dhex_searchlog(5) BSD
May 12, 2012 BSD
All times are GMT -4. The time now is 01:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy