Lines Matching refs:ed

82 #define putchar(ed,c)	ed_putchar(ed,c)  argument
121 Edit_t *ed; /* pointer to edit data */ member
124 #define editb (*ep->ed)
180 Edit_t *ed = (Edit_t*)context; in ed_emacsread() local
185 register Emacs_t *ep = ed->e_emacs; in ed_emacsread()
193 ep = ed->e_emacs = newof(0,Emacs_t,1,0); in ed_emacsread()
194 ep->ed = ed; in ed_emacsread()
208 ed_setup(ep->ed,fd,reedit); in ed_emacsread()
238 if(ep->ed->e_multiline) in ed_emacsread()
242 ed_flush(ep->ed); in ed_emacsread()
262 ed_ungetchar(ep->ed,cntl('N')); in ed_emacsread()
273 ed_ungetchar(ep->ed,cntl('Y')); in ed_emacsread()
278 while ((c = ed_getchar(ep->ed,0)) != (-1)) in ed_emacsread()
322 c = ed_getchar(ep->ed,2); in ed_emacsread()
334 ed_flush(ep->ed); in ed_emacsread()
343 if(cur>0 && ep->ed->sh->nextprompt) in ed_emacsread()
345 if(ep->ed->e_tabcount==0) in ed_emacsread()
347 ep->ed->e_tabcount=1; in ed_emacsread()
348 ed_ungetchar(ep->ed,ESC); in ed_emacsread()
351 else if(ep->ed->e_tabcount==1) in ed_emacsread()
353 ed_ungetchar(ep->ed,'='); in ed_emacsread()
356 ep->ed->e_tabcount = 0; in ed_emacsread()
363 ed_ungetchar(ep->ed,c); /* save character for next line */ in ed_emacsread()
437 ed_ungetchar(ep->ed,cntl('D')); in ed_emacsread()
441 ed_ungetchar(ep->ed,usrerase); in ed_emacsread()
492 c = ed_getchar(ep->ed,1); in ed_emacsread()
560 ed_ungetchar(ep->ed,cntl('W')); in ed_emacsread()
581 putchar(ep->ed,'\n'); in ed_emacsread()
584 c = ed_getchar(ep->ed,0); in ed_emacsread()
587 ed_ungetchar(ep->ed,c); in ed_emacsread()
595 putchar(ep->ed,'\n'); in ed_emacsread()
601 if(!ep->ed->e_nocrnl) in ed_emacsread()
602 ed_crlf(ep->ed); in ed_emacsread()
604 ep->ed->e_nocrnl = 0; in ed_emacsread()
689 if(ed->e_nlist) in ed_emacsread()
691 ed->e_nlist = 0; in ed_emacsread()
692 stakset(ed->e_stkptr,ed->e_stkoff); in ed_emacsread()
698 ed_crlf(ep->ed); in ed_emacsread()
725 c = ed_getchar(ep->ed,0); in show_info()
727 ed_ungetchar(ep->ed,c); in show_info()
738 putchar(ep->ed,c); in putstring()
748 while ((i=ed_getchar(ep->ed,0)),isdigit(i)) in escape()
756 ed_ungetchar(ep->ed,i) ; in escape()
781 ed_ungetchar(ep->ed,cntl('Y')); in escape()
782 ed_ungetchar(ep->ed,cntl('W')); in escape()
826 ed_ungetchar(ep->ed,cntl('C')); in escape()
833 ed_ungetchar(ep->ed,cntl('D')); in escape()
863 ed_ungetchar(ep->ed,usrerase); in escape()
872 ed_ungetchar(ep->ed,cntl('N')); in escape()
891 ed_ungetchar(ep->ed,cntl('P')); in escape()
902 ed_ungetchar(ep->ed,'\n'); in escape()
903 ed_ungetchar(ep->ed,(out[0]=='#')?cntl('D'):'#'); in escape()
904 ed_ungetchar(ep->ed,cntl('A')); in escape()
942 if(ed_expand(ep->ed,(char*)out,&cur,&eol,i,count) < 0) in escape()
944 if(ep->ed->e_tabcount==1) in escape()
946 ep->ed->e_tabcount=2; in escape()
947 ed_ungetchar(ep->ed,cntl('\t')); in escape()
956 ep->ed->e_tabcount=0; in escape()
959 i=ed_getchar(ep->ed,0); in escape()
960 ed_ungetchar(ep->ed,i); in escape()
962 ed_ungetchar(ep->ed,ESC); in escape()
968 ep->ed->e_tabcount=0; in escape()
976 int c = ed_getchar(ep->ed,1); in escape()
1012 switch(i=ed_getchar(ep->ed,1)) in escape()
1029 ed_ungetchar(ep->ed,'\r'); in escape()
1030 ed_ungetchar(ep->ed,cntl('R')); in escape()
1035 ed_ungetchar(ep->ed,cntl('P')); in escape()
1038 ed_ungetchar(ep->ed,cntl('N')); in escape()
1041 ed_ungetchar(ep->ed,cntl('F')); in escape()
1044 ed_ungetchar(ep->ed,cntl('B')); in escape()
1047 ed_ungetchar(ep->ed,cntl('A')); in escape()
1050 ed_ungetchar(ep->ed,cntl('E')); in escape()
1053 ed_ungetchar(ep->ed,i); in escape()
1059 if(ed_macro(ep->ed,i)) in escape()
1086 register int i = ed_getchar(ep->ed,0); in xcommands()
1102 if(ed_fulledit(ep->ed)==-1) in xcommands()
1109 ed_ungetchar(ep->ed,'\n'); in xcommands()
1190 while ((i = ed_getchar(ep->ed,1))&&(i != '\r')&&(i != '\n')) in search()
1215 i = ed_getchar(ep->ed,1); in search()
1344 putchar(ep->ed,i); in draw()
1351 ncursor = nptr + ed_virt_to_phys(ep->ed,sptr,nptr,cur,0,0); in draw()
1416 if(ep->ed->e_multiline && option == REFRESH && ep->ed->e_nocrnl==0) in draw()
1417 ed_setcursor(ep->ed, ep->screen, ep->cursor-ep->screen, ep->ed->e_peol, -1); in draw()
1448 if(option==FINAL && ep->ed->e_multiline) in draw()
1463 newp = ed_setcursor(ep->ed, ep->screen, oldp, newp, 0); in setcursor()
1466 putchar(ep->ed,c); in setcursor()