Questions tagged [input]

Input is usually related to user input, i.e., to the data that user supplies to a running application. In many systems this input is considered to be potentially dangerous and needs to be sanitized to ensure that the user has not injected runnable code into the application.

For questions pertaining to the HTML <input> tag, please use instead.

Input is any form of information that is provided to an application or process. In interactive graphical user interface (GUI) applications, input is often taken from the user via input controls such as textboxes and drop-down lists. In non-interactive services, input is often taken from local or remote resources, or service requests.

34931 questions
6
votes
1 answer

Get scancode rather than keycode on Linux using X11

I'm trying to listen to keyboard input (using an X11 event loop) and get scancodes. These scancodes should refer to the physical location of a key, rather than the character it types. The problem is, all I can get are KeySyms and KeyCodes, which are…
ComfyS
  • 131
  • 1
  • 5
6
votes
1 answer

How to get Java scanner to acknowledge blank input?

I am having trouble getting my program to respond to empty inputs. For example, say I wanted to prompt the user to enter a value for money with type BigDecimal as well as a currency type. Here is what the program in question looks like. public…
6
votes
1 answer

Mapping VirtualKey to char in UWP app, independent of layout

I'm writing a VNC client for HoloLens using C# and I'm having a tough time figuring out how to handle keyboard input. KeyUp/KeyDown give me a Windows.System.VirtualKey object, but there doesn't appear to be an API to map these VirtualKeys (along…
Serafina Brocious
  • 30,433
  • 12
  • 89
  • 114
6
votes
3 answers

Golang - Read Os.stdin input but don't echo it

In a golang program I'm reading the Os.Stdin input from a bufio.Reader. After enter is pressed, the program reads the input and it is then printed onto the console. Is it possible to not print the input onto the console? After reading it, I process…
Nevermore
  • 7,141
  • 5
  • 42
  • 64
6
votes
4 answers

How to simulate Chrome/Safari border around active input or textarea on other elements such as divs or iframes?

I was using simple textarea element and then replaced it with iframe with designMode='on' to give user the possibility to mark some text and make it italic. But I still want an iframe to look like textarea, so I need a border around it similar to…
Danylo Mysak
  • 1,514
  • 2
  • 16
  • 22
6
votes
3 answers

Why is read-line run twice for reading from a file in Lisp?

This is the code to implement the 'cat' command with lisp, as is explained in the book ANSI Common Lisp, page 122. (defun pseudo-cat (file) (with-open-file (str file :direction :input) (do ((line (read-line str nil 'eof) …
prosseek
  • 182,215
  • 215
  • 566
  • 871
6
votes
1 answer

R: Running computation while waiting for user input

do you see a way to run a computation in R while waiting for a user input? I'm writing a script that makes differents types of plots which are defined by user input, but in first lot of data has to be loaded and processed. But in fact, user could…
6
votes
3 answers

Remove borders for text input on bootstrap 3

I'm trying to remove top, right and left borders for text input fields, using bootstrap 3. My selector is: input[type="text"] { border-top: 0; border-right: 0; border-left: 0; } It's still showing (in chrome) a slight thin line. I'm not sure how…
Mike M
  • 195
  • 1
  • 6
6
votes
4 answers

jQuery - disable input field based on another field selected value

I'm searching for a jQuery plugin that does this. for example:
with a…
Oli B
  • 218
  • 3
  • 14
6
votes
2 answers

How do I reduce input lag in an NCurses C Application

I am getting major amounts of input lag when I run my application. More details: When I press 'w', 'a', 's', 'd' (My assigned input keys) the object moves however it continues to move for an extended period of time after the key has been released.…
6
votes
4 answers

how to input variable into a python script while opening from cmd prompt?

I am wondering how would one get variables inputted in a python script while opening from cmd prompt? I know using c one would do something like: int main( int argc, char **argv ) { int input1 = argv[ 0 ] int input2 = argv[ 1…
Richard
  • 15,152
  • 31
  • 85
  • 111
6
votes
5 answers

how to send file input using jquery?

i have a form that contains 3 File inputs.i want to send it via jquery.i tried serialize function in jquery,but i realized that this function don't send file inputs! here is my form :
file 1 :
armin etemadi
  • 519
  • 3
  • 8
  • 18
1 2 3
99
100