Questions tagged [stty]

Command in Unix/Linux systems that allows you to set and print options for your terminal.

103 questions
0
votes
0 answers

Ctrl key not detected in Terminal

I have a preblem with my Mac Terminal. It is no longer able to detect the ctrl key, so I can't use anymore shortcuts like ^C to stop a running task, because when I press ctrl+C the terminal echoes only the "c" character. I tried with stty -a and the…
0
votes
0 answers

tcsetattr doesnt work for user that login with /bin/sh

I have a code to get what the stty are set to the user's terminal. Then change the term.c_cc[VERASE]. This works fine as long the user uses bash. My problem is when the user are logged in using the default shell or when they use /bin/sh(the shell…
Mohd Fikrie
  • 197
  • 4
  • 21
0
votes
1 answer

How to check what the user set for erase/backspace in stty using c

In Unix, the default setting for certain keys are different by each platform. For example, erase in Ubuntu might be erase = ^?. But then, for AIX, it might be totally different like example erase = ^H. How do I check the stty setting in C? This is…
Mohd Fikrie
  • 197
  • 4
  • 21
0
votes
1 answer

Lost key bindings for Up, Down, Left and Right keys after sudoing to another user / another server via xterm

I know I messed with this long ago but my stty settings will not work when I sudo & ssh to another user and server. on server #1 I am myself and history can be invoked using U / D keys ,navigated using the L / R keys and edited using…
user1874594
  • 2,277
  • 1
  • 25
  • 49
0
votes
1 answer

BTEQ interactive window, need arrow-up to access command history

This is strange. New linux environment, accessed from my desktop via putty... In my regular shell, I can up and down arrow to get command history. However, when I fire up BTEQ to talk to the database, I get this kind of gibberish in response to my…
timw
  • 13
  • 2
0
votes
2 answers

Why will a script not accept input on stdin when invoked from bash's bind?

I have a number of bash/bind tools that I've written to simplify my command-line existence, and have recently wanted to make one of these tools interactive. If I try to read from stdin in one of these scripts, execution locks up at the point of…
Sniggerfardimungus
  • 11,583
  • 10
  • 52
  • 97
0
votes
1 answer

Read password using perl on windows

We have a perl script, in the we read password using stty. As stty is not available on windows this script fails. We did some search and found that ReadKey is an alternative for this. However we dont have this package shipped by default. Is there…
constantlearner
  • 5,157
  • 7
  • 42
  • 64
0
votes
0 answers

Using serial port with stty not working, minicom ok

I'm trying to write to a serial port and read results via bash scrpts (echo, printf, and read). I've setup stty correctly as far as I can workout, but I can't read any characters back. If I place port in loopback, I can use minicom to send and…
BrendanSimon
  • 665
  • 1
  • 9
  • 23
0
votes
2 answers

STTY may have been deleted?

I was installing ruby/rails/gem and homebrew and got frustrated. I think I deleted the stty folder. ANYWAY, what can I do? It doesn't seem to have ever happened on the internet before. Running stty comes back with command not found...
james2doyle
  • 1,399
  • 19
  • 21
0
votes
1 answer

symfony2 error, stty not recognized

I am following the tutorial. When I am using the command php app/console doctrine:fixtures:load then I am getting an error C:\wamp\www\Symfony>php app/console doctrine:fixtures:load 'stty' is not recognized as an internal or external…
Rohitashv Singhal
  • 4,517
  • 13
  • 57
  • 105
-1
votes
1 answer

Any ideas how to replace os.system("stty echo") to work in windows?

A friend of mine wrote python code on a Mac, and now I'm trying to get it to work on a windows laptop. This line in particular is being annoying: os.system("stty echo") Anyone know a windows equivalent? I've already replaced tty with msvcrt, but I…
Fraidy cat
  • 21
  • 2
-1
votes
2 answers

awk/gawk seems to overwrite columns on result

[TRIVIAL] [SOLVED] tl:dr - DOW CRLF made to feel as though awk misbehaved; trivial mistake! Am not sure why awk/gawk is behaving this way. Any hints? Ever seen awk results overwriting the columns on terminal? I am seeing this on just one machine;…
raghava
  • 236
  • 4
  • 12
-1
votes
1 answer

Simple raw terminal program windows

I need to be able to get input without the user pressing enter in java. As far as I can tell this cannot be done without JNI/JNA which I would like to avoid. So I am looking for a small program that could do this for me and then undo it when called…
Tookmund
  • 103
  • 1
  • 7
1 2 3 4 5 6
7