社区
Linux/Unix社区
帖子详情
stty cbreak什么意思?
huangyangman
2007-08-22 11:27:58
stty cbreak和
stty -cbreak
什么意思?
...全文
549
2
打赏
收藏
stty cbreak什么意思?
stty cbreak和 stty -cbreak 什么意思?
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
plusboy
2007-08-23
打赏
举报
回复
有中断产生就响应吧,比如击一下键盘输入一个字符就会响应,而不是等到输入回车按行响应。
mymtom
2007-08-22
打赏
举报
回复
cbreak If set, enables brkint, ixon, imaxbel, opost, isig, iexten,
and -icanon. If unset, same as sane.
相关推荐
Linux shell ”Press any key to continue ”功能实现
function process_continue(){ SAVES
TTY
=`s
tty
-g` s
tty
c
break
dd if=/dev/
tty
bs=1 count=1 > /dev/null 2>&1 s
tty
-c
break
s
tty
$SAVES
TTY
} echo "Press any key to continu...
技巧:把输入的密码变成*号的方法
注:此贴转自:WWW.CHINAUNIX.NET代码:#!/bin/sh getchar() { s
tty
c
break
-echo dd if=/dev/
tty
bs=1 count=1 2> /dev/null s
tty
-c
break
echo } printf "Please input your passwd: " wh
centos7 初始化脚本 (有网络版)
#!/bin/bash get_char() { SAVEDS
TTY
=`s
tty
-g` s
tty
-echo s
tty
c
break
dd if=/dev/
tty
bs=1 count=1 2> /dev/null s
tty
-raw s
tty
echo s
tty
$SAVEDS
TTY
} echo "按任意键开始执行初始化或按Ctrl + C 取消执行....
Shell-输入密码转换为*
Code: read -p "请输入使用者都名称:" USER echo -e "请输入使用者密码: \c" while : ;do char=` #这里是反引号,tab键上面那个 s
tty
c
break
-echo dd if=/dev/
tty
bs=1 count=1 2>/dev/null s
tty
-c
break
echo ` #这里是反引号,...
隐藏shell提示输入的内容
不显示输入内容:read -s升级版:将输入显示为星号x=0 while : ;do char=` s
tty
c
break
-echo dd if=/dev/
tty
bs=1 count=1 2>/dev/null s
tty
-c
break
echo ` if [ "$char" = "" ];then ...
发帖
Linux/Unix社区
Linux/Unix社区
Linux/Unix社区 应用程序开发区
复制链接
扫一扫
2.2w+
社区成员
7.4w+
社区内容
Linux/Unix社区 应用程序开发区
社区管理员
加入社区
获取链接或二维码
帖子事件
创建了帖子
2007-08-22 11:27
社区公告
暂无公告