/*Copyright (C) 1992, 1996 by Thomas Glen Smith. All Rights Reserved.*/ /* edline APL2 V1.0.0 ************************************************** * Called by apledrc. * * Edline is called to allow the user at the terminal to edit data. * ***********************************************************************/ #define INCLUDES STDIO+CONIO+STRING #include "includes.h" int edline(line,offbad,maxline,insert) char line[]; /* Line to be edited, already on display. */ int offbad; /* Offset to bad data, relative 0. */ int maxline; /* Maximum line length. */ int insert; /* 1 if input is inserted, 0 of overlaid. */ { Aplnewl; Edlinf; int cursor,j,linelen; char c; printf("%s",line); cursor = linelen = strlen(line); edlinf(line,&cursor,linelen - offbad); /* back up screen cursor */ return(gettcom(line,linelen,maxline,cursor,insert)); /* edit input */ }