MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / SetUnsentText

Method SetUnsentText

internal/users/userrecord.go:524–528  ·  view source on GitHub ↗

The purpose of SetUnsentText(), GetUnsentText() is to Capture what the user is typing so that when we redraw the "prompt" or status bar, we can redraw what they were in the middle of typing. I don't like the idea of capturing it every time they hit a key though There is probably a better way.

(t string, suggest string)

Source from the content-addressed store, hash-verified

522// I don't like the idea of capturing it every time they hit a key though
523// There is probably a better way.
524func (u *UserRecord) SetUnsentText(t string, suggest string) {
525
526 u.unsentText = t
527 u.suggestText = suggest
528}
529
530func (u *UserRecord) GetUnsentText() (unsent string, suggestion string) {
531

Callers 3

handleTelnetConnectionFunction · 0.95
handleSSHConnectionFunction · 0.95
resumeRestoredConnectionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected