Skip to main content
Filter by
Sorted by
Tagged with
3 votes
3 answers
232 views

I need to process 100 Gigabytes of logs in a weird format, then do some analysis on the results. Initial parts of parsing and CLI done, tried on some test data with 1 GB and it took around a minute. I ...
nemo nemo's user avatar
1 vote
1 answer
133 views

So I have this really weird issue where I have the following dummy.php script: <?php declare(strict_types=1); $prompt = "Hello there!". PHP_EOL . "What do you want to know?"...
DevelJoe's user avatar
  • 1,552
0 votes
1 answer
75 views

I want to asynchronously process keyboard events in a Node.js application. It was recommended to me to use readline.emitKeypressEvents which leads to code like this: import readline from "node:...
kayahr's user avatar
  • 22.3k
0 votes
3 answers
95 views

I am using Vim bindings in bash (set -o vi) and I wanted to know if it is possible to use and save Vim macros on the command line. For instance, I would like to save a macro like this: let @q = "...
armando's user avatar
  • 1,508
0 votes
3 answers
132 views

from sys import argv script, input_file = argv hello = open(input_file) read1 = hello.readline() print("Line1: ", read1, end = "") line1 = len(read1) + 1 print(line1) read2 = ...
Govind Sharma's user avatar
1 vote
0 answers
118 views

I just hate it so much when small things that were working since forever suddenly break. I use MINGW64 bash in Windows Terminal in Windows 10. When I run gdb-multiarch, inside it, suddenly Backspace ...
sdbbs's user avatar
  • 5,948
2 votes
1 answer
101 views

I am writing a Go wrapper that does various things and then executes an interactive bash shell. I would like to usurp FD2 of this child process with my own thing that is fed in from the Go wrapper. ...
J M's user avatar
  • 203
1 vote
0 answers
27 views

This code as it is opens the browser and read a txt file line by line: line 1 line 2 line 3 Stream closed The thing I don't understand is why placing const browser = await puppeteer....
daego's user avatar
  • 329
0 votes
1 answer
75 views

I am migrating a working application on a Raspberry Pi to the latest OS Bookworm. On make, I get the following error: make clang++ -lpthread -L/usr/local/lib –lreadline -lcurl -lpigpio -o build/...
ADL's user avatar
  • 121
2 votes
0 answers
68 views

I've got a strange issue with TypeScript when trying to use the readline to create an interface reading the console window. From what I can tell, process.stdin returns a ReadStream whilst ...
James Richardson's user avatar
0 votes
1 answer
74 views

I have a string that needs to be read using the Scanner class from the beginning to the \n character. The problem is that the source stream in my case may contain the character \u2028. I know that the ...
Smetana Po Aktsii's user avatar
2 votes
2 answers
97 views

I have the following signal handler established: void sig_handler(int sig) { if (sig == SIGINT) { printf("\n"); rl_on_new_line(); rl_replace_line("&...
user39350's user avatar
1 vote
0 answers
97 views

I'm using the python readline module (and using the input() function, which readline modifies). Everything is working, but I would like to add a feature to call a custom python function when a ...
user1806566's user avatar
  • 1,241
0 votes
0 answers
45 views

I'm writing a script that asks for multiple user inputs using the command: readline(prompt = "Question here") My first attempt at the beginning of the script works correctly. I'm asking for ...
Keegan's user avatar
  • 65
1 vote
1 answer
65 views

I stumbled across what should be something simple that's turned out to be a brain-teaser. As a not fully accomplished BASH programmer, I naively thought I could read in characters from an interactive ...
Richard T's user avatar
  • 4,695
6 votes
2 answers
2k views

Bun.js has a nice native API to read periodical user input: const prompt = "Type something: "; process.stdout.write(prompt); for await (const line of console) { console.log(`You typed: ${...
Mir-Ismaili's user avatar
  • 17.7k
0 votes
2 answers
70 views

So the purpose of the code is to import JSON questions and read them to the user in the terminal. The user gets 5 seconds to answer the question until the next question is displayed. The issue I am ...
jroo14's user avatar
  • 9
0 votes
1 answer
119 views

My tool appends little json blocks with comma at their end into a txt file which initially has [ as the first character, in order to create a whole JSON format text file, like below, {data: text1}, ...
blueway's user avatar
  • 139
0 votes
1 answer
66 views

I'm working on implementing a server in Java to handle a multiplayer Minesweeper game. In trying to test my server to ensure that it responds correctly to legal client requests, I am finding that the ...
Coder1913's user avatar
1 vote
0 answers
113 views

Is there any way (supported or otherwise) to set Readline's rl_readline_name variable from Ruby's Readline module? Or even to read it to find out the current value? It seems to be only marginally ...
RoUS's user avatar
  • 2,030
1 vote
0 answers
60 views

When using bash, if you run bind 'TAB:menu-complete' readline will cycle through all the possible matches. However I can't find a way to do the same in a C program that uses readline for input. The ...
td211's user avatar
  • 157
0 votes
0 answers
151 views

I am writing an app with streaming text output that needs to have an input area fixed to the bottom of the screen. I am using node:readline and ansi-escapes and I just cannot figure out how to ...
logikal's user avatar
  • 1,141
1 vote
1 answer
39 views

My aim is to: Copy emacs-standard and emacs-meta keymaps, Activate the copies Make changes to the copies Restore the emacs-standard and emacs-meta keymaps I have read that emacs-meta is assigned to ...
Joel Roth's user avatar
0 votes
0 answers
141 views

I'm writing a shell-like program in C using GNU readline and have encountered a bug related to prompt handling. Brief Description of the Issue In my program, after exiting a heredoc with ^D and then ...
kemizuki's user avatar
0 votes
1 answer
45 views

I'm working on a small shell and using libreadline to get command input. problem My command prompt is getting deleted when I use C-W note this only happens after I enter a word and then C-W, C-w ...
amdixon's user avatar
  • 3,833

1
2 3 4 5
46