DTEDITORGOTOLINE(3)
πΈ NAME πΈ
okay bestie, this is the library call manual page for DtEditorGoToLine β the function whose whole gig is moving the insert cursor for a DtEditor widget to a specified line. main character cursor behavior, honestly. π
π¦ SYNOPSIS π¦
the summoning ritual looks like this, exactly:
#include &<Dt/Editor.h>
void DtEditorGoToLine(
Widget widget,
int lineNumber);
β¨ DESCRIPTION β¨
DtEditorGoToLine moves the insert cursor for the DtEditor widget to the beginning of the line specified by the lineNumber argument. cursor goes to the start of the line, periodt. You can move the cursor to the last line by specifying DtEDITOR_LAST_LINE as the line number. If the line is not currently on-screen, the contents for the DtEditor widget are scrolled to display the new insertion position. scroll scroll scroll to show off the new spot π«
some lineNumber lore: the lineNumber argument is the number of the line in the file, counting from 1. If the lineNumber argument is less than 1, the insert cursor is placed at the beginning of the first line. If the argument is greater than the total number of lines, the cursor is placed at the last line of text. the range behavior is literally doing its thing π«Ά
The insert cursor can be moved to a specific character position with DtEditorSetInsertionPosition(3). The DtNtopCharacter resource can be used to control which line is displayed at the top of the DtEditor widget. iykyk, resource girlies π
argument tea:
widgetβ specifies theDtEditorwidget ID.lineNumberβ specifies the line number within theDtEditorwidget.
For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3). go read the full lore, bestie π
π RETURN VALUE π
The DtEditorGoToLine function returns no value. literally none β no value, no extra return gift, just cursor movement and vibes. π
π₯ SEE ALSO π₯
Dt/Editor.h-DtEditor(5),DtEditor(3),DtEditorSetInsertionPosition(3).
and that's the whole page, bestie π«Ά β this was the DtEditorGoToLine library call manual page. The original footer had no extra version/date deets, just the DtEditorGoToLine library call stamp, so here's your cute sign-off instead: stay scrolling, stay iconic. πβ¨
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms