setentrymodeinsert )sets the entry mode to either insert or overwrite based on the value of the boolean argument insert toggleentrymode()toggles the entry mode to either insert or overwrite based on the current mode ininsertmode()returns true if the current entry mode is set to insert and false otherwise getchar()returns the character at the current cursor position getline()returns the contents of the current line as string that includes the newline character moveupnum )moves the cursor up num lines the cursor is kept at the same character position unless the new line is shorterin which case the cursor is placed at the end of the new line the num is negativeand the cursor position is not changed movedownnum )the same as moveup(except the cursor is moved down movedochome()moves the cursor to the document' home positionwhich is the first line and first character position in that line movedocend()moves the cursor to the document' end positionwhich is the last line and first character position in that line moveleft()moves the cursor to the left one position the cursor is wrapped to the end of the previous line if it is currently at the front of line moveright()moves the cursor to the right one position the cursor is wrapped to the beginning of the next line if it is currently positioned at the end of line movelinehome()moves the cursor to the front of the current line at the first character position movelineend()moves the cursor to the end of the current line breakline()starts new line at the cursor position newline character is inserted at the current position and all characters following are moved to new line the new line is inserted immediately following the current line and the cursor is adjusted to be at the first position of the new line deleteline()removes the entire line containing the cursor the cursor is then moved to the front of the next line if the line being deleted is the last linethe cursor is moved to the front of the previous line truncateline()removes all of the characters at the end of the current line starting at the cursor position the newline character is not removed and the cursor is left at the end of the current line