AMOSi:Call Editor

From Amiga Coding
Jump to: navigation, search

Used by an Editor accessory to SEND information directly to the AMOS Professional Editor.


Call Editor function[,param][,param$]

function is the NUMBER of an internal Editor command you wish to access.


param holds some optional numeric information.


param$ holds an optional string of characters.


Call Editor commands

codeequateresultreturn values
1AEd_UpMoves the cursor up one line-
2AEd_DownMoves the cursor down one line.-
3AEd_LeftMoves the cursor left one character.-
4AEd_RightMoves the cursor right one character.-
5AEd_TopPageMoves the cursor to the top of the current window.-
6AEd_BottomPageMove the cursor to the bottom of the current window.-
7AEd_WordLeftMove the cursor to the beginning of the previous word.-
8AEd_WordRightMove the cursor to the beginning of the next word.-
9AEd_PageUpMove the cursor up one page in the text.-
10AEd_PageDownMove the cursor down one page in the text.-
11AEd_StartLineMove the cursor to the start of the current line.-
12AEd_EndLineMove the cursor to the end of the current line.-
13AEd_WindowUpMoves the current window up.-
14AEd_WindowDownMoves the current window down.-
15AEd_WindowSmallerReduce the size of the current window.-
16AEd_WindowBiggerIncrease the size of the current window.-
17AEd_TopOfTextMove the cursor to the top of the text.-
18AEd_BottomOfTextMove the cursor to the end of the text.-
19AEd_ReturnPerforms a <RETURN>-
20AEd_BackSpacePerforms a <BACKSPACE>: delete one character to the left of the cursor.-
21AEd_DeletePerforms a <DELETE>: delete one character to the right of the cursor.-
22AEd_ClrLineClears the entire current line.-
23AEd_DelLineDelete the current line, and scroll up the rest of the text <CONTROL-Y>-
24AEd_TabInsert one tab <TAB>-
25AEd_SetTabSet the current tab value.PAR= new tab value.
29AEd_InsertLineInsert one empty line at the current cursor position <F10>-
30AEd_DelToEndOfLineDelete to the end of the current line <CONTROL-DEL>-
31AEd_PreviousLabelGo to previous label.-
32AEd_NextLabelGo to next label.-
33AEd_LoadLoad a new program in the current window.PAR$= filename of the program to load.
PAR= answer to the requester "Program not saved, save it?"
0= CANCEL / 1=YES / 2=NO
34AEd_SaveAsSave the current program with a new name.PAR$= new filename.
35AEd_SaveSave the current program.PAR$= optional name if program is not named.
36AEd_DelWordRightDelete the word to the right of the cursor.-
37AEd_DelWordLeftDelete the word to the left of the cursor.-
38AEd_HideHide the current program.-
39AEd_SetSystemMark1Set system mark number 1-
40AEd_SetSystemMark2Set system mark number 2.-
41AEd_SetSystemMark3Set system mark number 3.-
42AEd_SetMark1Set mark number 1.-
43AEd_SetMark2Set mark number 2.-
44AEd_SetMark3Set mark number 3.-
45AEd_SetMark4Set mark number 4.-
46AEd_SetMark5Set mark number 5.-
47AEd_SetMark6Set mark number 6.-
49AEd_GotoSystemMark1Move the cursor to the system mark number 1.-
50AEd_GotoSystemMark2Move the cursor to the system mark number 2.-
51AEd_GotoSystemMark3Move the cursor to the system mark number 3.-
52AEd_GotoMark1Move the cursor to the mark number 1.-
53AEd_GotoMark2Move the cursor to the mark number 2.-
54AEd_GotoMark3Move the cursor to the mark number 3.-
55AEd_GotoMark4Move the cursor to the mark number 4.-
56AEd_GotoMark5Move the cursor to the mark number 5.-
57AEd_GotoMark6Move the cursor to the mark number 6.-
59AEd_BlocOnOffToggle the block mode on/off.-
60AEd_ForgetForget the currently stored block.-
61AEd_OpenLoadOpens a new window, and loads the specified program into it. PAR$= file name to load
PAR= answer to "Buffer to small" requester. 0=NO / 1=YES
62AEd_BlocCutCut the currently highlighted block.-
63AEd_BlocPastePaste the currently stored block.-
64AEd_DelToStartOfLineDelete to the start of the current line.-
65AEd_UndoPerforms one step of UNDO.-
66AEd_SearchInitialise the search process. Search does NOT begin after this instruction, you should call AEd_SearchNext ou AEd_SearchPrevious.PAR$= string to look for (31 char maximum).
PAR=0: lower<>upper, PAR=1 lower=upper.
67AEd_SearchNextSearch for the next occurence of the string.-
68AEd_SearchPreviousSearch for the previous occurence of the string.-
69AEd_ChangeLineReplace the current line with the specified one. Does NOT tokenise the line or store it into the text buffer. This line will be tonkenised automatically if the cursor is moved.PAR$= new string to force into the screen.
71AEd_NewLineReplace the current line on the screen and tokenise it. Then redisplays the tokenised line (which may differ).PAR$= new string to force into the text.
72AEd_BlocStoreStores the highlighted block into memory.-
80AEd_ClearNew the current program.PAR= answer to "Program not saved, save?" requester. 0=CANCEL / 1=YES / 2=NO
81AEd_CloseClose the current window.PAR= answer to "Program not saved, save?" requester. 0=CANCEL / 1=YES / 2=NO
84AEd_MergeMerge a program from disc with the current one, at the cursor's position.PAR$= name of the program to merge.
85AEd_MergeAsciiMerge an ascii text at the cursor's position.PAR$= name of the file to merge.
86AEd_BlocPrintPrint the currently stored block.-
89AEd_UnfoldAllOpen all closed procedures.-
91AEd_WindowPrevActivate previous window.-
92AEd_WindowNextActivate next window.-
93AEd_WindowToggleToggle the size of the window (large or small).-
94AEd_RedoPerforms one REDO step.-
97AEd_BlocSaveAsciiSave the currently stored block as an ascii filePAR$= name of the file to create
98AEd_BlocSaveSaves the currently stored block.PAR$= name of the file to create.
99AEd_ReplaceInitialise the replace string and replace modes. You should first call AEd_Search to set the searched string, and the search mode. Replace process only begins if TURBO mode is selected, otherwise you must call AEd_ReplaceNext or AEd_ReplacePrevious.PAR$= string to replace with, 31 characters maximum.
PAR=0: normal replace, PAR=%0100: turbo within the block, PAR=%1000: turbo for whole text.
100AEd_ReplaceNextReplace next occurence of searched string.-
101AEd_ReplacePreviousReplace previous occurence of searched string.-
103AEd_OpenOpens a new AMOS window.-
146AEd_PrintProgramSend the current program to the printer.-
181AEd_HighlightAllHighlight all the current text.-
182AEd_ChangeConfigChanges one of the editor's internal configuration strings. Used in AMOSPro_Editor_Config.AMOSPAR$= new string
PAR= number of the string to change