AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
[TOC] # 按键检测 shell实现按键检测,而不哟纪念馆每一次都按回车键,可以使用`read -n1 in`燃尽后读取in就可!<br/> ``` #!/usr/bin/env bash #------------------------------------------------------- # FileName : run.sh # Author :hpy # Date :2020年06月16日 # Description :自动按键检测方法 #---------------------------------------------------- while((1)) do read -n1 in echo "你输入的按键为:$in" done ``` ![Image](https://img.kancloud.cn/f1/fa/f1fa7643af306d45a979656e67b14d2d_610x267.png)