/* Copyright (c) 1984 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef lint
static char sccsid[] = "@(#)pos.c 1.1 92/07/30 SMI"; /* from S5R3 1.3 */
#endif
#include "curses.ext"
extern _outch();
char *tparm();
/* Position the SP->curptr to (row, column) which start at 0. */
_pos(row, column)
{
#ifdef DEBUG
if(outf) fprintf(outf, "_pos from row %d, col %d => row %d, col %d\n",
SP->phys_y, SP->phys_x, row, column);
#endif
if (SP->phys_x == column && SP->phys_y == row)
return; /* already there */
/*
* Many terminals can't move the cursor when in standout mode.
* We must be careful, however, because HP's and cookie terminals
* will drop a cookie when we do this.
*/
if (!move_standout_mode && SP->phys_gr && magic_cookie_glitch < 0)
if (ceol_standout_glitch)
SP->phys_gr = 0;
else
_clearhl ();
/* some terminals can't move in insert mode */
if (SP->phys_irm == 1 && !move_insert_mode) {
tputs(exit_insert_mode, 1, _outch);
SP->phys_irm = 0;
}
/* If we try to move outside the scrolling region, widen it */
if (row<SP->phys_top_mgn || row>SP->phys_bot_mgn) {
_window(0, lines-1, 0, columns-1);
_setwind();
}
mvcur(SP->phys_y, SP->phys_x, row, column);
SP->phys_x = column;
SP->phys_y = row;
}
pos.rar_Careful
版权申诉
2 浏览量
2022-09-21
19:54:43
上传
评论
收藏 2KB RAR 举报
小贝德罗
- 粉丝: 70
- 资源: 1万+
最新资源
- (大赛作品)STM32实现的F072RB NUCLEO智能家居控制.zip
- STM32实现的数字示波器源码+数字信号处理教程、配套实例.zip
- 【cookie续续】【cookie续续】【cookie续续】
- 低功耗STM32实现的F411开发板(原理图+PCB源文件+官方例程+驱动等).zip
- 基于stm32实现的 nucleo-L476的智能灯(操作说明+源码).zip
- 基于STM32实现的 NUCLEO板设计彩色LED照明灯(纯cubeMX开发).zip
- 基于STM32实现的 的联合调试侦听设备解决方案(原理图、PCB源文件、调试工具、视频).zip
- 基于STM32实现的 人群定位、调速智能风扇设计(程序、设计报告、视频演示).zip
- 哔哩下载姬(DownKyi)
- 千纬认字app再次更新,增加部首、笔画动画功能
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论0