You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We ran into this in inf-ruby (nonsequitur/inf-ruby#172) and I was trying out other repl's to see if they have the same issue. Basically pty on linux has a maximum line length of 4096 characters. python-mode solves this by simply saving the region to a temp file and evaling the temp file, if the length is over comint-max-line-length.
Another minor display issue is it shows extra intermediate prompts, for example:
It'd be nicer if it didn't show a bunch of duplicate ...(n)> when you eval some region. Some repl like tuareg-mode for ocaml solve this by spawning the repl with a cli option to not display intermediate prompts on multiline input. Some repl like python-mode solve this by sending multiline input as a singleline string with newline escaped and running it with a single eval statement.
It'd be nice if comint mode could somehow solve this in general rather than every language repl running into these two issues and making their own solution, but I'm not really sure what comint could do about it.
The text was updated successfully, but these errors were encountered:
We ran into this in inf-ruby (nonsequitur/inf-ruby#172) and I was trying out other repl's to see if they have the same issue. Basically pty on linux has a maximum line length of 4096 characters. python-mode solves this by simply saving the region to a temp file and evaling the temp file, if the length is over
comint-max-line-length
.Another minor display issue is it shows extra intermediate prompts, for example:

It'd be nicer if it didn't show a bunch of duplicate ...(n)> when you eval some region. Some repl like tuareg-mode for ocaml solve this by spawning the repl with a cli option to not display intermediate prompts on multiline input. Some repl like python-mode solve this by sending multiline input as a singleline string with newline escaped and running it with a single eval statement.
It'd be nice if comint mode could somehow solve this in general rather than every language repl running into these two issues and making their own solution, but I'm not really sure what comint could do about it.
The text was updated successfully, but these errors were encountered: