leftmike / foment

Foment is an implementation of R7RS Scheme.
MIT License
67 stars 4 forks source link

Support dumb terminals #15

Closed wasamasa closed 7 years ago

wasamasa commented 7 years ago

Just because you're connected to a terminal doesn't mean that sending ANSI escape codes (as done in SetupConsole) is OK. Typically setting TERM to dumb (alternatively, unsetting it) is used to signal that the terminal doesn't support them at all. In this situation the line reading function could get away with just using fgets or alike to get user input.

wasamasa commented 7 years ago

Hm, while this keeps the application happy, doing things this way stops echoing user input. Running foment from something like M-x scheme in Emacs fails because it uses a pty, yet doesn't ever receive the prompt.

leftmike commented 7 years ago

Better fix for this issue; I tested using a shell under emacs.

wasamasa commented 7 years ago

Thanks again!