⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 castate.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
📖 第 1 页 / 共 3 页
字号:
/***********************************************************************    Call dec_gr_enter and set state to GRAPH***********************************************************************/VOID ac_dec_graph()   {    cp_setctptr(&ast_graph);	/* Set State to Graphics */    dec_gr_enter();		/* Enter Graphics Mode */    cp_reset();			/* Reset the param and interm buffers */   }/****************************************************************************    Call dec_lff_enter and set state to LFF*****************************************************************************/VOID ac_dec_lff()   {    /* First check that all parameters are valid      * (check for LN03 CFFF font format and valid delete command)     */    if ( (cp_pbuf[0] == 0) && (cp_pbuf[2] <= 1) )       {        cp_setctptr(&ast_lff);	/* Set Table Ptr to LFF Table */	ca_start_dcs();		/* initialise DCS intro and vars */	dec_lff_enter();	/* Call dec_lff_enter */       }    else       {	cp_setctptr(&ast_sxlignore); /* Set Table Ptr to SXL_IGNORE Table */       }		   }/****************************************************************************    Call dec_atff_enter and set state to ATFF*****************************************************************************/VOID ac_dec_atff()   {    /* First check that all parameters are valid */    if ( (cp_pbuf[1] >= 10) ||          (cp_pbuf[1] <= 19) ||         (cp_pbuf[0] <= 2)       )       {        cp_setctptr(&ast_atff);	/* Set Table Ptr to ATFF Table */	ca_start_dcs();		/* initialise DCS intro and vars */	dec_atff_enter();	/* Call dec_atff_enter */       }    else       {        cp_setctptr(&ast_dcsignore); /* Set Table Ptr to DCS_IGNORE Table */       }   }/****************************************************************************    Call dec_dtff_enter and set state to DTFF*****************************************************************************/VOID ac_dec_dtff()   {    /* First check that all parameters are valid */    if (cp_pbuf[0] <= 1)        {        cp_setctptr(&ast_dtff); /* Set Table Ptr to DTFF Table */	ca_start_dcs();		/* initialise DCS intro and vars */	dec_dtff_enter();	/* Call dec_dtff_enter */       }    else        {	cp_setctptr(&ast_dcsignore); /* Set Table Ptr to DCS_IGNORE Table */       }   }/****************************************************************************    Call dec_aupss_enter and set state to AUPSS*****************************************************************************/VOID ac_dec_aupss()   {    /* First check that all parameters are valid */    if (cp_pbuf[0] <= 1)        {        cp_setctptr(&ast_aupss); /* Set Table Ptr to AUPSS Table */	ca_start_dcs();		/* initialise DCS intro and vars */	dec_aupss_enter();	/* Call dec_aupss_enter */       }    else       {        cp_setctptr(&ast_dcsignore); /* Set Table Ptr to DCS_IGNORE Table */       }   }/****************************************************************************    Call dec_mac_enter and set state to MAC*****************************************************************************/VOID ac_dec_mac()   {    cp_setctptr(&ast_mac);	/* Set Table Ptr to MAC Table */    dec_mac_enter();		/* Call dec_mac_enter */    cp_reset();			/* Reset the param and interm buffers */   }/****************************************************************************    Call pr_ansb and set state to ANSB*****************************************************************************/VOID ac_pr_ansb()   {    cp_setctptr(&ast_ansb);	/* Set Table Ptr to ANSB Table */    pr_ansb();			/* Load the Answerback message */    cp_reset();			/* Reset the param and interm buffers */   }/****************************************************************************    Call dec_uffm and set state to TEXT*****************************************************************************/VOID ac_dec_uffm()   {    cp_setctptr(&ast_text);	/* Set Table Ptr to TEXT Table */    dec_uffm();			/* Upload Font File Metrics */    cp_reset();			/* Reset the param and interm buffers */   }/****************************************************************************    Call dec_dld_enter and set state to DLD (LA75 functionality)    Not Implemented*****************************************************************************/VOID ac_dec_dld()   {    /*** TEST CODE ***/    cp_setctptr(&ast_sxlignore); /* Set Table Ptr to DLD Table, ignore for now */    /*** END TEST CODE ***/    /* dec_dld_enter();		/* Call dec_dld_enter when implement this */    cp_reset();			/* Reset the param and interm buffers */   }/****************************************************************************    Store Command and set the state to GRAPHICS CMD 2    *****************************************************************************/VOID ac_store_cmd2()   {    cp_setctptr(&ast_graphcmd2); /* Set Table Ptr to Graphics CMD2 Table */    ca_zap_repeat();		/* Before every command, cancel any repeat */    cp_store_cmd(cp_c7);	/* Store the Sixel Command */   }/****************************************************************************    Store Command and set the state to GRAPHICS CMD 1*****************************************************************************/VOID ac_store_cmd1()   {    cp_setctptr(&ast_graphcmd1); /* Set Table Ptr to Graphics CMD1 Table */    ca_zap_repeat();		/* Before every command, cancel any repeat */    cp_store_cmd(cp_c7);	/* Store the Sixel Command */   }/****************************************************************************    Add Intermediate to buffer and set state to DCS_I    *****************************************************************************/VOID ac_add_dcs()   {    cp_setctptr(&ast_dcsi);	/* Set Table Ptr to DCS_I Table */    cp_add_to_dcs_ibuf();	/* Store the intermediate in buffer */   }/****************************************************************************    Print the input and set the state to Control Rendition     *****************************************************************************/VOID ac_crm()   {    cp_setctptr(&ast_crm);	/* Set Table Ptr to Control Rendition Table */    pr_text_crm();		/* Print the input as is */   }/****************************************************************************    Print the input and set the state to Control Rendition     *****************************************************************************/VOID ac_crm_c0()   {    cp_setctptr(&ast_crm);	/* Set Table Ptr to Control Rendition Table */    pr_c0_crm();		/* Print the input as is */   }/****************************************************************************    Print the input and set the state to Control Rendition     *****************************************************************************/VOID ac_crm_c1()   {    cp_setctptr(&ast_crm);	/* Set Table Ptr to Control Rendition Table */    pr_c1_crm();		/* Print the input as is */   }/****************************************************************************    Print the input and set the state to Control Rendition 2    via <ESC>*****************************************************************************/VOID ac_crm2_esc()   {    cp_setctptr(&ast_crm2);	/* Set Table Ptr to Ctrl Ren 2 Table */    pr_c0_crm();		/* Print the input as is */    cp_reset();			/* Reset the param and intermed buffers */   }/****************************************************************************    Print the input and set the state to Control Rendition 3    via <ESC>[*****************************************************************************/VOID ac_crm3()   {    cp_setctptr(&ast_crm3);	/* Set Table Ptr to Ctrl Ren 3 Table */    pr_text_crm();		/* Print the input as is */    cp_reset();			/* Reset the param and intermed buffers */   }/****************************************************************************    Print the input and set the state to Control Rendition 3    via <CSI>*****************************************************************************/VOID ac_crm3_csi()   {    cp_setctptr(&ast_crm3);	/* Set Table Ptr to Ctrl Ren 3 Table */    pr_c1_crm();		/* Print the input as is */    cp_reset();			/* Reset the param and intermed buffers */   }/****************************************************************************    Print the input and set the state to Control Rendition  4   *****************************************************************************/VOID ac_crm4()   {    cp_setctptr(&ast_crm4);	/* Set Table Ptr to Ctrl Ren 4 Table */    pr_text_crm();		/* Print the input as is */   }/****************************************************************************    Print the input, start a new Parameter, and set the state to Ctrl Ren 3*****************************************************************************/VOID ac_crm3_startp()   {    cp_setctptr(&ast_crm3);	/* Set Table Ptr to Ctrl Ren 3 Table */    pr_text_crm();		/* Print the input as is */    cp_start_new_param();	/* Start a new Param. in the parameter Buf. */   }/****************************************************************************    Print the input, add to current param. and set the state to Ctrl Ren 3*****************************************************************************/VOID ac_crm3_addp()   {    pr_text_crm();		/* Print the input as is */    cp_add_to_cur_param();	/* Add input to current parameter */   }/****************************************************************************    Control Rendition  Corner Character******************************************************************************/VOID ac_crm_crnr()   {    cp_setctptr(&ast_crm);	/* Set Table Ptr to Control Rendition Table */    pr_crnr_crm();		/* Print the input as is */   }/****************************************************************************    Control Rendition  LF ******************************************************************************/VOID ac_crm_lf()   {    cp_setctptr(&ast_crm);	/* Set Table Ptr to Control Rendition Table */    pr_c0_crm();		/* Print the input as is */    pr_nel();			/* Print the Carriage Return/Line Feed */   }/****************************************************************************    Control Rendition  FF ******************************************************************************/VOID ac_crm_ff()   {    cp_setctptr(&ast_crm);	/* Set Table Ptr to Control Rendition Table */    pr_c0_crm();		/* Print the input as is */    pr_ff();			/* Print the Form Feed */   }/****************************************************************************    Control Rendition  RIS******************************************************************************/VOID ac_crm_ris()   {    pr_text_crm();		/* print the Final as is */    cp_cond_exit_crm();   }/****************************************************************************    Control Rendition  STR******************************************************************************/VOID ac_crm_str()   {    pr_text_crm();		/* print the Final as is */    cp_cond_exit_crm();   }/****************************************************************************    Control Rendition  Reset Sequence - must check to make sure we got CSI 3l******************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -