📄 ecutcap.c
字号:
register count;{ while(count--) tputs(tc_curleft); rcvrdisp_actual2();} /* end of tcap_curleft *//*+------------------------------------------------------------------------- tcap_curright(count) - move cursor right--------------------------------------------------------------------------*/voidtcap_curright(count)register count;{ while(count--) tputs(tc_curright); rcvrdisp_actual2();} /* end of tcap_curright *//*+------------------------------------------------------------------------- tcap_curbotleft()--------------------------------------------------------------------------*/voidtcap_curbotleft(){ tcap_cursor(tcap_LINES - 1,0);} /* end of tcap_curbotleft *//*+------------------------------------------------------------------------- tcap_insert_lines(count)--------------------------------------------------------------------------*/voidtcap_insert_lines(count)register count;{ if(count && *tc_insline) { while(count--) tputs(tc_insline,1,tcap_putc); rcvrdisp_actual2(); }} /* end of tcap_insert_lines *//*+------------------------------------------------------------------------- tcap_delete_lines(count)--------------------------------------------------------------------------*/voidtcap_delete_lines(count)register count;{ if(count && *tc_delline) { while(count--) tputs(tc_delline,1,tcap_putc); rcvrdisp_actual2(); }} /* end of tcap_delete_lines *//*+------------------------------------------------------------------------- tcap_insert_chars(count)--------------------------------------------------------------------------*/voidtcap_insert_chars(count)register count;{ if(count && *tc_inschar) { while(count--) tputs(tc_inschar,1,tcap_putc); rcvrdisp_actual2(); }} /* end of tcap_insert_chars *//*+------------------------------------------------------------------------- tcap_delete_chars(count)--------------------------------------------------------------------------*/voidtcap_delete_chars(count)register count;{ if(count && *tc_delchar) { while(count--) tputs(tc_delchar,1,tcap_putc); rcvrdisp_actual2(); }} /* end of tcap_delete_chars *//*+------------------------------------------------------------------------- tcap_vbell() - output visual bell--------------------------------------------------------------------------*/voidtcap_vbell(){ if(*tc_vbell) { tputs(tc_vbell,1,tcap_putc); rcvrdisp_actual2(); }} /* end of tcap_vbell *//*+------------------------------------------------------------------------- tcap_clear_screen()--------------------------------------------------------------------------*/voidtcap_clear_screen(){ if(*tc_clear) { tputs(tc_clear,1,tcap_putc); rcvrdisp_actual2(); }} /* end of tcap_clear_screen *//*+------------------------------------------------------------------------- tcap_eeol() - erase to end of line--------------------------------------------------------------------------*/voidtcap_eeol(){ if(*tc_eeol) { tputs(tc_eeol,1,tcap_putc); rcvrdisp_actual2(); }} /* end of tcap_eeol *//*+------------------------------------------------------------------------- tcap_eeod() - erase to end of display--------------------------------------------------------------------------*/voidtcap_eeod(){ if(*tc_eeod) { tputs(tc_eeod,1,tcap_putc); rcvrdisp_actual2(); }} /* end of tcap_eeod *//*+------------------------------------------------------------------------- tcap_stand_out()--------------------------------------------------------------------------*/voidtcap_stand_out(){ if(*tc_standout) /* && (tc_standout_width == 0)) */ { tputs(tc_standout,1,tcap_putc); rcvrdisp_actual2(); }} /* end of tcap_stand_out *//*+------------------------------------------------------------------------- tcap_stand_end()--------------------------------------------------------------------------*/voidtcap_stand_end(){ if(*tc_standend) /* && (tc_standout_width == 0)) */ { tputs(tc_standend,1,tcap_putc); rcvrdisp_actual2(); }} /* end of tcap_stand_end *//*+------------------------------------------------------------------------- tcap_bold_on()--------------------------------------------------------------------------*/voidtcap_bold_on(){ if(*tc_bold_on) tputs(tc_bold_on,1,tcap_putc); else if(*tc_standout) /* && (tc_standout_width == 0)) */ tputs(tc_standout,1,tcap_putc); rcvrdisp_actual2();} /* end of tcap_bold_on *//*+------------------------------------------------------------------------- tcap_bold_off()--------------------------------------------------------------------------*/voidtcap_bold_off(){ if(*tc_bold_off) tputs(tc_bold_off,1,tcap_putc); else if(*tc_standend) /* && (tc_standout_width == 0)) */ tputs(tc_standend,1,tcap_putc); rcvrdisp_actual2();} /* end of tcap_bold_off *//*+------------------------------------------------------------------------- tcap_underscore_on()--------------------------------------------------------------------------*/voidtcap_underscore_on(){ if(*tc_underscore_on) tputs(tc_underscore_on,1,tcap_putc); else if(*tc_standout) /* && (tc_standout_width == 0)) */ tputs(tc_standout,1,tcap_putc); rcvrdisp_actual2();} /* end of tcap_underscore_on *//*+------------------------------------------------------------------------- tcap_underscore_off()--------------------------------------------------------------------------*/voidtcap_underscore_off(){ if(*tc_underscore_off) tputs(tc_underscore_off,1,tcap_putc); else if(*tc_standend) /* && (tc_standout_width == 0)) */ tputs(tc_standend,1,tcap_putc); rcvrdisp_actual2();} /* end of tcap_underscore_off *//*+------------------------------------------------------------------------- tcap_blink_on()--------------------------------------------------------------------------*/voidtcap_blink_on(){ if(*tc_blink_on) tputs(tc_blink_on,1,tcap_putc); else if(*tc_standout) /* && (tc_standout_width == 0)) */ tputs(tc_standout,1,tcap_putc); rcvrdisp_actual2();} /* end of tcap_blink_on *//*+------------------------------------------------------------------------- tcap_blink_off()--------------------------------------------------------------------------*/voidtcap_blink_off(){ if(*tc_blink_off) tputs(tc_blink_off,1,tcap_putc); else if(*tc_standend) /* && (tc_standout_width == 0)) */ tputs(tc_standend,1,tcap_putc); rcvrdisp_actual2();} /* end of tcap_blink_off *//*+------------------------------------------------------------------------- tcap_clear_area_char(count,clrch)--------------------------------------------------------------------------*/voidtcap_clear_area_char(count,clrch)register count;register clrch;{ register itmp = count; while(itmp--) tcap_putc(clrch); itmp = count; while(itmp--) tputs(tc_curleft); rcvrdisp_actual2();} /* end of tcap_clear_area_char */#ifdef linux/*+------------------------------------------------------------------------- tcap_restore_con() Linux normally has a screen size of 25, this does not work with ecu's vt100 emulation, so the init sequence esc [1;24r must be in the funckeymap file. However this needs to be changed back before we leave, or else the system doesn't work. The lastline (ll) termcap entry includes this sequence, so we do not need to check terminal type. Going to the last line will not hurt on other terminal types.--------------------------------------------------------------------------*/voidtcap_restore_con(){ if(*tc_lastline) fputs(tc_lastline,stderr);} /* end of tcap_restore_con */#endif /* Linux *//* end of ecutcap.c *//* vi: set tabstop=4 shiftwidth=4: */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -