Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmdatafieldsethighlight(3) [centos man page]

XmDataFieldSetHighlight(library call)									     XmDataFieldSetHighlight(library call)

NAME
XmDataFieldSetHighlight -- A DataField function that highlights text SYNOPSIS
#include <Xm/DataF.h> void XmDataFieldSetHighlight( Widget widget, XmTextPosition left, XmTextPosition right, XmHighlightMode mode); DESCRIPTION
XmDataFieldSetHighlight highlights text between the two specified character positions. The mode parameter determines the type of highlight- ing. Highlighting text merely changes the visual appearance of the text; it does not set the selection. widget Specifies the DataField widget ID left Specifies the position of the left boundary of text to be highlighted. This is an integer number of characters from the begin- ning of the text buffer. The first character position is 0 (zero). right Specifies the position of the right boundary of text to be highlighted. This is an integer number of characters from the begin- ning of the text buffer. The first character position is 0 (zero). mode Specifies the type of highlighting to be done. A value of XmHIGHLIGHT_NORMAL removes highlighting. A value of XmHIGH- LIGHT_SELECTED highlights the test using reverse video. A value of XmHIGHLIGHT_SECONDARY_SELECTED highlights the text using underlining. For a complete definition of DataField and its associated resources, see XmDataField(3). RELATED
XmDataField(3). XmDataFieldSetHighlight(library call)

Check Out this Related Man Page

XmTextSetSource(library call)											     XmTextSetSource(library call)

NAME
XmTextSetSource -- A Text function that sets the source of the widget SYNOPSIS
#include <Xm/Text.h> void XmTextSetSource( Widget widget, XmTextSource source, XmTextPosition top_character, XmTextPosition cursor_position); DESCRIPTION
XmTextSetSource sets the source of the Text widget. Text widgets can share sources of text so that editing in one widget is reflected in another. This function sets the source of one widget so that it can share the source of another widget. Setting a new text source destroys the old text source if no other Text widgets are using that source. To replace a text source but keep it for later use, create an unmanaged Text widget and set its source to the text source you want to keep. widget Specifies the Text widget ID. source Specifies the source with which the widget displays text. This can be a value returned by the XmTextGetSource(3) function. If no source is specified, the widget creates a default string source. top_character Specifies the position in the text to display at the top of the widget. This is an integer number of characters from the begin- ning of the text buffer. The first character position is 0 (zero). cursor_position Specifies the position in the text at which the insert cursor is located. This is an integer number of characters from the begin- ning of the text buffer. The first character position is 0 (zero). For a complete definition of Text and its associated resources, see XmText(3). RELATED
XmText(3). XmTextSetSource(library call)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Finding text

i do a search in vi for a word by: /<word> but then everytime i view or type that word from there out, it highlights it, how do i shut this "find" off? (1 Reply)
Discussion started by: ASpin
1 Replies

2. Shell Programming and Scripting

Please help me..(unix script)...

Dear Friends, I am facing a problem while selecting the test that is between start and end tags. i have a file contains, -------------- <abc> some text some text some text some text some text some text some text some text some text </abc> ===blank line====== <abc> some text some text... (7 Replies)
Discussion started by: swamymns
7 Replies

3. Shell Programming and Scripting

"highlighting the text in ur output"

Hi, Can anyone tell me..how to highlight a particular part of ur output text in shell programming..say,if all the o/p is against black bground,i need some text to be against white bground.. eg..You can see some text highlighted in man pages .Right?? But how ll you do that. Thanx (6 Replies)
Discussion started by: sakthi.abdullah
6 Replies

4. Shell Programming and Scripting

Search term highlighting using "less"

I'm using less to find terms in a 6 gb text file in OS X in the terminal. When I first search for the patter, it finds it, scrolls the document to the correct location, and highlights it. But when I search again, the document scrolls to a new further location (I'm assuming it's found the pattern... (2 Replies)
Discussion started by: garethson
2 Replies

5. UNIX for Dummies Questions & Answers

Help with deleting characters from text file

I have a text file that looks like this: I want to delete the last character of first column in all rows so that my output looks like this: Thanks a lot! (1 Reply)
Discussion started by: evelibertine
1 Replies

6. Shell Programming and Scripting

Extract text between two character positions

Greetings. I need to extract text between two character positions, e.g: all text between character 4921 and 6534. The text blocks are FASTA-format sequence of whole chromosomes, so basically a million A, T, G, C, combinations. E.g: >Chr_1 ACCTGTTCAACTCTCAGGACTCTCAGGTCAACTCTCAG... (3 Replies)
Discussion started by: Twinklefingers
3 Replies

7. Programming

Shifting text

I have the following functions which shifts the text by 4 and 8 characters. How can I pass an integer for the shift so that the text is shifted accordingly? void prValue4_vd ( FILE* stream, // name of output stream const char* value, // value associated with argument... (2 Replies)
Discussion started by: kristinu
2 Replies