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

Clear console everytime a new message is comming in #9

Open
saminitz opened this issue Jan 28, 2023 · 1 comment
Open

Clear console everytime a new message is comming in #9

saminitz opened this issue Jan 28, 2023 · 1 comment

Comments

@saminitz
Copy link
Owner

saminitz commented Jan 28, 2023

Problem

Currently the problem is that every time a new message comes in it overwrites the user's input buffer. This causes that newly written messages are sent correctly, but are no longer displayed correctly on the screen of the writer.

Approach

One way would be to clear the console every time the user recives a new message. With this approach a new Problem is created. All written messages have to be saved on the server side and have to be send on each message so that the user will not notice that his console was cleared.

@WuerfelDev
Copy link
Collaborator

Easiest way would be to have a global array/queue for the history. BUT then we would ignore private messages and commands. So I guess the history has to be saved for each user

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

2 participants