Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1309207
  • 博文数量: 268
  • 博客积分: 10698
  • 博客等级: 上将
  • 技术积分: 2867
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-14 22:21
文章分类

全部博文(268)

文章存档

2012年(19)

2011年(13)

2010年(29)

2009年(26)

2008年(99)

2007年(82)

我的朋友

分类: LINUX

2007-07-14 22:44:22

stty (来自 coreutils)
# stty -a 查看当前键设置
# stty erase ^? 键设置
# stty column 80 宽设置
# stty sane 恢复默认值


tset (来自 ncurses-bin)
# tset -s 查看终端类型
# tset -e ^? 键设置


tput (来自 ncurses-bin)
tput 用 System V 传统的 terminfo capability 为参数,它的数据库所在目录是:
/etc/terminfo , /lib/terminfo , /usr/share/terminfo/
举例:
# tput cup 10 30 光标位置
# tput civis 光标隐藏
# tput cnorm 光标重现
# tput smul 下划线
# tput rmul 取消下划线
# tput dl 10 删除下面十行
# tput bold 黑体
# tput rev 背景色与前景色反转
# tput cols 报告终端列数
# tput lines 报告终端行数
# tput sc 保存当前光标位置
# tput sgr0 恢复默认值



阅读(6538) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~