DtEditorSetInsertionPosition(library call) DtEditorSetInsertionPosition(library call)
NAME
DtEditorSetInsertionPosition -- set the position of the insert cursor in a DtEditor widget
SYNOPSIS
#include <Dt/Editor.h>
void DtEditorSetInsertionPosition(
Widget widget,
XmTextPosition position);
DESCRIPTION
The DtEditorSetInsertionPosition function sets the insertion cursor position of the DtEditor widget. The current position of the insertion
cursor can be retrieved with DtEditorGetInsertionPosition(3). The last text position of the DtEditor widget can be retrieved with DtEditor-
GetLastPosition(3).
The widget argument specifies the DtEditor widget ID.
The position argument specifies the position of the insertion cursor. This is an integer number of characters from the beginning of the
text buffer. The first character position is zero. Values greater than the last position place the cursor at the last position (that is,
at the end of the text).
For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3).
RETURN VALUE
The DtEditorSetInsertionPosition function returns no value.
SEE ALSO
Dt/Editor.h - DtEditor(5), DtEditor(3), DtEditorGetInsertionPosition(3), DtEditorGetLastPosition(3).
DtEditorSetInsertionPosition(library call)
Check Out this Related Man Page
DtEditorGetLastPosition(library call) DtEditorGetLastPosition(library call)
NAME
DtEditorGetLastPosition -- retrieve the position of the last character in a DtEditor widget
SYNOPSIS
#include <Dt/Editor.h>
XmTextPosition DtEditorGetLastPosition(
Widget widget);
DESCRIPTION
The DtEditorGetLastPosition function accesses the last text position in the DtEditor widget. The position is an integer number of charac-
ters from the beginning of the widget's buffer. Any text added to the end of the buffer is added after this position. The first character
position is zero. The last character position is equal to the number of characters contained in the widget.
The widget argument specifies the DtEditor widget ID.
For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3).
RETURN VALUE
Upon successful completion, the DtEditorGetLastPosition function returns an XmTextPosition value that indicates the last position in the
text; otherwise, it returns NULL.
APPLICATION USAGE
The position information is given in terms of characters, which may differ from the byte position when multi-byte code sets are in use.
SEE ALSO
Dt/Editor.h - DtEditor(5), DtEditor(3), DtEditorGetInsertionPosition(3), DtEditorSetInsertionPosition(3).
DtEditorGetLastPosition(library call)
Hi there,
Is there a way to position the cursor at EOF in vi, I know from the man pages how to position the cursor at the end of a paragraph, but what about the EOF (End Of File).
Regards (6 Replies)
Hi,
I have a EDI data file ARROWTEST of size 18246 characters. And I want to insert some data after 4200 position in the file. How I can find the position 4200 in that file....Please advise.
Regards, (5 Replies)
Hi I have a spaced filled file having records like below:
What I want is to read line having RT3 at position 17-19 then go to position 2651 check the 18 characters (might be space filled till 18 characters). This position should have a... (6 Replies)
i have following query
e.g i want the VI Editor cursor at line number N instead of 0 while opening the file from unix prompt.
vi filename ??????
Can anyone help? (4 Replies)
Hi
I'm trying to use awk in a file(test123.dat).
My requirement is to to check for the 65th position, if the 65th position is a space then replace the 65th position by the number 9.
This is the code that i used:
awk '{substr($0,65,1) ~ / / }{sub(substr($0,65,1),"9")}{print}' test123.dat
... (7 Replies)
my file:
S10000000146981+0000003113079+0000000096981
i'd like to copy position 31-44, and paste onto position 3-16
i'd like to replace position 31-44 with 0 (zero)
my final file should look like this:
S10000000096981+0000003113079+0000000000000
thanks in advanced. (10 Replies)
I want to remove text from nth position to nth position couple of times in same line
my line is
"hello is there anyone can help me with this question"
I need like this
ello is there anyone can help me with question
'h' is removed and 'this' removed from the line. I want to do this... (5 Replies)
I have been trying for a few days now and I can't figure out how to remove the text cursor in xterm.
Or, at least make the hollow box when the terminal is not active disapear.
example of what happens:
xterm*background: black
xterm*cursorColor: red
xterm*foreground: white... (5 Replies)
Hi All,
how to insert a '#' in the first position of all the files based on a certain condition.
I tried this:
cat /bin/user/input_file.txt | while read a
do
b=`sed 's/.*song=good.*/\#&/g' $a `
echo $b > /bin/user/new/output_file.txt
done
input_file.txt has list of names of 10... (5 Replies)
Hi not sure if this is possible but I need some help with a bash script, I have a text file and on the first line that starts with 7150230 I need it to put a 1 at position 79 and a 2 at position 88, this is where it gets complicated, on the next line it finds that starts with 7150230 I then need it... (8 Replies)
Hi,
I need to remove line breaks from a file, but only the ones at specific position.
Input file:
this is ok
this line is divided at posit
ion 30. The same as this one,
also position 30
the rest of lines are ok
with different lengths
The longest ones are always s
plitted at same... (15 Replies)
Hi there.
It's easier to explain this with a pseudo code, I hope this makes sense:
var1=hello
echo $var1
some kind of loop
echo loop counter
done
How do I hold the cursor position immediately behind the last output so I'd get something like:
hello123456789
DOS used to use ","... (5 Replies)
Hi All,
I have a file and it is a fixed length file. I want to move the values from 42,6 ( where 6 is length) to the 36th position
Original file:
00000100000100000100000100000100001 000870 ... (3 Replies)