Questions tagged [tty]

For questions related to terminal drivers and the behaviour of terminals for Unix and related systems.

The tag should be used for questions related to terminal drivers and the behaviour of terminals for Unix and related systems (Linux, BSD, Solaris, AIX, HP-UX, MacOS X, etc). Sometimes, this is related to or or .

Example questions:

972 questions
-1
votes
0 answers

How to reduce tty VTIME for non canonical UART on Linux

Is there another solution for non canonical serial mode to poll each char? Related kernel source code: https://elixir.bootlin.com/linux/latest/C/ident/n_tty_read I think I need a kernel patch to get a VTIME from tty termios API lower than 100ms, in…
K. PANIK
  • 15
  • 1
  • 6
-1
votes
1 answer

gdb set inferior-tty warning: GDB: Failed to set controlling terminal: Operation not permitted

I am trying to debug a program using (gdb) , this program has a command that let you route the Input/Output of the program been debug into other spawned terminal of the same system (set inferior-tty ). I open a new Terminal (/dev/pts/22) and…
freddie_ventura
  • 111
  • 1
  • 6
-1
votes
1 answer

Colors not showing properly in Plink

I want to use the -pw parameter that is not included in the ssh, but plink does not handle the $TERM correctly as ←[46m←[30m are displayed instead of their respective colors. Is this fixable and if so, how?
-1
votes
1 answer

Is it possible to programatically hold the serial port Tx line high or low in C?

This is the relevant part of my C program (in Linux): while (input != ' '){ write(serial_port, msg, sizeof(msg)); //1. here I would like to wait at least 100 us with the Tx line high //2. followed by at least 8us with the Tx line low //3. and…
Rui Alves
  • 172
  • 1
  • 7
-1
votes
1 answer

Sniffing serial port /dev/ttyS0 while another application is using it

My platform: Linux Kubuntu 14 I am currently working on a project in which my application is communicating with a process via rs232 connected to /dev/ttyS0 serial port. Sometimes incoming messages aren't intercepted by my process so I decided to use…
y8natan
  • 21
  • 4
-1
votes
1 answer

How do I correctly shut down a connection to force the client to disconnect after a tty disconnects?

I apologize for the length, but I suspect the bug might be in the error handling and there's a bit of necessary boilerplate for networking. I start the following implementation of a single-file forking tcp server. #include #include…
merlin2011
  • 71,677
  • 44
  • 195
  • 329
-1
votes
1 answer

Security risks of accepting messages from write command

On UNIX systems, you can write any messages to another terminal, using write command as far as the user at the receiving side accepts messages. Whether or not to accept messages is set by mesg {y|n} command. According to man mesg, Traditionally,…
ynn
  • 3,386
  • 2
  • 19
  • 42
-1
votes
1 answer

Error 'E514: write error (file system full?)' when editing /dev/ttyUSB0 latency timer

when I try to edit the latency_timer of /dev/ttyUSB0 on my laptop I get an error. Here what I do: $ sudo vim /sys/bus/usb-serial/devices/ttyUSB0/latency_timer When editing 16 to 1 and saving, I got in vim this…
Gianluca
  • 3
  • 1
  • 2
-1
votes
1 answer

Can't jump into nginx docker container on startup

I can start and exec into a ubuntu docker container using this command: $ docker container run -it --rm ubuntu root@ded56bdb6f95:/# However, I get a blank console when I attempt to do the same for an nginx server (though it does print the logs…
Johnny Metz
  • 5,977
  • 18
  • 82
  • 146
-1
votes
1 answer

Given column + rows of a terminal / tty, how to calculate min/max number of bytes that can fit

Say we get the current columns and rows of a terminal with node.js: console.log('rows:', process.stdout.rows); console.log('columns:', process.stdout.columns); is there a way to calculate the number of bytes that can fit in the terminal window? I…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
-1
votes
1 answer

How does ssh receive password from tty?

I was wondering how openssh gets the password when login, cause I got stuck in automating entering passwords to the similar tools in linux which requires getting password from tty like ssh. Tried to understand sshpass and found that sshpass forks a…
-1
votes
1 answer

What programming language is this? echo os.system('/bin/bash')

I found it here: https://netsec.ws/?p=337 echo os.system('/bin/bash') os.system is from python but echo is not, I think... what language is this exactly?
-1
votes
2 answers

Perl Device::SerialPort

Looking for right way to detect one keyword during board boot up message. After keyword detected, send Enter key after one second. Kernel is Linux. # Serial port inisialisation is finished here. # Read boot message ($count, $result) =…
Asam Padeh
  • 135
  • 2
  • 9
-1
votes
2 answers

"Sudo" fails with "sudo requires a tty" when executed from PuTTY command line

I'm trying to run some commands on a remote CentOS machine using PuTTY. I'm using the following command: putty.exe -ssh [IP] -l [user] -pw [password] -m [Script] Where [Script] is a .txt file containing the commands I want to run. The issue is that…
CWRules
  • 87
  • 7
-1
votes
1 answer

how does fabric execute commands?

i am wondering how does fabric execute commands. Let's say I give him env.user=User, env.host=HOST. Then i ask him to sudo('ls') Is that equivalent to me typing in a shell : ssh User@host 'sudo(/bin/ls)' or it's more : ssh User@host in a first time,…
pwnsauce
  • 416
  • 4
  • 14
1 2 3
64
65