-
Notifications
You must be signed in to change notification settings - Fork 34
piping ct in GNU screen is not working #80
Comments
It seems screen is a bit more special with how it writes its output. I'm taking a look at this. |
I've spent quite a while looking at this but it seems it's something that can't be resolved with the current implementation. Even if you let CT spawn the program (i.e. I don't know why, but >>> import os
>>> master, slave = os.openpty()
>>> os.write(slave, b'message to master')
17
>>> os.read(master, 17)
b'message to master'
>>> os.write(master, b'message to slave')
16
>>> os.read(slave, 16)
^CTraceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyboardInterrupt
>>> os.read(master, 16)
b'message to slave'
>>> Had this not been the case, I would be able to change I'll leave this issue open for a bit in the hope that I, or anyone really, can find an alternate solution. |
thank you for the detailed explanation and the effort mate. I tried with cu command too but without success, are there some other way you know to display the output of a serial port through chromaterm? |
You could use
|
thank you, I'll try that out! |
After lots of fiddling, I was finally able to correctly fix this issue. This will be published in v0.5.8 (soon). |
I updated to 0.5.8 but ct is still not piped in screen |
Piping doesn't work for instances like these. Help (i.e.
For your case, you need to do |
my bad, thanks for the head up and for the amazing work! |
sorry to bother you again but now i'm trying to load this config:
source: https://notx.ml/Own_projects/Highlighting_Cisco_keywords_or_output_on_Linux/ i've seen you've been on it a year ago but i think you switched to a yaml format since then right? there's a way i can convert that to be read from chromaterm--? or maybe it's me that can't grasp again how to make it works? |
Not at all. I'm happy to help any way I can.
That is correct. Unfortunately, the RegEx engine changed meaning I couldn't auto-convert them to the new format consistently. Fortunately, however, @Enf0 recently converted most of those rules in #79 and they are now available in If there are more rules that you'd like included in |
what an astounding help you gave me mate, thank you for all the guidelines |
You're absolutely welcome.
Don't feel that you have to; you feedback alone is plenty of contribution. |
or i can't make it working:
screen /dev/ttyUSB0 | ct
will result in the classic shell color scheme (white on black in my case)
The text was updated successfully, but these errors were encountered: