client should see prompt at the appropriate time

master
Jordan Orelli 10 years ago
parent 036a41acdf
commit b6036ab499

@ -169,6 +169,7 @@ func (c *Client) handshake() error {
close(c.done) close(c.done)
case "bool": case "bool":
c.info(string(res.Body)) c.info(string(res.Body))
c.renderLine()
default: default:
c.err("i dunno what to do with this") c.err("i dunno what to do with this")
close(c.done) close(c.done)
@ -512,6 +513,7 @@ func (c *Client) sendMessage(args []string) {
return return
} }
c.info("%v", <-res) c.info("%v", <-res)
c.renderLine()
} }
func (c *Client) listMessages(args []string) { func (c *Client) listMessages(args []string) {
@ -602,7 +604,7 @@ func (c *Client) getMessage(args []string) {
fmt.Print("\rFrom: ") fmt.Print("\rFrom: ")
fmt.Print("\033[0m") // unset color choice fmt.Print("\033[0m") // unset color choice
fmt.Println(string(from)) fmt.Println(string(from))
fmt.Print("\033[90m# ") fmt.Print("\033[90m")
fmt.Println("--------------------------------------------------------------------------------") fmt.Println("--------------------------------------------------------------------------------")
fmt.Printf("\033[0m") fmt.Printf("\033[0m")
fmt.Println(string(text)) fmt.Println(string(text))

Loading…
Cancel
Save