Difference between revisions of "AMOS:Call Editor commands"

From Amiga Coding
Jump to: navigation, search
(added part of the list)
 
(completed converting the list)
 
(One intermediate revision by the same user not shown)
Line 26: Line 26:
 
<tr><td>24</td><td>AEd_Tab</td><td>Insert one tab <TAB></td><td>-</td></tr>
 
<tr><td>24</td><td>AEd_Tab</td><td>Insert one tab <TAB></td><td>-</td></tr>
 
<tr><td>25</td><td>AEd_SetTab</td><td>Set the current tab value.</td><td>PAR= new tab value.</td></tr>
 
<tr><td>25</td><td>AEd_SetTab</td><td>Set the current tab value.</td><td>PAR= new tab value.</td></tr>
 +
<tr><td>29</td><td>AEd_InsertLine</td><td>Insert one empty line at the current cursor position <F10></td><td>-</td></tr>
 +
<tr><td>30</td><td>AEd_DelToEndOfLine</td><td>Delete to the end of the current line <CONTROL-DEL></td><td>-</td></tr>
 +
<tr><td>31</td><td>AEd_PreviousLabel</td><td>Go to previous label.</td><td>-</td></tr>
 +
<tr><td>32</td><td>AEd_NextLabel</td><td>Go to next label.</td><td>-</td></tr>
 +
<tr><td>33</td><td>AEd_Load</td><td>Load a new program in the current window.</td><td>PAR$= filename of the program to load.<br />PAR= answer to the requester "Program not saved, save it?"<br />0= CANCEL / 1=YES / 2=NO</td></tr>
 +
<tr><td>34</td><td>AEd_SaveAs</td><td>Save the current program with a new name.</td><td>PAR$= new filename.</td></tr>
 +
<tr><td>35</td><td>AEd_Save</td><td>Save the current program.</td><td>PAR$= optional name if program is not named.</td></tr>
 +
<tr><td>36</td><td>AEd_DelWordRight</td><td>Delete the word to the right of the cursor.</td><td>-</td></tr>
 +
<tr><td>37</td><td>AEd_DelWordLeft</td><td>Delete the word to the left of the cursor.</td><td>-</td></tr>
 +
<tr><td>38</td><td>AEd_Hide</td><td>Hide the current program.</td><td>-</td></tr>
 +
<tr><td>39</td><td>AEd_SetSystemMark1</td><td>Set system mark number 1</td><td>-</td></tr>
 +
<tr><td>40</td><td>AEd_SetSystemMark2</td><td>Set system mark number 2.</td><td>-</td></tr>
 +
<tr><td>41</td><td>AEd_SetSystemMark3</td><td>Set system mark number 3.</td><td>-</td></tr>
 +
<tr><td>42</td><td>AEd_SetMark1</td><td>Set mark number 1.</td><td>-</td></tr>
 +
<tr><td>43</td><td>AEd_SetMark2</td><td>Set mark number 2.</td><td>-</td></tr>
 +
<tr><td>44</td><td>AEd_SetMark3</td><td>Set mark number 3.</td><td>-</td></tr>
 +
<tr><td>45</td><td>AEd_SetMark4</td><td>Set mark number 4.</td><td>-</td></tr>
 +
<tr><td>46</td><td>AEd_SetMark5</td><td>Set mark number 5.</td><td>-</td></tr>
 +
<tr><td>47</td><td>AEd_SetMark6</td><td>Set mark number 6.</td><td>-</td></tr>
 +
<tr><td>49</td><td>AEd_GotoSystemMark1</td><td>Move the cursor to the system mark number 1.</td><td>-</td></tr>
 +
<tr><td>50</td><td>AEd_GotoSystemMark2</td><td>Move the cursor to the system mark number 2.</td><td>-</td></tr>
 +
<tr><td>51</td><td>AEd_GotoSystemMark3</td><td>Move the cursor to the system mark number 3.</td><td>-</td></tr>
 +
<tr><td>52</td><td>AEd_GotoMark1</td><td>Move the cursor to the mark number 1.</td><td>-</td></tr>
 +
<tr><td>53</td><td>AEd_GotoMark2</td><td>Move the cursor to the mark number 2.</td><td>-</td></tr>
 +
<tr><td>54</td><td>AEd_GotoMark3</td><td>Move the cursor to the mark number 3.</td><td>-</td></tr>
 +
<tr><td>55</td><td>AEd_GotoMark4</td><td>Move the cursor to the mark number 4.</td><td>-</td></tr>
 +
<tr><td>56</td><td>AEd_GotoMark5</td><td>Move the cursor to the mark number 5.</td><td>-</td></tr>
 +
<tr><td>57</td><td>AEd_GotoMark6</td><td>Move the cursor to the mark number 6.</td><td>-</td></tr>
 +
<tr><td>59</td><td>AEd_BlocOnOff</td><td>Toggle the block mode on/off.</td><td>-</td></tr>
 +
<tr><td>60</td><td>AEd_Forget</td><td>Forget the currently stored block.</td><td>-</td></tr>
 +
<tr><td>61</td><td>AEd_OpenLoad</td><td>Opens a new window, and loads the specified program into it. </td><td>PAR$= file name to load<br />PAR= answer to "Buffer to small" requester. 0=NO / 1=YES</td></tr>
 +
<tr><td>62</td><td>AEd_BlocCut</td><td>Cut the currently highlighted block.</td><td>-</td></tr>
 +
<tr><td>63</td><td>AEd_BlocPaste</td><td>Paste the currently stored block.</td><td>-</td></tr>
 +
<tr><td>64</td><td>AEd_DelToStartOfLine</td><td>Delete to the start of the current line.</td><td>-</td></tr>
 +
<tr><td>65</td><td>AEd_Undo</td><td>Performs one step of UNDO.</td><td>-</td></tr>
 +
<tr><td>66</td><td>AEd_Search</td><td>Initialise the search process. Search does NOT begin after this instruction, you should call AEd_SearchNext ou AEd_SearchPrevious.</td><td>PAR$= string to look for (31 char maximum).<br />PAR=0: lower<>upper, PAR=1 lower=upper.</td></tr>
 +
<tr><td>67</td><td>AEd_SearchNext</td><td>Search for the next occurence of the string.</td><td>-</td></tr>
 +
<tr><td>68</td><td>AEd_SearchPrevious</td><td>Search for the previous occurence of the string.</td><td>-</td></tr>
 +
<tr><td>69</td><td>AEd_ChangeLine</td><td>Replace 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.</td><td>PAR$= new string to force into the screen.</td></tr>
 +
<tr><td>71</td><td>AEd_NewLine</td><td>Replace the current line on the screen and tokenise it. Then redisplays the tokenised line (which may differ).</td><td>PAR$= new string to force into the text.</td></tr>
 +
<tr><td>72</td><td>AEd_BlocStore</td><td>Stores the highlighted block into memory.</td><td>-</td></tr>
 +
<tr><td>80</td><td>AEd_Clear</td><td>New the current program.</td><td>PAR= answer to "Program not saved, save?" requester. 0=CANCEL / 1=YES / 2=NO</tr>
 +
<tr><td>81</td><td>AEd_Close</td><td>Close the current window.</td><td>PAR= answer to "Program not saved, save?" requester. 0=CANCEL / 1=YES / 2=NO</td></tr>
 +
<tr><td>84</td><td>AEd_Merge</td><td>Merge a program from disc with the current one, at the cursor's position.</td><td>PAR$= name of the program to merge.</td></tr>
 +
<tr><td>85</td><td>AEd_MergeAscii</td><td>Merge an ascii text at the cursor's position.</td><td>PAR$= name of the file to merge.</td></tr>
 +
<tr><td>86</td><td>AEd_BlocPrint</td><td>Print the currently stored block.</td><td>-</td></tr>
 +
<tr><td>89</td><td>AEd_UnfoldAll</td><td>Open all closed procedures.</td><td>-</td></tr>
 +
<tr><td>91</td><td>AEd_WindowPrev</td><td>Activate previous window.</td><td>-</td></tr>
 +
<tr><td>92</td><td>AEd_WindowNext</td><td>Activate next window.</td><td>-</td></tr>
 +
<tr><td>93</td><td>AEd_WindowToggle</td><td>Toggle the size of the window (large or small).</td><td>-</td></tr>
 +
<tr><td>94</td><td>AEd_Redo</td><td>Performs one REDO step.</td><td>-</td></tr>
 +
<tr><td>97</td><td>AEd_BlocSaveAscii</td><td>Save the currently stored block as an ascii file</td><td>PAR$= name of the file to create</td></tr>
 +
<tr><td>98</td><td>AEd_BlocSave</td><td>Saves the currently stored block.</td><td>PAR$= name of the file to create.</td></tr>
 +
<tr><td>99</td><td>AEd_Replace</td><td>Initialise 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.</td><td>PAR$= string to replace with, 31 characters maximum.<br />PAR=0: normal replace, PAR=%0100: turbo within the block, PAR=%1000: turbo for whole text.</td></tr>
 +
<tr><td>100</td><td>AEd_ReplaceNext</td><td>Replace next occurence of searched string.</td><td>-</td></tr>
 +
<tr><td>101</td><td>AEd_ReplacePrevious</td><td>Replace previous occurence of searched string.</td><td>-</td></tr>
 +
<tr><td>103</td><td>AEd_Open</td><td>Opens a new AMOS window.</td><td>-</td></tr>
 +
<tr><td>146</td><td>AEd_PrintProgram</td><td>Send the current program to the printer.</td><td>-</td></tr>
 +
<tr><td>181</td><td>AEd_HighlightAll</td><td>Highlight all the current text.</td><td>-</td></tr>
 +
<tr><td>182</td><td>AEd_ChangeConfig</td><td>Changes one of the editor's internal configuration strings. Used in AMOSPro_Editor_Config.AMOS</td><td>PAR$= new string<br />PAR= number of the string to change</td></tr>
 
</table>
 
</table>

Latest revision as of 12:22, 22 June 2008

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