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

📄 showwin.c

📁 一个c语言写做的编译器的源码
💻 C
字号:
/*@A (C) 1992 Allen I. Holub                                                */
#include "cur.h"

WINDOW	*showwin( win )
WINDOW	*win;
{
    /* Make a previously hidden window visible again. Return NULL and do
     * nothing if the window wasn't hidden, otherwise return the win argument.
     */

    SBUF *image;

    if( !win->hidden )
	return( NULL );

    image = savescr(((SBUF*)(win->image))->left, ((SBUF*)(win->image))->right,
    		    ((SBUF*)(win->image))->top,  ((SBUF*)(win->image))->bottom);

    restore( (SBUF *) win->image );
    freescr( (SBUF *) win->image );
    win->image  = image;
    win->hidden = 0;

    /* Move the cursor to compensate for windows that were moved while they
     * were hidden.
     */
    cmove( win->y_org + win->row, win->x_org + win->col );
    return( win );
}

⌨️ 快捷键说明

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