Merge pull request #59 from Kealper/master

Remove italics, added songgao's text reflow workaround
This commit is contained in:
Andrey Petrov 2014-12-14 20:36:30 -08:00
commit 410691566b
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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"
)