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

win.WriteConsole \n processing #39

Closed
shmuz opened this issue Jun 20, 2023 · 2 comments
Closed

win.WriteConsole \n processing #39

shmuz opened this issue Jun 20, 2023 · 2 comments

Comments

@shmuz
Copy link
Owner

shmuz commented Jun 20, 2023

panel.GetUserScreen()
win.WriteConsole("Some text\n")
panel.SetUserScreen()

This script results in: image, i.e there's no transition to the next line while in Far3 (Windows) win.WriteConsole can output multi-line text.

@shmuz
Copy link
Owner Author

shmuz commented Jun 20, 2023

panel.GetUserScreen()
for k=1,10 do io.write"foobar\n" end
panel.SetUserScreen()

One empty line is output.
In Far3 io.write works as expected when called between panel.GetUserScreen() and panel.SetUserScreen().

@shmuz shmuz closed this as completed in 530b1de Jun 21, 2023
@shmuz
Copy link
Owner Author

shmuz commented Jun 21, 2023

  1. Added function far.WriteConsole
  2. Removed function win.WriteConsole

far.WriteConsole solves the 1-st but not the 2-nd of the listed above problems.

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