Skip to content

Commit

Permalink
Merge pull request osrf#54 from evenrohancodes/patch-1
Browse files Browse the repository at this point in the history
fix:old_attr = termios.tcgetattr(sys.stdin.fileno())
  • Loading branch information
codebot authored Jul 24, 2023
2 parents 2ac7cd2 + fefd075 commit 92c2474
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 92c2474

Please sign in to comment.