static char* edit_cmdline2(char *cmd) { __set_cursor(0,INFO_Y); get_line1(cmd,0); __set_cursor(0,INFO_Y); return cmd; }
static char* edit_cmdline1(char *cmd) { int x=0; char *pcmd=cmd; pcmd=strchr(cmd,'='); if(pcmd){pcmd++;x=pcmd-cmd;} else pcmd=cmd; __set_cursor(x,INFO_Y); get_line1(pcmd,0); __set_cursor(0,INFO_Y); return pcmd; }
int main (void) { char buffer[LINE_SIZE]; fgets (buffer, LINE_SIZE, stdin); printf ("\\total %s", buffer); for (; fgets (buffer, LINE_SIZE, stdin) != NULL;) { get_line1 (buffer); } exit (0); }