Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmtextsethighlight(3x) [osf1 man page]

XmTextSetHighlight(3X)													    XmTextSetHighlight(3X)

NAME
XmTextSetHighlight - A Text function that highlights text SYNOPSIS
#include <Xm/Text.h> void XmTextSetHighlight (widget, left, right, mode) Widget widget; XmTextPosition left; XmTextPosition right; XmHighlightMode mode; DESCRIPTION
XmTextSetHighlight highlights text between the two specified character positions. The mode parameter determines the type of highlighting. Highlighting text merely changes the visual appearance of the text; it does not set the selection. Specifies the Text widget ID Specifies the position of the left boundary of text to be highlighted. This is an integer number of characters from the beginning of the text buffer. The first character position is 0. Specifies the position of the right boundary of text to be highlighted. This is an integer number of characters from the beginning of the text buffer. The first character position is 0. Specifies the type of highlighting to be done. A value of XmHIGHLIGHT_NORMAL removes highlighting. A value of XmHIGHLIGHT_SELECTED highlights the text using reverse video. A value of XmHIGHLIGHT_SECONDARY_SELECTED highlights the text using underlining. For a complete definition of Text and its associated resources, see XmText(3X). SEE ALSO
XmText(3X) XmTextSetHighlight(3X)

Check Out this Related Man Page

XmTextGetSelectionPosition(3X)											    XmTextGetSelectionPosition(3X)

NAME
XmTextGetSelectionPosition - A Text function that accesses the position of the primary selection SYNOPSIS
#include <Xm/Text.h> Boolean XmTextGetSelectionPosition (widget, left, right) Widget widget; XmTextPosition *left; XmTextPosition *right; DESCRIPTION
XmTextGetSelectionPosition accesses the left and right position of the primary selection in the text buffer of the Text widget. Specifies the Text widget ID Specifies the pointer in which the position of the left boundary of the primary selection is returned. This is an inte- ger number of characters from the beginning of the buffer. The first character position is 0. Specifies the pointer in which the position of the right boundary of the primary selection is returned. This is an integer number of characters from the beginning of the buffer. The first character position is 0. For a complete definition of Text and its associated resources, see XmText(3X). RETURN VALUE
This function returns True if the widget owns the primary selection; otherwise, it returns False. SEE ALSO
XmText(3X) XmTextGetSelectionPosition(3X)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

vi problem

Wat I can do for example to locate the word "happy" in the text from the beginning of the text? Thanks for help. (3 Replies)
Discussion started by: uct
3 Replies

2. UNIX for Dummies Questions & Answers

need to read 3° character from a text file

Hi, I need a script to read the n° character from a text file. eg: if the text file contains the line "123456" ,I nedd a command to display the number 4, as an example. I tried with awk and printf but it seems only works with words separated with spaces, but in this case I have only one word... (15 Replies)
Discussion started by: piltrafa
15 Replies

3. Shell Programming and Scripting

Adding Text To each line of a file

How would I add text to the beginning of each line in a text file in a script right after the file is created from another text file. (4 Replies)
Discussion started by: cubs0729
4 Replies

4. Shell Programming and Scripting

Moving part of Text in a file

Hi, I have this text in a file where I need to move part of the text.... <Relation1 OriginatingObjectID="Holding_1" RelatedObjectID="Party_1" id="Relation_1"> <OriginatingObjectType tc="4">Holding</OriginatingObjectType> <RelatedObjectType tc="6">Party</RelatedObjectType>... (4 Replies)
Discussion started by: mgirinath
4 Replies

5. Shell Programming and Scripting

Need to split the file

I have a file that has text in the format below /users/test/krachel/ ! Some text ! Some Text /user/test/limo ! some text ! some text ! Some text /user/test/krachel ! Some text How can I seperate the text between a pair of '/users/test/' into seperate files ??? any information... (11 Replies)
Discussion started by: getdpg
11 Replies

6. 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

7. Shell Programming and Scripting

Eleminating Duplicate IPs from a text file

Hey Guys I need to eleminate duplicate IP's from a text file using bash.Any suggestions.Appreciate your help guys. --CoolKid (4 Replies)
Discussion started by: coolkid
4 Replies

8. Shell Programming and Scripting

SED or AWK "append line to the previous line"

Hi, How can I remove the line beak in the following case if the line begin with the special char “;”? TEXT Text;text ;text Text;text;text I want to convert the text to: Text;text;text Text;text;text I have already tried to use... (31 Replies)
Discussion started by: research3
31 Replies

9. Shell Programming and Scripting

sed delete pattern with special characters

Hi all, I have the following lines <b>A gtwrhwrthwr text hghthwrhtwrtw </b><font color='#06C'>; text text (text) <b>B gtwrhwrthwr text hghthwrhtwrtw </b><font color='#06C'>; text text (text) <b>J gtwrhwrthwr text hghthwrhtwrtw </b><font color='#06C'>; text text (text) and I would like to... (5 Replies)
Discussion started by: stinkefisch
5 Replies

10. Shell Programming and Scripting

Read a text file and print the content..

hello all i request you to give the solution for the following problem.. I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print g go goo goog googl google like this Using unix Shell scripting... ... (7 Replies)
Discussion started by: samupnl
7 Replies

11. Shell Programming and Scripting

cut command issue from a line of text

Hi, I got a line of text which has spaces in between and it is a long stream of characters. I want to extract the text from certain position. Below is the line and I want to take out 3 characters from 86 to 88 character position. In this line space is also a character. However when using cut... (5 Replies)
Discussion started by: asutoshch
5 Replies

12. Shell Programming and Scripting

dig-x: only part of the output is needed

Hi everyone, how can I get the highlighted text only? I am only concerned with the first line of the "AUTHORITY SECTION" (in red). thank you in advance (4 Replies)
Discussion started by: Abdulelah
4 Replies

13. Programming

Parsing a Text file using C++

I was trying to parse the text file, which will looks like this ###XYZABC#### ############ int = 4 char = 1 float = 1 . . ############ like this my text file will contains lots of entries and I need to store these entries in the map eg. map.first = int and map.second = 4 same way I... (5 Replies)
Discussion started by: agupta2
5 Replies

14. Shell Programming and Scripting

Supress text

Hi, I was looking for a simple code to suppress the text between 2 characters. the characters can be of same kind like "*" or "(" and ")". The number of characters are not consistent and could vary. How can I suppress the text between 2 characters? Example: Input : Hello (Within Bracket)... (8 Replies)
Discussion started by: ahmedwaseem2000
8 Replies

15. UNIX for Beginners Questions & Answers

Sort a text file based on names in square brackets

Hi all, I have a text file similar to this: Text More text Etc Stuff That Is Needed Etc Etc This contains over 70 entries and each entry has several lines of text below the name in square brackets. (5 Replies)
Discussion started by: Scally
5 Replies