From cf0efed63941448072c91778f710efb753c67ec6 Mon Sep 17 00:00:00 2001 From: Ken Piper <kealper@gmail.com> Date: Sun, 14 Dec 2014 23:30:32 -0500 Subject: [PATCH] Remove italics until we have terminal detection Also added songgao's workaround for text reflow Sort-of fixes #22 in a really hacky way --- client.go | 1 + server.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index cd5f547..1168893 100644 --- a/client.go +++ b/client.go @@ -144,6 +144,7 @@ func (c *Client) Silence(d time.Duration) { // Resize resizes the client to the given width and height func (c *Client) Resize(width, height int) error { + width = 1000000 // TODO: Remove this dirty workaround for text overflow once ssh/terminal is fixed err := c.term.SetSize(width, height) if err != nil { logger.Errorf("Resize failed: %dx%d", width, height) diff --git a/server.go b/server.go index 431f32d..ef2cb82 100644 --- a/server.go +++ b/server.go @@ -16,8 +16,8 @@ import ( const ( maxNameLength = 32 historyLength = 20 - systemMessageFormat = "\033[1;3;90m" - privateMessageFormat = "\033[3m" + systemMessageFormat = "\033[1;90m" + privateMessageFormat = "\033[1m" beep = "\007" )