pos.rar

  • PUDN用户
    了解作者
  • Unix_Linux
    开发工具
  • 2KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 1
    下载次数
  • 2015-11-26 21:51
    上传日期
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.
pos.rar
  • getpgrp.c
    285B
  • pos.c
    1.4KB
  • getparyx.c
    473B
内容介绍
/* 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; }
评论
    相关推荐
    • VRS51L3074_Keil.rar
      this a c program,be careful
    • Exiled_Bot_Beta_v0.24h.zip
      BE CAREFUL !! Botting more than 10h per day will most probably get you banned.
    • x87trigOOR.rar
      Tests out of range handling for FSIN, FCOS, FSINCOS and FPTAN. Be careful with the inline assembly this program is compiled as both a 32-bit and 64-bit test.
    • Xpoll.rar
      we have to pay the price of having an array here, unlike with bitmasks calling twice FD_SET with the same fd is not transparent, so be careful.
    • lpar.rar
      Enables debugging of low-level hash table routines - careful.
    • posix_types_32.rar
      This file is generally used by user-level software, so you need to be a little careful about namespace pollution etc. Also, we cannot assume GCC is being used.
    • genex.rar
      Be careful when changing this, it has to be at most 128 bytes to fit into space reserved for the exception handler.
    • Monster.zip
      This a simple python based game. In this game you can move by W A S D keys. You should b careful not to be eaten by monster.
    • Lecture3.rar
      Very good, but you have to use with careful
    • qpopper2.53.tar.Z
      pop3 server