Exemplo n.º 1
0
 public void update(jtermios.Termios t) {
   t.c_iflag = c_iflag;
   t.c_oflag = c_oflag;
   t.c_cflag = c_cflag;
   t.c_lflag = c_lflag;
   System.arraycopy(c_cc, 0, t.c_cc, 0, t.c_cc.length);
   t.c_ispeed = c_ispeed;
   t.c_ospeed = c_ospeed;
 }
Exemplo n.º 2
0
 public termios(jtermios.Termios t) {
   c_iflag = t.c_iflag;
   c_oflag = t.c_oflag;
   c_cflag = t.c_cflag;
   c_lflag = t.c_lflag;
   System.arraycopy(t.c_cc, 0, c_cc, 0, t.c_cc.length);
   c_ispeed = t.c_ispeed;
   c_ospeed = t.c_ospeed;
 }