abiosoft / abiosoft/ishell

QUESTION - How to print prompt back after getting async message

Ouverte
#140 3 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
Go
Étoiles
1.8k
Forks
213
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hi!

I have the following use case:

I setup an ishell session to interact w server. But server can send messages ad-hoc, not only response to commands. In case I get a message from server in the session which is related to a server event (not in response to a command issued by user), I want it do be printed, and the prompt should be shown just after. This is not the situation I get these days - prompt only shows up again if I touch the keyboard (even the right arrow would show the prompt again). Could you help me to figure out how to fix this? This is not a breaking issue for me, but not as good as I would like it to get.

If I was capable of signaling the shell that output has been added, that would be perfect.

Please note I am writing to the screen using Shell.println - never directly through Stdout.

Thanks in advance.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.