Chinaunix首页 | 论坛 | 博客
  • 博客访问: 87384
  • 博文数量: 31
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 11
  • 用 户 组: 普通用户
  • 注册时间: 2014-10-23 00:16
文章分类
文章存档

2015年(13)

2014年(18)

我的朋友

分类: LINUX

2015-01-16 10:12:25

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 恢复默认值



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