progpib/pty-gpib-emulator/middle-man/simple.cpp

16 lines
269 B
C++
Raw Normal View History

2020-09-09 00:17:31 -05:00
#include "MiddleMan.h"
#include <iostream>
int main(int argc, char **argv) {
if (argc < 2) {
std::cout << "Usage: " << argv[0] << " <tty device>" << std::endl;
}
MiddleMan m(argv[1]);
std::cout << m.getPTY() << std::endl;
m.run();
return 0;
}