stty Questions

2

Solved

This is how one can get a (POSIX) terminal size with a syscall in go: func getTermDim() (width, height int, err error) { var termDim [4]uint16 if _, _, err := syscall.Syscall6(syscall.SYS_IOCTL,...
Gloss asked 22/6, 2018 at 10:45

3

Solved

I'm trying to build a full screen terminal application. I'm using Go as my language of choice. I've figured out how to read from os.Stdin, but I'm unclear on how to clear the terminal window and ma...
Unroot asked 2/9, 2015 at 22:36

3

I need to use USB serial cable with baud rate of 115200. I tried to set the rate with stty command from MACbook terminal application as follows; $stty -f /dev/tty.usbserial-A103BTIB 115200 and c...
Ressler asked 11/12, 2015 at 21:46

2

I have a Python script I use to execute commands in parallel across multiple hosts using the Python subprocess module. It wraps SSH, and basically makes a call like this: output = subprocess.Popen...
Pecuniary asked 16/10, 2014 at 21:4

1

I am using JLine 2 (v2.13) in conjunction with a Socket IO to create an admin console for my app which can be accessed via an ordinary telnet client. However I found it prints out strange symbols w...
Tipi asked 25/12, 2015 at 23:46

1

I have a vhf radio which sent a status message continuosly through the serial port, and I need the messages that I got to be stored as hex data in a text file I tried hexdump command as shown belo...
Derian asked 28/9, 2015 at 12:13

1

Solved

When I try: $ stty raw -echo on my Terminal (Bash on OS X 10.6). It does stringe things and it's like the terminal hang there. Then I lookup the manual: stty — set the options for a termin...
Immersion asked 3/4, 2014 at 9:11

1

Solved

Does anybody know an equivalent tool for stty on Windows? I want to reverse engineer serial port settings on a Windows platform. I have to port a Windows application to a Linux platform, but I do ...
Dittography asked 16/12, 2013 at 9:10

1

EDIT: I have done some testing with the following script (found here: PHP serial port data return from Arduino). It appears that even using fwrite to /dev/ttyUSB0 outputs my new command plus the la...
Graecoroman asked 11/10, 2013 at 5:36

2

Solved

Like control key is represented by a '^' in the terminal, what is the equivalent for the command key (mac)? I am trying to remap my bash shortcuts using stty For eg stty eof ^D But instead of c...
Limey asked 10/10, 2012 at 20:34

1

Solved

I am trying to move my development environment (symfony2 application) from my windows 7 localhost to a virtual machine using vagrant and the default ubuntu 10.04 64 bit machine. Everything is set u...
Puiia asked 28/5, 2012 at 14:37

1

Solved

Im trying to use bash to read from ttyS0 and need to set the following but im struggling to figure it out databits = 7 stopbits = 2 parity = 0 flow control = 0 heres my code: #!/bin/bash # Por...
Outpour asked 1/2, 2012 at 8:24
1

© 2022 - 2024 — McMap. All rights reserved.