在Mac OS X10.10下sudo gem install curses 返回如下错误:
apple@kissAir: ruby_src$sudo gem install curses
Password:
Fetching: curses-1.0.1.gem (100%)
Building native extensions. This could take a...
分类:
系统相关 时间:
2014-12-03 12:33:28
阅读次数:
394
fedora20,安装yum install ncurses-devel编译时:-lncurses头文件:#include参考:man ncurses \linux程序设计一,屏幕1, 以initscr()开始,以endwin();结束 WINDOW *initscr(void); //初始化 .....
分类:
系统相关 时间:
2014-11-25 12:20:00
阅读次数:
328
1 #include 2 #include 3 #include 4 #include 5 #include 6 #define PW_LEN 256 7 #define NAME_LEN 256 8 int main() 9 { 10 initscr(); 11 ...
分类:
其他好文 时间:
2014-11-16 14:34:17
阅读次数:
316
相信您在网路上一定用过如 tin,elm 等工具, 这些软体有项共同的特色, 即他们能利用上下左右等方向键来控制游标的位置. 除此之外, 这些程式的画面也较为美观. 对Programming 有兴趣的朋友一定对此感到好奇, 或许他能在 PC上用Turbo C轻易地写出相似的程式, 然而, 但当他将同...
分类:
系统相关 时间:
2014-10-14 21:14:49
阅读次数:
282
In linux, you can use the ncurses library to use the terminal as a text buffer: move the cursor around, and write text. It can also draw windows and o...
分类:
其他好文 时间:
2014-09-30 18:43:59
阅读次数:
154
tar -xzvf rlwrap-0.41.tar.gzcd rlwrap-0.41./configureconfigure: WARNING: No termcap nor curses library foundyum install readline-devel./configure&&mak...
分类:
其他好文 时间:
2014-09-21 16:50:10
阅读次数:
204
configure: error: No curses/termcap library found网上有的说法是:--with-named-curses-libs=/usr/lib/libncursesw.so.5其实是不对的,虽然能解决configure的错误,但是make的时候会提示错误,正确的...
分类:
其他好文 时间:
2014-09-17 13:38:42
阅读次数:
222
方法均来自网络,本人只是记录一下自己操作的过程,大神请无视之~攻击主机平台:kali-linux 被攻击主机:安卓手机192.168.1.107 (在同一局域网内)1.利用ettercap进行arp欺骗:root权限下打开ettercap:ettercap -C (curses UI) ...
分类:
其他好文 时间:
2014-08-03 20:32:55
阅读次数:
382
1:传统的输入信号传统的输入都是通过阻塞来实现,例如getchar一直等待用户输入。又或者是再curses库中的getch都是通过阻塞的方式来等待用户输入。那么想象一个场景要设计一个游戏,这个游戏可以让玩家动态输入一些值来动态调整游戏参数。不可能通过getchar这样的阻塞函数来获..
分类:
系统相关 时间:
2014-08-01 07:04:22
阅读次数:
412
1、curses库 /* 基本curses函数 */
initscr(); // 初始化curses库和tty
endwin(); // 关闭curses并重置tty
refresh(); // 使屏幕按照你的意图显示
move(r, c); // 移...
分类:
系统相关 时间:
2014-07-31 17:28:31
阅读次数:
369