abiosoft / ishell

Library for creating interactive cli applications.
MIT License
1.68k stars 195 forks source link

QUESTION - SSH Channel Print Content disorder #142

Closed 530017894 closed 3 years ago

530017894 commented 3 years ago

when i new ishell with ssh.Channel and then use ishell.Println,the content disorder,e.g:

help

  Commands:
                       clear      clear the screen
                                                                  exit       exit the program
                                                                                                            help       display help

channel ssh.Channel

termCfg := &readline.Config{ Prompt: prompt, Stdin: channel, Stdout: channel, StdinWriter: channel, Stderr: channel, } shell := ishell.NewWithConfig(termCfg)

how can i fix it?