doudou7361 2017-03-01 14:38
浏览 29

使用explode或任何方法在phpseclib输出中创建断行

the output when I use phpseclib with simple command isn't like when I use putty or other ssh tools,

in putty it's like

line 1
line 2
line 3
line 4

in my browser it's look like
line 1 line 2 line 3 line 4

when I ctrl+u in my browser to see the source, it's just like putty format
line 1
line 2
line 3
line 4

my mentor said that I can use method explode to make break line,

echo explode ("
", $ssh->read());

but the output became Array to string conversion

So, after read some link, I'm trying to use ANSI file in phpseclib to remove ANSI char, and the output format it's just like what I want. line 1 line 2 line 3 line 4

but the background color became black,

QUESTION 1. With ANSI file to remove ANSI char, can I change background color as default? 2. If with explode method can do what I mean, is there any example you guys may know?

I use local (xampp) server and windows as my OS,

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 在获取boss直聘的聊天的时候只能获取到前40条聊天数据
    • ¥20 关于URL获取的参数,无法执行二选一查询
    • ¥15 液位控制,当液位超过高限时常开触点59闭合,直到液位低于低限时,断开
    • ¥15 marlin编译错误,如何解决?
    • ¥15 有偿四位数,节约算法和扫描算法
    • ¥15 VUE项目怎么运行,系统打不开
    • ¥50 pointpillars等目标检测算法怎么融合注意力机制
    • ¥20 Vs code Mac系统 PHP Debug调试环境配置
    • ¥60 大一项目课,微信小程序
    • ¥15 求视频摘要youtube和ovp数据集