cvs commit: hugs98/src input.c

Sigbjorn Finne sof@glass.cse.ogi.edu
Fri, 19 Jul 2002 11:40:24 -0700


sof         2002/07/19 11:40:24 PDT

  Modified files:
    src                  input.c 
  Log:
  - fix silly snprintf() usage bug in prev commit.
  - consoleInput(): scale back prev commit and only set
    NOKEYBOARD if isatty() is supported _and_ you're using
    readline (USE_READLINE=1). Just relying on isatty()
    upsets certain Win32 usages (e.g., subshells within
    Emacs buffers, since isatty() is TRUE for Consoles
    under Win32, which a subshell ain't.)
  
    Also, always print the prompt -- it is a useful output
    marker for apps that drive Hugs interaction via (redirected)
    stdout.
  
    My apologies for not thinking through the ramifications of the
    prev commit first.
  
  Revision  Changes    Path
  1.45      +8 -7      hugs98/src/input.c