Skip to content

Commit

Permalink
fix:old_attr = termios.tcgetattr(sys.stdin.fileno())
Browse files Browse the repository at this point in the history
  • Loading branch information
evenrohancodes authored Jul 23, 2023
1 parent 2ac7cd2 commit fefd075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teleop_bot/key_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
rospy.init_node("keyboard_driver")
rate = rospy.Rate(100)
# BEGIN TERMIOS
old_attr = termios.tcgetattr(sys.stdin)
old_attr = termios.tcgetattr(sys.stdin.fileno())
tty.setcbreak(sys.stdin.fileno())
# END TERMIOS
print "Publishing keystrokes. Press Ctrl-C to exit..."
Expand Down

0 comments on commit fefd075

Please sign in to comment.