# | Line 96 | Line 96 | void operator>>(int fd, Display::Packet | |
---|---|---|
96 | std::cerr << _B(">> ") << packet << std::endl; | |
97 | } | |
98 | ||
99 | < | Display::Display(const std::string &device) : ucom(Posix::Open(device, O_RDWR | O_NOCTTY)) |
99 | > | void Communicate(Display *display) |
100 | > | { |
101 | > | while (true) |
102 | > | std::cout << _B("Hello!") << std::endl; |
103 | > | } |
104 | > | |
105 | > | Display::Display(const std::string &device) : ucom(Posix::Open(device, O_RDWR | O_NOCTTY)), thread(reinterpret_cast<void *(*)(void *)>(::Communicate), this) |
106 | { | |
107 | ::termios state; | |
108 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |