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
DtEditorInsertFromFile(library call) DtEditorInsertFromFile(library call)
NAME
DtEditorInsertFromFile -- insert data from a file into a DtEditor widget
SYNOPSIS
#include <Dt/Editor.h>
DtEditorErrorCode DtEditorInsertFromFile(
Widget widget,
char *fileName);
DESCRIPTION
The DtEditorInsertFromFile function inserts data from a file to the insertion cursor position in a DtEditor widget. After the data is
inserted, the insertion cursor is positioned after the last character inserted.
The widget argument specifies the DtEditor widget ID.
The fileName argument is the pathname of the file relative to the local system.
For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3).
RETURN VALUE
Upon successful completion, the DtEditorInsertFromFile function returns one of the following values:
DtEDITOR_NO_ERRORS
The file is readable and writable.
DtEDITOR_READ_ONLY_FILE
The file is read only.
DtEDITOR_NULLS_REMOVED
The file contained embedded NULL characters, which were removed.
Otherwise, if it cannot insert the data into the DtEditor widget, DtEditorInsertFromFile returns one of the following values:
DtEDITOR_NONEXISTENT_FILE
The file does not exist.
DtEDITOR_DIRECTORY
The file is a directory.
DtEDITOR_CHAR_SPECIAL_FILE
The file is a character-special device.
DtEDITOR_BLOCK_MODE_FILE
The file is a block-mode device.
DtEDITOR_NO_FILE_ACCESS
The file cannot be accessed.
DtEDITOR_INSUFFICIENT_MEMORY
Not enough system memory is available to insert the file.
DtEDITOR_UNREADABLE_FILE
The file is unreadable for an unspecified reason.
APPLICATION USAGE
If the data is in memory, rather than a disk file, the application should use DtEditorInsert(3).
SEE ALSO
Dt/Editor.h - DtEditor(5), DtEditor(3), DtEditorAppend(3), DtEditorAppendFromFile(3), DtEditorGetContents(3), DtEditorInsert(3), DtEditor-
Replace(3), DtEditorReplaceFromFile(3), DtEditorSaveContentsToFile(3), DtEditorSetContents(3), DtEditorGetInsertionPosition(3), DtEdi-
torSetInsertionPosition(3), DtEditorSetContentsFromFile(3).
DtEditorInsertFromFile(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)