- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 3
 
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I think the Stdin module should read from /dev/tty instead of stdin (or else the user should be able to choose). Otherwise writing interactive programs that read input from stdin (e.g. fzf in cat ... | fzf) will have problems.
Specifically, when I tried doing that with minttea, I got an ENOTTY error message (although the program still seemed to function as expected). Changing the stdin module to start with let stdin_fd = Unix.descr_of_in_channel (In_channel.open_bin "/dev/tty") got rid of it.
leostera
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request