Neutree / COMTool

Cross platform communicate assistant(Serial/network/terminal tool)( 跨平台 串口调试助手 网络调试助手 终端工具 linux windows mac Raspberry Pi )支持插件和二次开发
https://neucrack.com/p/186
GNU Lesser General Public License v3.0
1.85k stars 338 forks source link

[建议] 能否加入 选择性显示功能(Filter text) #65

Closed JamesJian-tech closed 1 year ago

JamesJian-tech commented 2 years ago

平时使用terminal 信息很多 如果有一个过滤功能就很方便了 例如:

[time] hello hello [time] hello [time] hello [time] hello [time] hello [time] world [time] hello [time] hello [time] hello [time] hello

其实只想知道 world 的出现点和时间 其他的hello 并不需要在terminal 里面出现 但可以存在.log 文件里面。

能否实现?

Neutree commented 2 years ago

可以在协议插件功能中实现, 自定义脚本

def decode(data):
    if b"world" in data:
        return data
    return b''
Neutree commented 2 years ago

image

修改这里的代码, 代码格式是 python 格式, 有啥不懂的百度搜一下 python 怎么写

JamesJian-tech commented 2 years ago

这个是在protocol 里面。

Terminal 里面如果有搜索和过滤功能就更加完美。

Neutree commented 2 years ago

emmmmm terminal加过滤 没考虑做这个 你可以考虑做做2333