mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-18 17:57:41 +03:00
Remove italics until we have terminal detection
Also added songgao's workaround for text reflow Sort-of fixes #22 in a really hacky way
This commit is contained in:
parent
5ef97705fc
commit
cf0efed639
@ -144,6 +144,7 @@ func (c *Client) Silence(d time.Duration) {
|
|||||||
|
|
||||||
// Resize resizes the client to the given width and height
|
// Resize resizes the client to the given width and height
|
||||||
func (c *Client) Resize(width, height int) error {
|
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)
|
err := c.term.SetSize(width, height)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Errorf("Resize failed: %dx%d", width, height)
|
logger.Errorf("Resize failed: %dx%d", width, height)
|
||||||
|
@ -16,8 +16,8 @@ import (
|
|||||||
const (
|
const (
|
||||||
maxNameLength = 32
|
maxNameLength = 32
|
||||||
historyLength = 20
|
historyLength = 20
|
||||||
systemMessageFormat = "\033[1;3;90m"
|
systemMessageFormat = "\033[1;90m"
|
||||||
privateMessageFormat = "\033[3m"
|
privateMessageFormat = "\033[1m"
|
||||||
beep = "\007"
|
beep = "\007"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user