From b6036ab499396f824b4bf972b2dea62c2648b470 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Sat, 3 Jan 2015 00:22:59 -0500 Subject: [PATCH] client should see prompt at the appropriate time --- client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 7df7e5b..f397bb0 100644 --- a/client.go +++ b/client.go @@ -169,6 +169,7 @@ func (c *Client) handshake() error { close(c.done) case "bool": c.info(string(res.Body)) + c.renderLine() default: c.err("i dunno what to do with this") close(c.done) @@ -512,6 +513,7 @@ func (c *Client) sendMessage(args []string) { return } c.info("%v", <-res) + c.renderLine() } func (c *Client) listMessages(args []string) { @@ -602,7 +604,7 @@ func (c *Client) getMessage(args []string) { fmt.Print("\rFrom: ") fmt.Print("\033[0m") // unset color choice fmt.Println(string(from)) - fmt.Print("\033[90m# ") + fmt.Print("\033[90m") fmt.Println("--------------------------------------------------------------------------------") fmt.Printf("\033[0m") fmt.Println(string(text))