Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#60 gtmshr call-in library changes terminal settings

open
nobody
None
5
2005-01-14
2005-01-14
Steve Zeck
No

Using gtm_init() or gtm_ci() functions in the gtmshr
call-in library seems to change the terminal settings.

Specifically, these terminal settings are changed
(there may be others):

brkint -> ON (breaks cause interrupt signal)
time 0 -> time 8 (character read timeout set to 8ms)
ircnl -> OFF (disables cr->nl translation)
icanon -> OFF (disables terminal shortcut keys)
echo -> OFF (disables character echo. this is the most
annoying one)
imaxbel -> ON (??)

There doesn't seem to be a way to avoid the terminal
setting changes. A '$ /bin/stty sane' command will fix
them after using a C program that calls-in to mumps.

Discussion

  • Steve Zeck
    Steve Zeck
    2005-01-14

    • summary: gtmshr call-in library trashes terminal settings --> gtmshr call-in library changes terminal settings
     
  • Logged In: YES
    user_id=220075

    Hi Steve,
    We've identified a GT.M bug with call-ins that causes the
    terminal settings to be retained from GT.M instead of
    restoring from the values before invocation. We've created a
    tracking number (S9F01-002524) to fix this in a future
    release. Meanwhile, please use the workaround you already
    mentioned (stty sane).

    Thank you for reporting the problem,
    -malli