XmTextInsert(3X)XmTextInsert(3X)NAME
XmTextInsert - A Text function that inserts a character string into a text string
SYNOPSIS
#include <Xm/Text.h>
void XmTextInsert(widget, position, value)
Widget widget;
XmTextPosition position;
char * value;
DESCRIPTION
XmTextInsert inserts a character string into the text string in the Text widget. The character positions begin at zero and are numbered
sequentially from the beginning of the text. For example, to insert a string after the fourth character, the parameter position must be 4.
This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCall-
backWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed
first and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. Specifies the Text widget ID. Specifies the position
in the text string where the character string is to be inserted. Specifies the character string value to be added to the text widget.
For a complete definition of Text and its associated resources, see XmText(3X).
SEE ALSO XmText(3X), XmTextInsertWcs(3X)XmTextInsert(3X)
Check Out this Related Man Page
XmTextInsert(library call) XmTextInsert(library call)
NAME
XmTextInsert -- A Text function that inserts a character string into a text string
SYNOPSIS
#include <Xm/Text.h>
void XmTextInsert(
Widget widget,
XmTextPosition position,
char * value);
DESCRIPTION
XmTextInsert inserts a character string into the text string in the Text widget. The character positions begin at 0 (zero) and are numbered
sequentially from the beginning of the text. For example, to insert a string after the fourth character, the parameter position must be 4.
This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCall-
backWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed first
and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. If the XmNcursorPosition resource is greater than or is the
same value as position, the XmNmotionVerifyCallback is called.
Note that, if value is a null string, no callbacks will be generated, since no modifications will have been made.
widget Specifies the Text widget ID.
position Specifies the position in the text string where the character string is to be inserted.
value Specifies the character string value to be added to the text widget.
For a complete definition of Text and its associated resources, see XmText(3).
RELATED XmText(3) and XmTextInsertWcs(3).
XmTextInsert(library call)
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)
Hello. Trying to insert text at line 1 and after last line of file. I have searched posts but nothing seems to work. I keep getting extra characters error or nothing gets inserted into the file.
#!/bin/sh
touch textfile.txt
sed 'i\
Add this line before every line with WORD' textfile.txt
... (5 Replies)
Hi,
If, in a text file a string is expected at a certain fixed position(for eg at position 5 or from 5-10 on every line)
how to check whether data is present on that position or not?
Thnx in advance (6 Replies)
i have a file contains like this:
i want to create a script that will insert a comma "." after the 10th character so it would be look like this
thanks in advance (5 Replies)
Hi All,
I'm writing a script where one of the parameter is a string like:
0011001100
Then I want to do a while loop, according to the value of each character.
Could tell how I can access the value of each character in the string?
Thank you,
Gino (6 Replies)
Depending upon character at particular position in a line, string needs to be appended followed by empty spaces till 256th column position at the end of the each line in the file.
example:
123p4 J8769
123q4 R2345
123r4 S2345
What I Require is, it has to check at 7th column character and... (10 Replies)
I have one text file which is result of bdf command that have 6 fields separated by space and I want to add one new column in the beginning which is the name of the server because I have to insert whole thing into oracle table consisting of 7 fields
THis is not a complete list but it looks... (9 Replies)
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)
I just want to add a particular string in text file using shell script
text file format
1 columns-10
2 text=89
3 no<>
4
5 test-9876
6 size=9
string need to insert in 4th line
<switch IP='158.195.2.567' port='5900' user='testc' password='asdfrp' Code='8'>
After inserting the... (8 Replies)
Hi All,
Can someone pls help me to insert some text on a file.
my file contains something like below..
AKBULBU,
BALUMIL,
BATCH,BATCH
BOARROB,
BOTAKAT,
C57896,
CAKIOZE,
CHECMER,
CICOFRA,
CISZPAW,2194485
I want output as
USER_ID, LOGIN_ID (6 Replies)
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)
I have a string
-----
i want to replace the 3rd '-' with a character
How can i do that
Basically im trying to do hangman
I have added the '-----' string to a file called hash
and i have the character in a variable called $input
also i have the character location(index) in this variable... (12 Replies)
I have a file that has some text that looks like this
Some Text
1. More text
2. Different text
Final Text
I would like the remove the lines of text that start with the numbers.
Some Text
Final Text
I have tried to use cat file.txt | grep -Ev 1. >... (9 Replies)
I want to insert "Text" in each file as a place where I mentioned below "Insert Text Here". These files are something like news of newspaper. Generally, newspaper headlines contain one or two lines.
I don't know how it can be identified whether Text is inserted after first line or second line.
... (10 Replies)