Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console window input problems #1179

Open
madmaxoft opened this issue Apr 12, 2024 · 0 comments
Open

Console window input problems #1179

madmaxoft opened this issue Apr 12, 2024 · 0 comments

Comments

@madmaxoft
Copy link
Contributor

I've noticed some problems when using a custom Lua interpreter that expects console input, on Linux.

Normally, when ZBS runs an interpreter in debug mode and uses the console window to display the interpreter output, there's an indicator on the bottom-most line; setting the cursor there and typing sends the input to the interpreter's stdin upon pressing Enter. This usually works fine, but:

  1. If the interpreter outputs more lines while the user is typing, the text the user typed disappears and won't be sent to the interpreter.
  2. If the user starts another script that outputs to the console window (while the interpreter is running), the indicator on the bottom-most line is removed and text cannot be typed and sent to the interpreter. If the interpreter outputs more lines after this, the indicator comes back and again text can be typed and sent to the interpreter.

These seem 100% reproducible. I've encountered this while developing a plugin for Cuberite, using the Cuberite interpreter (note that I'm using the package from PR pkulchenko/ZeroBranePackage#85 ) which also adds an "InfoDump" menu item that outputs into the console window (for case 2). Specifically for Cuberite, this is only observed on Linux, because it uses the console window only on Linux.

My OS is KDE Neon 6.0 with KDE Plasma 6.0.3, on X11, if this is relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant