#!/bin/sh

get_char()
{
       SAVEDSTTY=`stty -g`
       stty -echo
       stty raw
       dd if=/dev/tty bs=1 count=1 2> /dev/null
       stty -raw
       stty echo
       stty $SAVEDSTTY
}

echo "Press any key to continue..."
char=`get_char`

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-07-28
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
相关资源
相似解决方案