using lic non-interactively hoses terminal mode #1
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lisp/lingo#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For instance, running
in the shell hoses the terminal mode. With Linux, after running this, the following settings are different from before:
-icrnl -ixon -icanon -iexten -echoExpected behaviour: does not hose terminal mode.
Assumed reason: the application puts lingo/liner in raw mode, which is unnecessary with a non-interactive call of lingo. That it doesn't restore the previous terminal mode is more or less expected.
What is bad about this: The (assumed) bug in the application
licisn't even the bad thing. Lingo itself should not make this possible.Proposed solution: Put changing the terminal mode forth and back (i.e. the related liner calls) as close around the actual line reading as possible. This should eliminate most of the application's responsibility already; furthermore, lingo could work actively in restoring the terminal settings actively to the previous state when exiting. Does mean you couldn't use a lingo program to change your terminal settings, but WTH.
mentioned in issue #4
mentioned in commit
0e3ad67fdaclosed via commit
0e3ad67fda