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

📄 charpick.c

📁 操作系统源代码
💻 C
字号:
#include <curses.h>#include "curspriv.h"/****************************************************************//* Winch(win) returns the character at the current position in	*//* Window 'win'.						*//****************************************************************/int winch(win)WINDOW *win;{  return((win->_line[win->_cury][win->_curx]) & 0xff);}				/* winch *//****************************************************************//* Mvinch() moves the stdscr cursor to a new position, then	*//* Returns the character at that position.			*//****************************************************************/int mvinch(y, x)int y;int x;{  if (wmove(stdscr, y, x) == ERR) return(ERR);  return((stdscr->_line[stdscr->_cury][stdscr->_curx]) & 0xff);}/****************************************************************//* Mvwinch() moves the cursor of window 'win' to a new posi-	*//* Tion, then returns the character at that position.		*//****************************************************************/int mvwinch(win, y, x)WINDOW *win;int y;int x;{  if (wmove(win, y, x) == ERR) return(ERR);  return((win->_line[win->_cury][win->_curx]) & 0xff);}

⌨️ 快捷键说明

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