redguardtoo / find-file-in-project

Quick access to project files in Emacs
GNU General Public License v3.0
427 stars 56 forks source link

How to suppress "stty: 'standard input': Inappropriate ioctl for device" message #134

Closed avatar-lavventura closed 3 years ago

avatar-lavventura commented 3 years ago

When I apply find-file-in-project I keep seeing stty: 'standard input': Inappropriate ioctl for device warning message, would it be possible to suppress it?

520  Find in my_project/:
stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device
redguardtoo commented 3 years ago

If you use find-file-in-project-at-point or find-file-in-project-by-selected as I recommend in README. You won't see the noise at all. And it's much faster than find-file-in-project or ffip.

I also did a quick search of the error message. Looks you can set up your default shell to solve this problem

Or see my latest code, you can set ffip-project-search-function,

534ae8e make file search function configurable (Chen Bin)

avatar-lavventura commented 3 years ago

find-file-in-project-at-point helped.

I have also make changes in my .zshenv file as follows:

if [[ $- == *i* ]] ; then
    stty eof undef
    stty sane
    stty erase "^H" intr "^C" eof "^D" susp "^Z" # kill "^U"
    stty -ixon
fi