gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:putSIO from tkernel_2/monitor/cmdsvc/src/console.c (0.00 seconds)
tkernel_2
monitor/cmdsvc/src/console.c - 8.9KB - 293 lines
76:         if (ch == CTLC) {CTRL_C_IN++; return -1;}
77:         if (c == LF) putSIO(CR);
78:         putSIO(c);
79:         return 0;
212: if (cp < ep) { 213: if (str[cp] & 0x80) putSIO(str[cp++]); 214: putSIO(str[cp++]); 215: }
219: if (cp > 0) { 220: if (str[--cp] & 0x80) {putSIO(BS); cp--;} 221: putSIO(BS); 222: }
234: } 235: for (; cp > 0; cp--) putSIO(BS); 236: for (i = strlen(&hist[hp]); cp < i; cp++) 237: putSIO(str[cp] = hist[hp + cp]); 238: c = ERASE;
244: for (i = 0; i < len; i++) 245: {str[--ep] = ' '; putSIO(BS);} 246: cp -= len; 247: for (i = cp; i < ep + len; i++) putSIO(str[i]); 248: for (; i > cp; i--) putSIO(BS); 249: continue;
251: if (c == CAN || c == CAN2) { 252: for (; cp > 0; cp--) putSIO(BS); 253: c = ERASE;
255: if (c == ERASE) { 256: for (i = cp; i < ep; i++) putSIO(' '); 257: for (; i > cp; i--) putSIO(BS); 258: ep = cp;
276: str[cp] = c; 277: for (ep += len, i = cp; i < ep; i++) putSIO(str[i]); 278: for (cp += len; i > cp; i--) putSIO(BS); 279: } 280: putSIO(CR); // echo back 281: putSIO(LF); 282: str[ep] = '\0';