Questions tagged [console-input]

Console-input is related to inputting data through the console, or command-line, instead of a GUI.

Console is currently the most basic application interface, commonly used for small applications, for which GUI is unnecessary. Often an output from another application can be redirected to a console input of another application - see Pipeline.

46 questions
1
vote
2 answers

What happens when I use javaw to run the java program in the following scenario?

Say suppose I am running a java program through command line. And this program requires some data to enter during the execution. So I was wondering on what happens if somebody uses javaw to run this type of program? That is how to enter the data to…
GuruKulki
  • 25,776
  • 50
  • 140
  • 201
1
vote
1 answer

Leiningen freezing on console input

Why does trying to read a line from console with a BufferedReader freeze Leiningen REPL? lein repl nREPL server started on port 65142 REPL-y 0.2.0 Clojure 1.5.1 Docs: (doc function-name-here) (find-doc "part-of-name-here") Source:…
missingfaktor
  • 90,905
  • 62
  • 285
  • 365
0
votes
0 answers

Yocto linux, C# and console input/output capturing within shell scripts

I am developing a C# application (.net 5) that will run on a embedded linux board based on the yocto linux project. Everything works perfectly as long as I launch the app manually, I can read inputs, write outputs, etc etc. My troubles start when I…
0
votes
0 answers

prompt-sync and readline are repeating continously without taking new input in nodejs

Its not taking the next input, it simply not taking the inputs and moving to next line or taking single input and again asking for the same input continously in a infinte loop. const express = require('express') const mysql = require('mysql') const…
0
votes
1 answer

Java add console input to text file

I have a question regarding java io*. How can I input things into the java console, which after inputting gets added to the java file linked to. The problem is that I need to create a people database, for which I can create a new Person, with email,…
mogli
  • 1
0
votes
1 answer

Prompting for user input as part of a reference to an out-of-script function in R

I have an issue similar to the one described in this post however mine involves a function being called in script 1 from a second script that stores the function. Essentially script1.R has reference to foo() in script2.R and inside foo() I have a…
BLP92
  • 145
  • 2
  • 10
0
votes
1 answer

The characters like "ä", "ö" or "å" drop out of the console input

I have a c# console application that needs input that contains characters like "ä", "ö" or "å". But these characters drop out of the input. For example if the user input is "abc äöå" it is delivered to the program as "abc " an anyone help?
0
votes
0 answers

How to check for command line argument and if none, prompt for input through console?

This question was part of an assignment for a software class in college. I've long since quit but I'd really like to learn python so I'm revisiting some assignments. I've created a simple code that will convert the number of inches given, into feet…
0
votes
0 answers

Problems with Python argparse liberary (order of variables, default parameters and so on)

I want to give my script named console parameters in any order, but my code won't work as it should. import argparse, sys parser = argparse.ArgumentParser() parser.add_argument('n', help="some integer which is needed", type=int,…
0
votes
1 answer

How can I increase the maximum number of characters read by Read-Host?

I need to get a very long string input (around 9,000 characters), but Read-Host will truncate after around 8,000 characters. How can I extend this limit?
xinglong
  • 115
  • 1
  • 5
0
votes
1 answer

How to get input from the console without blocking?

I want to make a command to send a message to a text channel or a user,and the message should be input at console,but input() seems to "block" the program. Although I had tried threading to figure out this problem,the problem still remain…
ppodds
  • 1
  • 2
0
votes
2 answers

JUnit Testing Console Input Application

I am trying to use JUnit to test a java application which takes input from the console to make choices in the program. Here is a snippet of the program I am trying to test below. PS: I am new to JUnit testing so a clear and simple answer would be…
MeHead
  • 7
  • 1
  • 1
  • 5
0
votes
2 answers

Input line from Scanner object gets printed before official print command

I have a the following method below that receives a Scanner object with N number of lines, each with a a one word string. public static void longestName(Scanner console, int n) { for (int i = 1; i <= n; i++) { …
Edson
  • 255
  • 1
  • 3
  • 18
0
votes
1 answer

C# Console Application console Input and Listen to Handlers

I have a Skype for Business bot that is listening to a specific contact with handlers from the lync sdk. Now I want to input some commands through the console. But when I use the ReadLine method my Bot only listen to the console and not to the skype…
XxTSDTxX
  • 15
  • 1
  • 1
  • 4
0
votes
3 answers

eliminate line break after read in C#

using A = System.Console; public void point() { int hour, minute; A.Write("Enter Time (HH:MM) = "); hour = A.Read(); A.Write(":"); minute = A.Read(); } I want it to be like "Enter Time (HH:MM) = 12(hour input):49(minute…